Skip to content

Commit 6abff48

Browse files
committed
Java: Add explicit filtering for quality queries that should be included in security-and-quality
1 parent 259a093 commit 6abff48

File tree

1 file changed

+130
-126
lines changed

1 file changed

+130
-126
lines changed

java/ql/src/codeql-suites/java-security-and-quality.qls

Lines changed: 130 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,142 @@
77
precision:
88
- high
99
- very-high
10+
tags contain:
11+
- security
1012
- include:
1113
kind:
1214
- problem
1315
- path-problem
1416
precision: medium
1517
problem.severity:
16-
- error
17-
- warning
18+
- error
19+
- warning
20+
tags contain:
21+
- security
22+
- include:
23+
id:
24+
- java/abs-of-random
25+
- java/abstract-to-concrete-cast
26+
- java/call-to-object-tostring
27+
- java/call-to-thread-run
28+
- java/chained-type-tests
29+
- java/class-name-matches-super-class
30+
- java/comparison-of-identical-expressions
31+
- java/comparison-with-nan
32+
- java/confusing-method-name
33+
- java/confusing-method-signature
34+
- java/constant-comparison
35+
- java/constant-loop-condition
36+
- java/constants-only-interface
37+
- java/continue-in-false-loop
38+
- java/contradictory-type-checks
39+
- java/database-resource-leak
40+
- java/deprecated-call
41+
- java/dereferenced-expr-may-be-null
42+
- java/dereferenced-value-is-always-null
43+
- java/dereferenced-value-may-be-null
44+
- java/empty-container
45+
- java/empty-zip-file-entry
46+
- java/equals-on-arrays
47+
- java/equals-on-unrelated-types
48+
- java/equals-typo
49+
- java/evaluation-to-constant
50+
- java/field-masks-super-field
51+
- java/hashcode-typo
52+
- java/hashing-without-hashcode
53+
- java/ignored-error-status-of-call
54+
- java/implicit-cast-in-compound-assignment
55+
- java/inconsistent-compareto-and-equals
56+
- java/inconsistent-equals-and-hashcode
57+
- java/inconsistent-javadoc-throws
58+
- java/inconsistent-sync-writeobject
59+
- java/incorrect-serial-version-uid
60+
- java/index-out-of-bounds
61+
- java/ineffective-annotation-present-check
62+
- java/inefficient-boxed-constructor
63+
- java/inefficient-empty-string-test
64+
- java/inefficient-key-set-iterator
65+
- java/inefficient-output-stream
66+
- java/inefficient-string-constructor
67+
- java/input-resource-leak
68+
- java/integer-multiplication-cast-to-long
69+
- java/internal-representation-exposure
70+
- java/iterable-wraps-iterator
71+
- java/iterator-hasnext-calls-next
72+
- java/iterator-implements-iterable
73+
- java/iterator-remove-failure
74+
- java/jdk-internal-api-access
75+
- java/local-shadows-field
76+
- java/local-variable-is-never-read
77+
- java/lshift-larger-than-type-width
78+
- java/misleading-indentation
79+
- java/missing-call-to-super-clone
80+
- java/missing-case-in-switch
81+
- java/missing-clone-method
82+
- java/missing-format-argument
83+
- java/missing-no-arg-constructor-on-externalizable
84+
- java/missing-no-arg-constructor-on-serializable
85+
- java/missing-override-annotation
86+
- java/missing-space-in-concatenation
87+
- java/missing-super-finalize
88+
- java/multiplication-of-remainder
89+
- java/non-final-call-in-constructor
90+
- java/non-null-boxed-variable
91+
- java/non-overriding-package-private
92+
- java/non-serializable-inner-class
93+
- java/non-short-circuit-evaluation
94+
- java/non-static-nested-class
95+
- java/non-sync-override
96+
- java/notify-instead-of-notify-all
97+
- java/output-resource-leak
98+
- java/print-array
99+
- java/random-used-once
100+
- java/redundant-assignment
101+
- java/reference-equality-of-boxed-types
102+
- java/reference-equality-on-strings
103+
- java/run-finalizers-on-exit
104+
- java/sleep-with-lock-held
105+
- java/spin-on-field
106+
- java/string-buffer-char-init
107+
- java/subtle-inherited-call
108+
- java/suspicious-date-format
109+
- java/sync-on-boxed-types
110+
- java/test-for-negative-container-size
111+
- java/thread-start-in-constructor
112+
- java/thread-unsafe-dateformat
113+
- java/tostring-typo
114+
- java/type-bound-extends-final
115+
- java/type-mismatch-access
116+
- java/type-mismatch-modification
117+
- java/type-variable-hides-type
118+
- java/uncaught-number-format-exception
119+
- java/unchecked-cast-in-equals
120+
- java/underscore-identifier
121+
- java/unimplementable-interface
122+
- java/unknown-javadoc-parameter
123+
- java/unreachable-catch-clause
124+
- java/unreleased-lock
125+
- java/unsafe-double-checked-locking
126+
- java/unsafe-double-checked-locking-init-order
127+
- java/unsafe-get-resource
128+
- java/unsafe-sync-on-field
129+
- java/unsynchronized-getter
130+
- java/unused-container
131+
- java/unused-format-argument
132+
- java/unused-label
133+
- java/unused-parameter
134+
- java/unused-reference-type
135+
- java/useless-null-check
136+
- java/useless-tostring-call
137+
- java/useless-type-test
138+
- java/wait-on-condition-interface
139+
- java/whitespace-contradicts-precedence
140+
- java/wrong-compareto-signature
141+
- java/wrong-equals-signature
142+
- java/wrong-junit-suite-signature
143+
- java/wrong-object-serialization-signature
144+
- java/wrong-readresolve-signature
145+
- java/wrong-swing-event-adapter-signature
18146
- include:
19147
kind:
20148
- diagnostic
@@ -34,127 +162,3 @@
34162
tags contain:
35163
- modeleditor
36164
- modelgenerator
37-
38-
39-
java/abs-of-random
40-
java/abstract-to-concrete-cast
41-
java/call-to-object-tostring
42-
java/call-to-thread-run
43-
java/chained-type-tests
44-
java/class-name-matches-super-class
45-
java/comparison-of-identical-expressions
46-
java/comparison-with-nan
47-
java/confusing-method-name
48-
java/confusing-method-signature
49-
java/constant-comparison
50-
java/constant-loop-condition
51-
java/constants-only-interface
52-
java/continue-in-false-loop
53-
java/contradictory-type-checks
54-
java/database-resource-leak
55-
java/deprecated-call
56-
java/dereferenced-expr-may-be-null
57-
java/dereferenced-value-is-always-null
58-
java/dereferenced-value-may-be-null
59-
java/empty-container
60-
java/empty-zip-file-entry
61-
java/equals-on-arrays
62-
java/equals-on-unrelated-types
63-
java/equals-typo
64-
java/evaluation-to-constant
65-
java/field-masks-super-field
66-
java/hashcode-typo
67-
java/hashing-without-hashcode
68-
java/ignored-error-status-of-call
69-
java/implicit-cast-in-compound-assignment
70-
java/inconsistent-compareto-and-equals
71-
java/inconsistent-equals-and-hashcode
72-
java/inconsistent-javadoc-throws
73-
java/inconsistent-sync-writeobject
74-
java/incorrect-serial-version-uid
75-
java/index-out-of-bounds
76-
java/ineffective-annotation-present-check
77-
java/inefficient-boxed-constructor
78-
java/inefficient-empty-string-test
79-
java/inefficient-key-set-iterator
80-
java/inefficient-output-stream
81-
java/inefficient-string-constructor
82-
java/input-resource-leak
83-
java/integer-multiplication-cast-to-long
84-
java/internal-representation-exposure
85-
java/iterable-wraps-iterator
86-
java/iterator-hasnext-calls-next
87-
java/iterator-implements-iterable
88-
java/iterator-remove-failure
89-
java/jdk-internal-api-access
90-
java/local-shadows-field
91-
java/local-variable-is-never-read
92-
java/lshift-larger-than-type-width
93-
java/misleading-indentation
94-
java/missing-call-to-super-clone
95-
java/missing-case-in-switch
96-
java/missing-clone-method
97-
java/missing-format-argument
98-
java/missing-no-arg-constructor-on-externalizable
99-
java/missing-no-arg-constructor-on-serializable
100-
java/missing-override-annotation
101-
java/missing-space-in-concatenation
102-
java/missing-super-finalize
103-
java/multiplication-of-remainder
104-
java/non-final-call-in-constructor
105-
java/non-null-boxed-variable
106-
java/non-overriding-package-private
107-
java/non-serializable-inner-class
108-
java/non-short-circuit-evaluation
109-
java/non-static-nested-class
110-
java/non-sync-override
111-
java/notify-instead-of-notify-all
112-
java/output-resource-leak
113-
java/print-array
114-
java/random-used-once
115-
java/redundant-assignment
116-
java/reference-equality-of-boxed-types
117-
java/reference-equality-on-strings
118-
java/run-finalizers-on-exit
119-
java/sleep-with-lock-held
120-
java/spin-on-field
121-
java/string-buffer-char-init
122-
java/subtle-inherited-call
123-
java/suspicious-date-format
124-
java/sync-on-boxed-types
125-
java/test-for-negative-container-size
126-
java/thread-start-in-constructor
127-
java/thread-unsafe-dateformat
128-
java/tostring-typo
129-
java/type-bound-extends-final
130-
java/type-mismatch-access
131-
java/type-mismatch-modification
132-
java/type-variable-hides-type
133-
java/uncaught-number-format-exception
134-
java/unchecked-cast-in-equals
135-
java/underscore-identifier
136-
java/unimplementable-interface
137-
java/unknown-javadoc-parameter
138-
java/unreachable-catch-clause
139-
java/unreleased-lock
140-
java/unsafe-double-checked-locking
141-
java/unsafe-double-checked-locking-init-order
142-
java/unsafe-get-resource
143-
java/unsafe-sync-on-field
144-
java/unsynchronized-getter
145-
java/unused-container
146-
java/unused-format-argument
147-
java/unused-label
148-
java/unused-parameter
149-
java/unused-reference-type
150-
java/useless-null-check
151-
java/useless-tostring-call
152-
java/useless-type-test
153-
java/wait-on-condition-interface
154-
java/whitespace-contradicts-precedence
155-
java/wrong-compareto-signature
156-
java/wrong-equals-signature
157-
java/wrong-junit-suite-signature
158-
java/wrong-object-serialization-signature
159-
java/wrong-readresolve-signature
160-
java/wrong-swing-event-adapter-signature

0 commit comments

Comments
 (0)