Skip to content

Java: Add explicit @suites-based filtering in query suites #19226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity recommendation
* @precision high
* @id java/missing-override-annotation
* @suites security-and-quality
* @tags maintainability
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity recommendation
* @precision high
* @id java/deprecated-call
* @suites security-and-quality
* @tags maintainability
* non-attributable
* external/cwe/cwe-477
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity recommendation
* @precision high
* @id java/inconsistent-javadoc-throws
* @suites security-and-quality
* @tags maintainability
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity recommendation
* @precision very-high
* @id java/unknown-javadoc-parameter
* @suites security-and-quality
* @tags maintainability
*/

Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Compatibility/JDK9/JdkInternalAccess.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity recommendation
* @precision high
* @id java/jdk-internal-api-access
* @suites security-and-quality
* @tags maintainability
*/

Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Compatibility/JDK9/UnderscoreIdentifier.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity recommendation
* @precision high
* @id java/underscore-identifier
* @suites security-and-quality
* @tags maintainability
*/

Expand Down
1 change: 1 addition & 0 deletions java/ql/src/DeadCode/UselessParameter.ql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @problem.severity recommendation
* @precision high
* @id java/unused-parameter
* @suites security-and-quality
* @tags maintainability
* useless-code
* external/cwe/cwe-561
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Language Abuse/ChainedInstanceof.ql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @problem.severity recommendation
* @precision high
* @id java/chained-type-tests
* @suites security-and-quality
* @tags maintainability
* language-features
*/
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Language Abuse/IterableIterator.ql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @problem.severity warning
* @precision very-high
* @id java/iterator-implements-iterable
* @suites security-and-quality
* @tags correctness
* reliability
*/
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Language Abuse/OverridePackagePrivate.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity warning
* @precision medium
* @id java/non-overriding-package-private
* @suites security-and-quality
* @tags maintainability
* readability
*/
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Language Abuse/TypeVarExtendsFinalType.ql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @problem.severity warning
* @precision medium
* @id java/type-bound-extends-final
* @suites security-and-quality
* @tags maintainability
* readability
* types
Expand Down
2 changes: 2 additions & 0 deletions java/ql/src/Language Abuse/TypeVariableHidesType.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* @problem.severity warning
* @precision medium
* @id java/type-variable-hides-type
* @suites security-and-quality
* quality
* @tags reliability
* readability
* types
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Language Abuse/UselessNullCheck.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity warning
* @precision very-high
* @id java/useless-null-check
* @suites security-and-quality
* @tags maintainability
* useless-code
* external/cwe/cwe-561
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Language Abuse/UselessTypeTest.ql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @problem.severity warning
* @precision very-high
* @id java/useless-type-test
* @suites security-and-quality
* @tags maintainability
* language-features
* external/cwe/cwe-561
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Language Abuse/WrappedIterator.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity warning
* @precision very-high
* @id java/iterable-wraps-iterator
* @suites security-and-quality
* @tags correctness
* reliability
*/
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Likely Bugs/Arithmetic/BadAbsOfRandom.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity warning
* @precision medium
* @id java/abs-of-random
* @suites security-and-quality
* @tags reliability
* maintainability
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @problem.severity warning
* @precision very-high
* @id java/evaluation-to-constant
* @suites security-and-quality
* @tags maintainability
* useless-code
*/
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Likely Bugs/Arithmetic/InformationLoss.ql
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @security-severity 8.1
* @precision very-high
* @id java/implicit-cast-in-compound-assignment
* @suites security-and-quality
* @tags reliability
* security
* external/cwe/cwe-190
Expand Down
2 changes: 2 additions & 0 deletions java/ql/src/Likely Bugs/Arithmetic/IntMultToLong.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* @problem.severity warning
* @precision very-high
* @id java/integer-multiplication-cast-to-long
* @suites security-and-quality
* quality
* @tags reliability
* correctness
* types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @problem.severity warning
* @precision very-high
* @id java/lshift-larger-than-type-width
* @suites security-and-quality
* @tags correctness
*/

Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Likely Bugs/Arithmetic/MultiplyRemainder.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity warning
* @precision medium
* @id java/multiplication-of-remainder
* @suites security-and-quality
* @tags maintainability
* correctness
*/
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Likely Bugs/Arithmetic/RandomUsedOnce.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity warning
* @precision medium
* @id java/random-used-once
* @suites security-and-quality
* @tags reliability
* maintainability
* external/cwe/cwe-335
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity warning
* @precision very-high
* @id java/whitespace-contradicts-precedence
* @suites security-and-quality
* @tags maintainability
* readability
* external/cwe/cwe-783
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @problem.severity error
* @precision medium
* @id java/missing-call-to-super-clone
* @suites security-and-quality
* @tags reliability
* maintainability
* external/cwe/cwe-580
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Likely Bugs/Cloning/MissingMethodClone.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity error
* @precision medium
* @id java/missing-clone-method
* @suites security-and-quality
* @tags reliability
* maintainability
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity error
* @precision high
* @id java/index-out-of-bounds
* @suites security-and-quality
* @tags reliability
* correctness
* exceptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @problem.severity error
* @precision very-high
* @id java/type-mismatch-access
* @suites security-and-quality
* @tags reliability
* correctness
* logic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity warning
* @precision medium
* @id java/iterator-remove-failure
* @suites security-and-quality
* @tags reliability
* correctness
* logic
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Likely Bugs/Collections/ReadOnlyContainer.ql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @problem.severity error
* @precision very-high
* @id java/empty-container
* @suites security-and-quality
* @tags reliability
* maintainability
* useless-code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @problem.severity error
* @precision very-high
* @id java/type-mismatch-modification
* @suites security-and-quality
* @tags reliability
* correctness
* logic
Expand Down
2 changes: 2 additions & 0 deletions java/ql/src/Likely Bugs/Collections/WriteOnlyContainer.ql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* @problem.severity error
* @precision very-high
* @id java/unused-container
* @suites security-and-quality
* quality
* @tags maintainability
* useless-code
* external/cwe/cwe-561
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity error
* @precision very-high
* @id java/comparison-of-identical-expressions
* @suites security-and-quality
* @tags reliability
* correctness
* logic
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Likely Bugs/Comparison/CovariantCompareTo.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity error
* @precision medium
* @id java/wrong-compareto-signature
* @suites security-and-quality
* @tags reliability
* correctness
*/
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Likely Bugs/Comparison/CovariantEquals.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity error
* @precision medium
* @id java/wrong-equals-signature
* @suites security-and-quality
* @tags reliability
* correctness
*/
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Likely Bugs/Comparison/EqualsArray.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity error
* @precision very-high
* @id java/equals-on-arrays
* @suites security-and-quality
* @tags reliability
* correctness
*/
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Likely Bugs/Comparison/HashedButNoHash.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity error
* @precision very-high
* @id java/hashing-without-hashcode
* @suites security-and-quality
* @tags reliability
* correctness
*/
Expand Down
2 changes: 2 additions & 0 deletions java/ql/src/Likely Bugs/Comparison/IncomparableEquals.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* @problem.severity error
* @precision very-high
* @id java/equals-on-unrelated-types
* @suites security-and-quality
* quality
* @tags reliability
* correctness
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity warning
* @precision medium
* @id java/inconsistent-compareto-and-equals
* @suites security-and-quality
* @tags reliability
* correctness
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* @problem.severity error
* @precision very-high
* @id java/inconsistent-equals-and-hashcode
* @suites security-and-quality
* quality
* @tags reliability
* correctness
* external/cwe/cwe-581
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* @problem.severity error
* @precision high
* @id java/unchecked-cast-in-equals
* @suites security-and-quality
* quality
* @tags reliability
* correctness
*/
Expand Down
2 changes: 2 additions & 0 deletions java/ql/src/Likely Bugs/Comparison/RefEqBoxed.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* @problem.severity error
* @precision very-high
* @id java/reference-equality-of-boxed-types
* @suites security-and-quality
* quality
* @tags reliability
* correctness
* external/cwe/cwe-595
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Likely Bugs/Comparison/StringComparison.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity warning
* @precision medium
* @id java/reference-equality-on-strings
* @suites security-and-quality
* @tags reliability
* external/cwe/cwe-597
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @problem.severity warning
* @precision very-high
* @id java/constant-comparison
* @suites security-and-quality
* @tags correctness
* logic
* external/cwe/cwe-570
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Likely Bugs/Comparison/WrongNanComparison.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity error
* @precision very-high
* @id java/comparison-with-nan
* @suites security-and-quality
* @tags correctness
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity error
* @precision medium
* @id java/wait-on-condition-interface
* @suites security-and-quality
* @tags reliability
* correctness
* concurrency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity recommendation
* @precision high
* @id java/call-to-thread-run
* @suites security-and-quality
* @tags reliability
* correctness
* concurrency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity warning
* @precision medium
* @id java/thread-unsafe-dateformat
* @suites security-and-quality
* @tags reliability
* correctness
* concurrency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @problem.severity error
* @precision high
* @id java/unsafe-double-checked-locking
* @suites security-and-quality
* @tags reliability
* correctness
* concurrency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @problem.severity warning
* @precision high
* @id java/unsafe-double-checked-locking-init-order
* @suites security-and-quality
* @tags reliability
* correctness
* concurrency
Expand Down
Loading