Skip to content

Commit 0b4bfed

Browse files
authored
Merge pull request github#3156 from tausbn/python-autoformat-all-ql-files
Python: Autoformat all `.ql` files.
2 parents 573494d + b990fac commit 0b4bfed

File tree

502 files changed

+2667
-2767
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

502 files changed

+2667
-2767
lines changed

python/ql/examples/snippets/builtin_object.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* builtin
77
* object
88
*/
9-
9+
1010
import python
1111

1212
from Expr e, string name

python/ql/examples/snippets/call.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @tags call
66
* function
77
*/
8-
8+
99
import python
1010

1111
from Value len, CallNode call

python/ql/examples/snippets/catch_exception.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
* try
77
* exception
88
*/
9-
9+
1010
import python
1111

1212
from ExceptStmt ex, ClassValue cls
13-
where
13+
where
1414
cls.getName() = "MyExceptionClass" and
1515
ex.getType().pointsTo(cls)
1616
select ex

python/ql/examples/snippets/conditional_expression.ql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
import python
1212

1313
from IfExp e, ClassObject cls1, ClassObject cls2
14-
where
15-
e.getBody().refersTo(_, cls1, _) and e.getOrelse().refersTo(_, cls2, _) and
14+
where
15+
e.getBody().refersTo(_, cls1, _) and
16+
e.getOrelse().refersTo(_, cls2, _) and
1617
cls1 != cls2
17-
select e
18+
select e

python/ql/examples/snippets/emptyblock.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* block
77
* statement
88
*/
9-
9+
1010
import python
1111

1212
from StmtList blk
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
/**
22
* @id py/examples/emptythen
33
* @name If statements with empty then branch
4-
* @description Finds 'if' statements where the "then" branch
4+
* @description Finds 'if' statements where the "then" branch
55
* consists entirely of Pass statements
66
* @tags if
77
* then
88
* empty
99
* conditional
1010
* branch
1111
*/
12-
12+
1313
import python
1414

1515
from If i
1616
where
1717
not exists(Stmt s |
18-
i.getStmt(_) = s and
18+
i.getStmt(_) = s and
1919
not s instanceof Pass
2020
)
2121
select i

python/ql/examples/snippets/eq_true.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* test
77
* boolean
88
*/
9-
9+
1010
import python
1111

1212
from Compare eq

python/ql/examples/snippets/equalitystmt.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* equality
77
* expression statement
88
*/
9-
9+
1010
import python
1111

1212
from ExprStmt e, Compare eq

python/ql/examples/snippets/extend_class.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
* subtype
1010
* supertype
1111
*/
12-
12+
1313
import python
1414

1515
from ClassObject sub, ClassObject base
16-
where
16+
where
1717
base.getName() = "MyClass" and
1818
sub.getABaseType() = base
1919
select sub

python/ql/examples/snippets/filename.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @description Finds files called `spam.py`
55
* @tags file
66
*/
7-
7+
88
import python
99

1010
from File f

0 commit comments

Comments
 (0)