@@ -12,6 +12,7 @@ import DatabaseQuality
1212
1313predicate compilationInfo ( string key , float value ) {
1414 not key .matches ( "Compiler diagnostic count for%" ) and
15+ not key .matches ( "Extractor message count for group%" ) and
1516 exists ( Compilation c , string infoKey , string infoValue | infoValue = c .getInfo ( infoKey ) |
1617 key = infoKey and
1718 value = infoValue .toFloat ( )
@@ -22,6 +23,16 @@ predicate compilationInfo(string key, float value) {
2223 )
2324}
2425
26+ predicate compilerDiagnostics ( string key , int value ) {
27+ key .matches ( "Compiler diagnostic count for%" ) and
28+ strictsum ( Compilation c | | c .getInfo ( key ) .toInt ( ) ) = value
29+ }
30+
31+ predicate extractorMessages ( string key , int value ) {
32+ key .matches ( "Extractor message count for group%" ) and
33+ strictsum ( Compilation c | | c .getInfo ( key ) .toInt ( ) ) = value
34+ }
35+
2536predicate fileCount ( string key , int value ) {
2637 key = "Number of files" and
2738 value = strictcount ( File f )
@@ -140,6 +151,8 @@ from string key, float value
140151where
141152 (
142153 compilationInfo ( key , value ) or
154+ compilerDiagnostics ( key , value ) or
155+ extractorMessages ( key , value ) or
143156 fileCount ( key , value ) or
144157 fileCountByExtension ( key , value ) or
145158 totalNumberOfLines ( key , value ) or
0 commit comments