mirror of
https://github.com/github/codeql.git
synced 2026-05-04 05:05:12 +02:00
18 lines
449 B
Plaintext
18 lines
449 B
Plaintext
/**
|
|
* @name Resolvable imports
|
|
* @description The number of imports that could be resolved to its target.
|
|
* @kind metric
|
|
* @metricType project
|
|
* @metricAggregate sum
|
|
* @tags meta
|
|
* @id js/meta/resolvable-imports
|
|
*/
|
|
|
|
import javascript
|
|
import CallGraphQuality
|
|
|
|
Import relevantImport() { not result.getFile() instanceof IgnoredFile }
|
|
|
|
select projectRoot(),
|
|
count(Import imprt | imprt = relevantImport() and exists(imprt.getImportedModule()))
|