Skip to content

Commit d39045e

Browse files
authored
Merge pull request #19245 from tamasvajk/tamasvajk/improvement-security-and-quality-suite-selector
Java: Add explicit filtering for quality queries that should be included in security-and-quality
2 parents f325f53 + 6abff48 commit d39045e

File tree

1 file changed

+162
-2
lines changed

1 file changed

+162
-2
lines changed
Lines changed: 162 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,164 @@
11
- description: Security-and-quality queries for Java
22
- queries: .
3-
- apply: security-and-quality-selectors.yml
4-
from: codeql/suite-helpers
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
precision:
8+
- high
9+
- very-high
10+
tags contain:
11+
- security
12+
- include:
13+
kind:
14+
- problem
15+
- path-problem
16+
precision: medium
17+
problem.severity:
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
146+
- include:
147+
kind:
148+
- diagnostic
149+
- include:
150+
kind:
151+
- metric
152+
tags contain:
153+
- summary
154+
- exclude:
155+
deprecated: //
156+
- exclude:
157+
query path:
158+
- /^experimental\/.*/
159+
- Metrics/Summaries/FrameworkCoverage.ql
160+
- /Diagnostics/Internal/.*/
161+
- exclude:
162+
tags contain:
163+
- modeleditor
164+
- modelgenerator

0 commit comments

Comments
 (0)