mirror of
https://github.com/github/codeql.git
synced 2026-05-23 23:57:06 +02:00
Add meta query
This commit is contained in:
15
javascript/ql/src/meta/alerts/NodesWithUnderlyingType.ql
Normal file
15
javascript/ql/src/meta/alerts/NodesWithUnderlyingType.ql
Normal 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
|
||||
Reference in New Issue
Block a user