pmd #136
Annotations
11 errors and 11 warnings
Upload SARIF file
CodeQL Action major versions v1 and v2 have been deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v3. For more information, see https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated/
|
Run PMD:
src/main/org/deidentifier/arx/ARXAnonymizer.java#L423
Configurable naming conventions for local variable declarations and other locally-scoped
variables. This rule reports variable declarations which do not match the regex that applies to their
specific kind (e.g. final variable, or catch-clause parameter). Each regex can be configured through
properties.
By default this rule uses the standard Java naming convention (Camel case).
LocalVariableNamingConventions (Priority: 1, Ruleset: Code Style)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_codestyle.html#localvariablenamingconventions
|
Run PMD:
src/main/org/deidentifier/arx/ARXConfiguration.java#L56
Reports classes that may be made final because they cannot be extended from outside
their compilation unit anyway. This is because all their constructors are private,
so a subclass could not call the super constructor.
ClassWithOnlyPrivateConstructorsShouldBeFinal (Priority: 1, Ruleset: Design)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_design.html#classwithonlyprivateconstructorsshouldbefinal
|
Run PMD:
src/main/org/deidentifier/arx/ARXConfiguration.java#L547
Object clone() should be implemented with super.clone().
ProperCloneImplementation (Priority: 2, Ruleset: Error Prone)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_errorprone.html#propercloneimplementation
|
Run PMD:
src/main/org/deidentifier/arx/ARXCostBenefitConfiguration.java#L60
Object clone() should be implemented with super.clone().
ProperCloneImplementation (Priority: 2, Ruleset: Error Prone)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_errorprone.html#propercloneimplementation
|
Run PMD:
src/main/org/deidentifier/arx/ARXFeatureScaling.java#L30
Reports classes that may be made final because they cannot be extended from outside
their compilation unit anyway. This is because all their constructors are private,
so a subclass could not call the super constructor.
ClassWithOnlyPrivateConstructorsShouldBeFinal (Priority: 1, Ruleset: Design)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_design.html#classwithonlyprivateconstructorsshouldbefinal
|
Run PMD:
src/main/org/deidentifier/arx/ARXLattice.java#L1498
Configurable naming conventions for method declarations. This rule reports
method declarations which do not match the regex that applies to their
specific kind (e.g. JUnit test or native method). Each regex can be
configured through properties.
By default this rule uses the standard Java naming convention (Camel case).
MethodNamingConventions (Priority: 1, Ruleset: Code Style)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_codestyle.html#methodnamingconventions
|
Run PMD:
src/main/org/deidentifier/arx/ARXPopulationModel.java#L26
Reports classes that may be made final because they cannot be extended from outside
their compilation unit anyway. This is because all their constructors are private,
so a subclass could not call the super constructor.
ClassWithOnlyPrivateConstructorsShouldBeFinal (Priority: 1, Ruleset: Design)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_design.html#classwithonlyprivateconstructorsshouldbefinal
|
Run PMD:
src/main/org/deidentifier/arx/ARXPopulationModel.java#L158
Object clone() should be implemented with super.clone().
ProperCloneImplementation (Priority: 2, Ruleset: Error Prone)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_errorprone.html#propercloneimplementation
|
Run PMD:
src/main/org/deidentifier/arx/ARXProcessStatistics.java#L121
Object clone() should be implemented with super.clone().
ProperCloneImplementation (Priority: 2, Ruleset: Error Prone)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_errorprone.html#propercloneimplementation
|
Run PMD:
src/main/org/deidentifier/arx/ARXProcessStatistics.java#L369
Object clone() should be implemented with super.clone().
ProperCloneImplementation (Priority: 2, Ruleset: Error Prone)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_errorprone.html#propercloneimplementation
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run PMD:
src/main/org/deidentifier/arx/ARXAnonymizer.java#L185
Enforce a policy for braces on control statements. It is recommended to use braces on 'if ... else'
statements and loop statements, even if they are optional. This usually makes the code clearer, and
helps prepare the future when you need to add another statement. That said, this rule lets you control
which statements are required to have braces via properties.
From 6.2.0 on, this rule supersedes WhileLoopMustUseBraces, ForLoopMustUseBraces, IfStmtMustUseBraces,
and IfElseStmtMustUseBraces.
ControlStatementBraces (Priority: 3, Ruleset: Code Style)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_codestyle.html#controlstatementbraces
|
Run PMD:
src/main/org/deidentifier/arx/ARXAnonymizer.java#L188
Enforce a policy for braces on control statements. It is recommended to use braces on 'if ... else'
statements and loop statements, even if they are optional. This usually makes the code clearer, and
helps prepare the future when you need to add another statement. That said, this rule lets you control
which statements are required to have braces via properties.
From 6.2.0 on, this rule supersedes WhileLoopMustUseBraces, ForLoopMustUseBraces, IfStmtMustUseBraces,
and IfElseStmtMustUseBraces.
ControlStatementBraces (Priority: 3, Ruleset: Code Style)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_codestyle.html#controlstatementbraces
|
Run PMD:
src/main/org/deidentifier/arx/ARXAnonymizer.java#L191
Enforce a policy for braces on control statements. It is recommended to use braces on 'if ... else'
statements and loop statements, even if they are optional. This usually makes the code clearer, and
helps prepare the future when you need to add another statement. That said, this rule lets you control
which statements are required to have braces via properties.
From 6.2.0 on, this rule supersedes WhileLoopMustUseBraces, ForLoopMustUseBraces, IfStmtMustUseBraces,
and IfElseStmtMustUseBraces.
ControlStatementBraces (Priority: 3, Ruleset: Code Style)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_codestyle.html#controlstatementbraces
|
Run PMD:
src/main/org/deidentifier/arx/ARXAnonymizer.java#L730
Avoid the creation of unnecessary local variables
UnnecessaryLocalBeforeReturn (Priority: 3, Ruleset: Code Style)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_codestyle.html#unnecessarylocalbeforereturn
|
Run PMD:
src/main/org/deidentifier/arx/ARXConfiguration.java#L63
Fields in interfaces and annotations are automatically `public static final`, and methods are `public abstract`.
Classes, interfaces or annotations nested in an interface or annotation are automatically `public static`
(all nested interfaces and annotations are automatically static).
Nested enums are automatically `static`.
For historical reasons, modifiers which are implied by the context are accepted by the compiler, but are superfluous.
UnnecessaryModifier (Priority: 3, Ruleset: Code Style)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_codestyle.html#unnecessarymodifier
|
Run PMD:
src/main/org/deidentifier/arx/ARXConfiguration.java#L263
Fields in interfaces and annotations are automatically `public static final`, and methods are `public abstract`.
Classes, interfaces or annotations nested in an interface or annotation are automatically `public static`
(all nested interfaces and annotations are automatically static).
Nested enums are automatically `static`.
For historical reasons, modifiers which are implied by the context are accepted by the compiler, but are superfluous.
UnnecessaryModifier (Priority: 3, Ruleset: Code Style)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_codestyle.html#unnecessarymodifier
|
Run PMD:
src/main/org/deidentifier/arx/ARXConfiguration.java#L278
Fields in interfaces and annotations are automatically `public static final`, and methods are `public abstract`.
Classes, interfaces or annotations nested in an interface or annotation are automatically `public static`
(all nested interfaces and annotations are automatically static).
Nested enums are automatically `static`.
For historical reasons, modifiers which are implied by the context are accepted by the compiler, but are superfluous.
UnnecessaryModifier (Priority: 3, Ruleset: Code Style)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_codestyle.html#unnecessarymodifier
|
Run PMD:
src/main/org/deidentifier/arx/ARXConfiguration.java#L547
Annotating overridden methods with @OverRide ensures at compile time that
the method really overrides one, which helps refactoring and clarifies intent.
MissingOverride (Priority: 3, Ruleset: Best Practices)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_bestpractices.html#missingoverride
|
Run PMD:
src/main/org/deidentifier/arx/ARXConfiguration.java#L614
Enforce a policy for braces on control statements. It is recommended to use braces on 'if ... else'
statements and loop statements, even if they are optional. This usually makes the code clearer, and
helps prepare the future when you need to add another statement. That said, this rule lets you control
which statements are required to have braces via properties.
From 6.2.0 on, this rule supersedes WhileLoopMustUseBraces, ForLoopMustUseBraces, IfStmtMustUseBraces,
and IfElseStmtMustUseBraces.
ControlStatementBraces (Priority: 3, Ruleset: Code Style)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_codestyle.html#controlstatementbraces
|
Run PMD:
src/main/org/deidentifier/arx/ARXConfiguration.java#L615
Enforce a policy for braces on control statements. It is recommended to use braces on 'if ... else'
statements and loop statements, even if they are optional. This usually makes the code clearer, and
helps prepare the future when you need to add another statement. That said, this rule lets you control
which statements are required to have braces via properties.
From 6.2.0 on, this rule supersedes WhileLoopMustUseBraces, ForLoopMustUseBraces, IfStmtMustUseBraces,
and IfElseStmtMustUseBraces.
ControlStatementBraces (Priority: 3, Ruleset: Code Style)
https://docs.pmd-code.org/pmd-doc-7.9.0/pmd_rules_java_codestyle.html#controlstatementbraces
|
Loading