We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7de8ce9 + e72c116 commit bcdbf14Copy full SHA for bcdbf14
rust/ql/lib/codeql/files/FileSystem.qll
@@ -45,13 +45,16 @@ extensible predicate additionalExternalFile(string relativePath);
45
46
/** A file. */
47
class File extends Container, Impl::File {
48
+ pragma[nomagic]
49
+ private predicate isAdditionalExternalFile() { additionalExternalFile(this.getRelativePath()) }
50
+
51
/**
52
* Holds if this file was extracted from the source code of the target project
53
* (rather than another location such as inside a dependency).
54
*/
55
predicate fromSource() {
56
exists(ExtractorStep s | s.getAction() = "Extract" and s.getFile() = this) and
- not additionalExternalFile(this.getRelativePath())
57
+ not this.isAdditionalExternalFile()
58
}
59
60
0 commit comments