зеркало из https://github.com/github/codeql.git
JS: Add UnresolvableImport metric
This commit is contained in:
Родитель
d995d5a4a0
Коммит
abb95135c1
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* @name Unresolvable imports
|
||||
* @description The number of imports that could not be resolved to a module.
|
||||
* @kind metric
|
||||
* @metricType project
|
||||
* @metricAggregate sum
|
||||
* @tags meta
|
||||
* @id js/meta/unresolvable-imports
|
||||
*/
|
||||
|
||||
import javascript
|
||||
import CallGraphQuality
|
||||
|
||||
Import unresolvableImport() {
|
||||
not exists(result.getImportedModule())
|
||||
}
|
||||
|
||||
select projectRoot(), count(unresolvableImport())
|
Загрузка…
Ссылка в новой задаче