mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
JS: Make overriding ConsistencyChecking.getATestFile() optional
This commit is contained in:
@@ -129,7 +129,7 @@ private predicate falseNegative(File file, int line, AssertionComment comment, C
|
||||
private File getATestFile(string conf) {
|
||||
not exists(any(ConsistencyConfiguration res).getAFile()) and
|
||||
result = any(LineComment comment).getFile() and
|
||||
conf = ""
|
||||
(conf = "" or conf instanceof ConsistencyConfiguration)
|
||||
or
|
||||
result = conf.(ConsistencyConfiguration).getAFile()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user