Add meta query

This commit is contained in:
Asger F
2025-03-11 16:36:34 +01:00
parent 37bcedcf11
commit ae55f2c80f

View File

@@ -0,0 +1,15 @@
/**
* @name Nodes with underlying type
* @description Nodes that has an underlying type coming from a package.
* @kind problem
* @problem.severity recommendation
* @id js/meta/alerts/nodes-with-underlying-type
* @tags meta
* @precision very-low
*/
import javascript
from DataFlow::SourceNode sn, string mod, string name
where sn.hasUnderlyingType(mod, name)
select sn, "'" + mod + "'." + name