Files
codeql/python/ql/test/2/library-tests/locations/general/AllLocations.ql

17 lines
350 B
Plaintext

/**
* @name All must have locations
* @description
* @kind table
* @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