Merge pull request #7181 from bmuskalla/coverageAsDiagnostics

Java: Add diagnostic query for framework coverage
This commit is contained in:
Anders Schack-Mulligen
2021-11-24 10:57:50 +01:00
committed by GitHub

View File

@@ -0,0 +1,17 @@
/**
* @name Diagnostics for framework coverage
* @description Expose diagnostics for the number of API endpoints covered by CSV models.
* @kind diagnostic
* @id java/diagnostics/framework-coverage
*/
import java
import semmle.code.java.dataflow.ExternalFlow
from string packageAndType, int rows
where
exists(string package, string type |
packageAndType = package + ";" + type and
rows = strictsum(int n, string kind | modelCoverage(package, _, kind, type, n) | n)
)
select packageAndType, rows