We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.razor
File::fromSource
1 parent d374935 commit da3c5f4Copy full SHA for da3c5f4
2 files changed
csharp/ql/integration-tests/all-platforms/cshtml/Files.ql
@@ -1,5 +1,5 @@
1
import csharp
2
3
from File f
4
-where f.fromSource() or f.getExtension() = "cshtml"
+where f.fromSource()
5
select f
csharp/ql/lib/semmle/code/csharp/File.qll
@@ -61,7 +61,7 @@ class File extends Container, Impl::File {
61
62
/** Holds if this file contains source code. */
63
final predicate fromSource() {
64
- this.getExtension() = ["cs", "cshtml"] and
+ this.getExtension() = ["cs", "cshtml", "razor"] and
65
not this.isStub()
66
}
67
0 commit comments