Skip to content

Commit 42e422c

Browse files
committed
Add meta query
1 parent 80d8018 commit 42e422c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* @name Nodes with underlying type
3+
* @description Nodes that has an underlying type coming from a package.
4+
* @kind problem
5+
* @problem.severity recommendation
6+
* @id js/meta/alerts/nodes-with-underlying-type
7+
* @tags meta
8+
* @precision very-low
9+
*/
10+
11+
import javascript
12+
13+
from DataFlow::SourceNode sn, string mod, string name
14+
where sn.hasUnderlyingType(mod, name)
15+
select sn, "'" + mod + "'." + name

0 commit comments

Comments
 (0)