Files
codeql/python/ql/test/extractor-tests/pruning/Reachable.ql
Taus 82057e2e46 Python: Autoformat tests
I guess these were never considered back when we switched to
autoformatting everything.
2024-04-15 15:27:21 +00:00

9 lines
294 B
Plaintext

import python
from Name n, GlobalVariable v, boolean reachable
where
n.getVariable() = v and
exists(ExprStmt s | s.getValue() = n) and
if exists(ControlFlowNode f | f.getNode() = n) then reachable = true else reachable = false
select n.getLocation().getStartLine(), v.getId(), reachable