We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
File
1 parent be52150 commit c6f4495Copy full SHA for c6f4495
1 file changed
go/ql/lib/semmle/go/Files.qll
@@ -124,6 +124,7 @@ class ExtractedOrExternalFile extends Container, Impl::File, Documentable, ExprP
124
/** A file that has been extracted. */
125
class File extends ExtractedOrExternalFile {
126
File() {
127
+ not this.getBaseName() = "-" and
128
// getAChild is specifically for the Go AST and so does not apply to non-go files
129
// we care about all non-go extracted files, as only go files can have `@file` entries due to requiring a file entry for diagnostic errors
130
not this.getExtension() = "go"
0 commit comments