mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
Will need subsequent PRs fixing up test failures (due to deprecated methods moving around), but other than that everything should be straight-forward.
14 lines
336 B
Plaintext
14 lines
336 B
Plaintext
import python
|
|
|
|
predicate of_interest(ControlFlowNode n, int line) {
|
|
exists(Location l, File f | l = n.getLocation() |
|
|
line = l.getStartLine() and
|
|
f = l.getFile() and
|
|
f.getName().matches("%test.py%") and
|
|
exists(Comment c |
|
|
c.getLocation().getStartLine() < line and
|
|
c.getLocation().getFile() = f
|
|
)
|
|
)
|
|
}
|