Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java: Add diagnostic query for framework coverage #7181

Merged
merged 3 commits into from Nov 24, 2021
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
@@ -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