Files
codeql/javascript/ql/src/meta/SSA/NoRefinementInputs.ql
2020-05-11 13:46:12 -04:00

15 lines
357 B
Plaintext

/**
* @name Refinement node without inputs
* @description Every SSA refinement node should have exactly one input.
* @kind problem
* @problem.severity error
* @id js/consistency/dead-refinement-node
* @tags consistency
*/
import javascript
from SsaRefinementNode ref
where not exists(ref.getAnInput())
select ref, "Refinement node without inputs."