Files
codeql/javascript/ql/src/meta/ApiGraphs/ApiGraphEdges.ql
2020-09-22 09:30:19 +01:00

16 lines
375 B
Plaintext

/**
* @name API-graph edges
* @description The number of edges (other than points-to edges) in the API graph.
* @kind metric
* @metricType project
* @metricAggregate sum
* @tags meta
* @id js/meta/api-graph-edges
*/
import javascript
import meta.MetaMetrics
select projectRoot(),
count(API::Node pred, string lbl, API::Node succ | succ = pred.getASuccessor(lbl))