mirror of
https://github.com/github/codeql.git
synced 2026-03-30 12:18:18 +02:00
17 lines
350 B
Plaintext
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
|