Skip to content

Commit c4ab6fb

Browse files
committed
JS: Add ImportGraph meta query
1 parent 20416ae commit c4ab6fb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* @name Import graph
3+
* @description An edge in the import graph.
4+
* @kind problem
5+
* @problem.severity recommendation
6+
* @id js/meta/alerts/import-graph
7+
* @tags meta
8+
* @precision very-low
9+
*/
10+
11+
import javascript
12+
13+
from Import imprt, Module target
14+
where target = imprt.getImportedModule()
15+
select imprt, "Import targeting $@", target, target.getFile().getRelativePath()

0 commit comments

Comments
 (0)