mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
20 lines
603 B
Plaintext
20 lines
603 B
Plaintext
import csharp
|
|
import semmle.code.csharp.commons.Diagnostics
|
|
|
|
query predicate extractorMessages(int c) { c = count(ExtractorMessage msg) }
|
|
|
|
query predicate compilerDiagnostics(int c) { c = count(Diagnostic diag) }
|
|
|
|
query predicate extractorMessagesLeachedLimit(ExtractorMessage msg) {
|
|
msg.getText().indexOf("Stopped logging") = 0
|
|
}
|
|
|
|
query predicate compilationInfo(string key, float value) {
|
|
exists(Compilation c, string infoValue |
|
|
infoValue = c.getInfo(key) and
|
|
key.matches(["Compiler diagnostic count for%", "Extractor message count for group%"])
|
|
|
|
|
value = infoValue.toFloat()
|
|
)
|
|
}
|