|
9 | 9 | import java |
10 | 10 | import semmle.code.java.Diagnostics |
11 | 11 |
|
| 12 | +extensible predicate extractorInformationSkipKey(string key); |
| 13 | + |
12 | 14 | predicate compilationInfo(string key, int value) { |
13 | 15 | exists(Compilation c, string infoKey | |
14 | 16 | key = infoKey + ": " + c.getInfo(infoKey) and |
@@ -85,13 +87,16 @@ predicate extractorTotalDiagnostics(string key, int value) { |
85 | 87 |
|
86 | 88 | from string key, int value |
87 | 89 | where |
88 | | - compilationInfo(key, value) or |
89 | | - fileCount(key, value) or |
90 | | - fileCountByExtension(key, value) or |
91 | | - totalNumberOfLines(key, value) or |
92 | | - numberOfLinesOfCode(key, value) or |
93 | | - totalNumberOfLinesByExtension(key, value) or |
94 | | - numberOfLinesOfCodeByExtension(key, value) or |
95 | | - extractorDiagnostics(key, value) or |
96 | | - extractorTotalDiagnostics(key, value) |
| 90 | + not extractorInformationSkipKey(key) and |
| 91 | + ( |
| 92 | + compilationInfo(key, value) or |
| 93 | + fileCount(key, value) or |
| 94 | + fileCountByExtension(key, value) or |
| 95 | + totalNumberOfLines(key, value) or |
| 96 | + numberOfLinesOfCode(key, value) or |
| 97 | + totalNumberOfLinesByExtension(key, value) or |
| 98 | + numberOfLinesOfCodeByExtension(key, value) or |
| 99 | + extractorDiagnostics(key, value) or |
| 100 | + extractorTotalDiagnostics(key, value) |
| 101 | + ) |
97 | 102 | select key, value |
0 commit comments