Skip to content

Commit 18175c5

Browse files
committed
Add meta query
1 parent e2ed848 commit 18175c5

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
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)