We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4c1ec7 + da3c5f4 commit 9250c29Copy full SHA for 9250c29
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