Files
codeql/javascript/ql/src/meta/alerts/ImportGraph.ql
2021-04-01 16:33:05 +01:00

16 lines
374 B
Plaintext

/**
* @name Import graph
* @description An edge in the import graph.
* @kind problem
* @problem.severity recommendation
* @id js/meta/alerts/import-graph
* @tags meta
* @precision very-low
*/
import javascript
from Import imprt, Module target
where target = imprt.getImportedModule()
select imprt, "Import targeting $@", target, target.getFile().getRelativePath()