We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95681bf commit e72c116Copy full SHA for e72c116
1 file changed
rust/ql/lib/codeql/files/FileSystem.qll
@@ -46,15 +46,15 @@ extensible predicate additionalExternalFile(string relativePath);
46
/** A file. */
47
class File extends Container, Impl::File {
48
pragma[nomagic]
49
- private string getRelativePath0() { result = this.getRelativePath() }
+ 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
57
- not additionalExternalFile(this.getRelativePath0())
+ not this.isAdditionalExternalFile()
58
}
59
60
0 commit comments