mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
Python: Autoformat everything using qlformat.
Will need subsequent PRs fixing up test failures (due to deprecated methods moving around), but other than that everything should be straight-forward.
This commit is contained in:
@@ -3,12 +3,12 @@ import Resources.FileOpen
|
||||
|
||||
from EssaVariable v, EssaDefinition def, string open, string exit
|
||||
where
|
||||
def = v.getDefinition() and
|
||||
v.getSourceVariable().getName().charAt(0) = "f" and
|
||||
(
|
||||
var_is_open(v, _) and open = "open"
|
||||
or
|
||||
not var_is_open(v, _) and open = "closed"
|
||||
) and
|
||||
if BaseFlow::reaches_exit(v) then exit = "exit" else exit = ""
|
||||
def = v.getDefinition() and
|
||||
v.getSourceVariable().getName().charAt(0) = "f" and
|
||||
(
|
||||
var_is_open(v, _) and open = "open"
|
||||
or
|
||||
not var_is_open(v, _) and open = "closed"
|
||||
) and
|
||||
if BaseFlow::reaches_exit(v) then exit = "exit" else exit = ""
|
||||
select v.getRepresentation() + " = " + v.getDefinition().getRepresentation(), open, exit
|
||||
|
||||
Reference in New Issue
Block a user