Files
codeql/python/ql/test/2/library-tests/locations/general/AllLocations.ql
2019-02-08 14:49:04 +00:00

17 lines
352 B
Plaintext

/**
* @name All must have locations
* @description
* @kind problem
* @problem.severity error
*/
import python
from string classname
where
exists(AstNode node | not exists(node.getLocation()) and classname = node.getAQlClass())
or
exists(ControlFlowNode node | not exists(node.getLocation()) and classname = node.getAQlClass())
select classname