mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
JS: Add ImportGraph meta query
This commit is contained in:
15
javascript/ql/src/meta/alerts/ImportGraph.ql
Normal file
15
javascript/ql/src/meta/alerts/ImportGraph.ql
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @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()
|
||||
Reference in New Issue
Block a user