mirror of
https://github.com/github/codeql.git
synced 2026-03-06 07:36:47 +01:00
15 lines
374 B
Plaintext
15 lines
374 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
|
|
)
|
|
)
|
|
}
|