mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Merge pull request #3156 from tausbn/python-autoformat-all-ql-files
Python: Autoformat all `.ql` files.
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
*/
|
||||
|
||||
import python
|
||||
|
||||
import Lexical.CommentedOutCode
|
||||
|
||||
from CommentedOutCodeBlock c
|
||||
|
||||
@@ -11,10 +11,8 @@
|
||||
|
||||
import python
|
||||
import Lexical.CommentedOutCode
|
||||
|
||||
import python
|
||||
|
||||
from File f, int n
|
||||
where n = count(CommentedOutCodeLine c | not c.maybeExampleCode() and c.getLocation().getFile() = f)
|
||||
select f, n
|
||||
order by n desc
|
||||
select f, n order by n desc
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
import python
|
||||
|
||||
predicate is_old_octal(IntegerLiteral i) {
|
||||
exists(string text |
|
||||
text = i.getText() |
|
||||
exists(string text | text = i.getText() |
|
||||
text.charAt(0) = "0" and
|
||||
not text = "00" and
|
||||
exists(text.charAt(1).toInt()) and
|
||||
|
||||
Reference in New Issue
Block a user