Skip to content

Commit a3b263e

Browse files
authored
Merge pull request #7181 from bmuskalla/coverageAsDiagnostics
Java: Add diagnostic query for framework coverage
2 parents 8c9e817 + 50518b5 commit a3b263e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @name Diagnostics for framework coverage
3+
* @description Expose diagnostics for the number of API endpoints covered by CSV models.
4+
* @kind diagnostic
5+
* @id java/diagnostics/framework-coverage
6+
*/
7+
8+
import java
9+
import semmle.code.java.dataflow.ExternalFlow
10+
11+
from string packageAndType, int rows
12+
where
13+
exists(string package, string type |
14+
packageAndType = package + ";" + type and
15+
rows = strictsum(int n, string kind | modelCoverage(package, _, kind, type, n) | n)
16+
)
17+
select packageAndType, rows

0 commit comments

Comments
 (0)