mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
C#: Port the java FrameworkCoverage query.
This commit is contained in:
18
csharp/ql/src/Metrics/Summaries/FrameworkCoverage.ql
Normal file
18
csharp/ql/src/Metrics/Summaries/FrameworkCoverage.ql
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @id csharp/summary/framework-coverage
|
||||
* @name Metrics of framework coverage
|
||||
* @description Expose metrics for the number of API endpoints covered by CSV models.
|
||||
* @kind metric
|
||||
* @tags summary
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import semmle.code.csharp.dataflow.ExternalFlow
|
||||
|
||||
from string namespaceAndType, int rows
|
||||
where
|
||||
exists(string namespace, string type |
|
||||
namespaceAndType = namespace + ";" + type and
|
||||
rows = strictsum(int n, string kind | modelCoverage(namespace, _, kind, type, n) | n)
|
||||
)
|
||||
select namespaceAndType, rows
|
||||
Reference in New Issue
Block a user