зеркало из https://github.com/github/codeql.git
C#: Include `.razor` files in `File::fromSource`
This commit is contained in:
Родитель
d374935008
Коммит
da3c5f44f2
|
@ -1,5 +1,5 @@
|
|||
import csharp
|
||||
|
||||
from File f
|
||||
where f.fromSource() or f.getExtension() = "cshtml"
|
||||
where f.fromSource()
|
||||
select f
|
||||
|
|
|
@ -61,7 +61,7 @@ class File extends Container, Impl::File {
|
|||
|
||||
/** Holds if this file contains source code. */
|
||||
final predicate fromSource() {
|
||||
this.getExtension() = ["cs", "cshtml"] and
|
||||
this.getExtension() = ["cs", "cshtml", "razor"] and
|
||||
not this.isStub()
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче