mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
17 lines
352 B
Plaintext
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
|