Skip to content

Commit 37b3ca0

Browse files
committed
Python: Freeze the quality queries in the security-and-quality suite.
1 parent d926a6a commit 37b3ca0

File tree

1 file changed

+125
-1
lines changed

1 file changed

+125
-1
lines changed
Lines changed: 125 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,128 @@
11
- description: Security-and-quality queries for Python
22
- queries: .
3-
- apply: security-and-quality-selectors.yml
3+
- apply: security-and-frozen-quality-selectors.yml
44
from: codeql/suite-helpers
5+
- include:
6+
id:
7+
- py/asserts-tuple
8+
- py/attribute-shadows-method
9+
- py/call-to-non-callable
10+
- py/call/wrong-arguments
11+
- py/call/wrong-named-argument
12+
- py/call/wrong-named-class-argument
13+
- py/call/wrong-number-class-arguments
14+
- py/catch-base-exception
15+
- py/commented-out-code
16+
- py/comparison-missing-self
17+
- py/comparison-of-constants
18+
- py/comparison-of-identical-expressions
19+
- py/comparison-using-is
20+
- py/conflicting-attributes
21+
- py/constant-conditional-expression
22+
- py/cyclic-import
23+
- py/deprecated-slice-method
24+
- py/duplicate-key-dict-literal
25+
- py/empty-except
26+
- py/encoding-error
27+
- py/equals-hash-mismatch
28+
- py/exit-from-finally
29+
- py/explicit-call-to-delete
30+
- py/explicit-return-in-init
31+
- py/file-not-closed
32+
- py/hash-unhashable-value
33+
- py/illegal-raise
34+
- py/implicit-string-concatenation-in-list
35+
- py/import-and-import-from
36+
- py/import-deprecated-module
37+
- py/import-of-mutable-attribute
38+
- py/import-own-module
39+
- py/imprecise-assert
40+
- py/incomplete-ordering
41+
- py/inconsistent-equality
42+
- py/inconsistent-mro
43+
- py/ineffectual-statement
44+
- py/inheritance/incorrect-overridden-signature
45+
- py/inheritance/incorrect-overriding-signature
46+
- py/inheritance/signature-mismatch
47+
- py/init-calls-subclass
48+
- py/init-method-is-generator
49+
- py/iter-returns-non-iterator
50+
- py/iter-returns-non-self
51+
- py/iteration-string-and-sequence
52+
- py/leaking-list-comprehension
53+
- py/loop-variable-capture
54+
- py/member-test-non-container
55+
- py/mismatched-multiple-assignment
56+
- py/missing-call-to-delete
57+
- py/missing-call-to-init
58+
- py/missing-equals
59+
- py/mixed-returns
60+
- py/mixed-tuple-returns
61+
- py/modification-of-default-value
62+
- py/modification-of-locals
63+
- py/multiple-calls-to-delete
64+
- py/multiple-calls-to-init
65+
- py/multiple-definition
66+
- py/mutable-descriptor
67+
- py/nested-loops-with-same-variable
68+
- py/nested-loops-with-same-variable-reused
69+
- py/non-iterable-in-for-loop
70+
- py/not-named-cls
71+
- py/not-named-self
72+
- py/old-style-octal-literal
73+
- py/overly-complex-delete
74+
- py/overwritten-inherited-attribute
75+
- py/percent-format/not-mapping
76+
- py/percent-format/unsupported-character
77+
- py/percent-format/wrong-arguments
78+
- py/polluting-import
79+
- py/print-during-import
80+
- py/procedure-return-value-used
81+
- py/property-in-old-style-class
82+
- py/pythagorean
83+
- py/raise-not-implemented
84+
- py/raises-tuple
85+
- py/redundant-assignment
86+
- py/redundant-comparison
87+
- py/redundant-else
88+
- py/redundant-global-declaration
89+
- py/regex/backspace-escape
90+
- py/regex/duplicate-in-character-class
91+
- py/regex/incomplete-special-group
92+
- py/regex/unmatchable-caret
93+
- py/regex/unmatchable-dollar
94+
- py/repeated-import
95+
- py/return-or-yield-outside-function
96+
- py/should-use-with
97+
- py/side-effect-in-assert
98+
- py/slots-in-old-style-class
99+
- py/special-method-wrong-signature
100+
- py/str-format/missing-argument
101+
- py/str-format/missing-named-argument
102+
- py/str-format/mixed-fields
103+
- py/str-format/surplus-argument
104+
- py/str-format/surplus-named-argument
105+
- py/super-in-old-style
106+
- py/super-not-enclosing-class
107+
- py/syntax-error
108+
- py/test-equals-none
109+
- py/truncated-division
110+
- py/undefined-export
111+
- py/undefined-placeholder-variable
112+
- py/unexpected-raise-in-special-method
113+
- py/unguarded-next-in-generator
114+
- py/uninitialized-local-variable
115+
- py/unnecessary-delete
116+
- py/unnecessary-lambda
117+
- py/unnecessary-pass
118+
- py/unreachable-except
119+
- py/unreachable-statement
120+
- py/unsafe-cyclic-import
121+
- py/unused-exception-object
122+
- py/unused-global-variable
123+
- py/unused-import
124+
- py/unused-local-variable
125+
- py/unused-loop-variable
126+
- py/use-of-apply
127+
- py/use-of-exit-or-quit
128+
- py/useless-except

0 commit comments

Comments
 (0)