mirror of
https://github.com/github/codeql.git
synced 2026-02-23 18:33:42 +01:00
17 lines
548 B
Plaintext
17 lines
548 B
Plaintext
import csharp
|
|
import semmle.code.csharp.commons.Diagnostics
|
|
|
|
query predicate compilationInfo(string key, float value) {
|
|
key != "Resolved references" and
|
|
key != "Resolved assembly conflicts" and
|
|
not key.matches(["Compiler diagnostic count for%", "Extractor message count for group%"]) and
|
|
exists(Compilation c, string infoKey, string infoValue | infoValue = c.getInfo(infoKey) |
|
|
key = infoKey and
|
|
value = infoValue.toFloat()
|
|
or
|
|
not exists(infoValue.toFloat()) and
|
|
key = infoKey + ": " + infoValue and
|
|
value = 1
|
|
)
|
|
}
|