diff --git a/javascript/ql/src/meta/alerts/NodesWithUnderlyingType.ql b/javascript/ql/src/meta/alerts/NodesWithUnderlyingType.ql new file mode 100644 index 00000000000..331873ef0ac --- /dev/null +++ b/javascript/ql/src/meta/alerts/NodesWithUnderlyingType.ql @@ -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