PMD - schedule #672
Annotations
10 errors and 1 warning
The method parameter name 'field$' doesn't match '[a-z][a-zA-Z0-9]*':
examples/powertools-examples-kafka/src/main/java/org/demo/kafka/avro/AvroProduct.java#L106
Configurable naming conventions for formal parameters of methods and lambdas.
This rule reports formal parameters which do not match the regex that applies to their
specific kind (e.g. lambda parameter, or final formal parameter). Each regex can be
configured through properties.
By default this rule uses the standard Java naming convention (Camel case).
FormalParameterNamingConventions (Priority: 1, Ruleset: Code Style)
https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#formalparameternamingconventions
|
Document empty constructor:
examples/powertools-examples-kafka/src/main/java/org/demo/kafka/avro/AvroProduct.java#L84
Uncommented Empty Constructor finds instances where a constructor does not
contain statements, but there is no comment. By explicitly commenting empty
constructors it is easier to distinguish between intentional (commented)
and unintentional empty constructors.
UncommentedEmptyConstructor (Priority: 1, Ruleset: Documentation)
https://docs.pmd-code.org/snapshot/pmd_rules_java_documentation.html#uncommentedemptyconstructor
|
Document empty constructor:
examples/powertools-examples-kafka/src/main/java/org/demo/kafka/Product.java#L22
Uncommented Empty Constructor finds instances where a constructor does not
contain statements, but there is no comment. By explicitly commenting empty
constructors it is easier to distinguish between intentional (commented)
and unintentional empty constructors.
UncommentedEmptyConstructor (Priority: 1, Ruleset: Documentation)
https://docs.pmd-code.org/snapshot/pmd_rules_java_documentation.html#uncommentedemptyconstructor
|
Avoid unused private methods such as 'log()'.:
examples/powertools-examples-core-utilities/sam-graalvm/src/main/java/helloworld/App.java#L98
Unused Private Method detects when a private method is declared but is unused.
UnusedPrivateMethod (Priority: 1, Ruleset: Best Practices)
https://docs.pmd-code.org/snapshot/pmd_rules_java_bestpractices.html#unusedprivatemethod
|
Avoid unused private methods such as 'log()'.:
examples/powertools-examples-core-utilities/gradle/src/main/java/helloworld/App.java#L97
Unused Private Method detects when a private method is declared but is unused.
UnusedPrivateMethod (Priority: 1, Ruleset: Best Practices)
https://docs.pmd-code.org/snapshot/pmd_rules_java_bestpractices.html#unusedprivatemethod
|
This utility class has a non-private constructor:
examples/powertools-examples-core-utilities/cdk/infra/src/main/java/cdk/CdkApp.java#L20
For classes that only have static methods, consider making them utility classes.
Note that this doesn't apply to abstract classes, since their subclasses may
well include non-static methods. Also, if you want this class to be a utility class,
remember to add a private constructor to prevent instantiation.
(Note, that this use was known before PMD 5.1.0 as UseSingleton).
UseUtilityClass (Priority: 1, Ruleset: Design)
https://docs.pmd-code.org/snapshot/pmd_rules_java_design.html#useutilityclass
|
Avoid unused private methods such as 'log()'.:
examples/powertools-examples-core-utilities/cdk/app/src/main/java/helloworld/App.java#L94
Unused Private Method detects when a private method is declared but is unused.
UnusedPrivateMethod (Priority: 1, Ruleset: Best Practices)
https://docs.pmd-code.org/snapshot/pmd_rules_java_bestpractices.html#unusedprivatemethod
|
This utility class has a non-private constructor:
examples/powertools-examples-cloudformation/infra/cdk/src/main/java/com/myorg/PowertoolsExamplesCloudformationCdkApp.java#L6
For classes that only have static methods, consider making them utility classes.
Note that this doesn't apply to abstract classes, since their subclasses may
well include non-static methods. Also, if you want this class to be a utility class,
remember to add a private constructor to prevent instantiation.
(Note, that this use was known before PMD 5.1.0 as UseSingleton).
UseUtilityClass (Priority: 1, Ruleset: Design)
https://docs.pmd-code.org/snapshot/pmd_rules_java_design.html#useutilityclass
|
Document empty constructor:
examples/powertools-examples-batch/src/main/java/org/demo/batch/model/Product.java#L26
Uncommented Empty Constructor finds instances where a constructor does not
contain statements, but there is no comment. By explicitly commenting empty
constructors it is easier to distinguish between intentional (commented)
and unintentional empty constructors.
UncommentedEmptyConstructor (Priority: 1, Ruleset: Documentation)
https://docs.pmd-code.org/snapshot/pmd_rules_java_documentation.html#uncommentedemptyconstructor
|
Document empty constructor:
examples/powertools-examples-batch/src/main/java/org/demo/batch/model/DdbProduct.java#L29
Uncommented Empty Constructor finds instances where a constructor does not
contain statements, but there is no comment. By explicitly commenting empty
constructors it is easier to distinguish between intentional (commented)
and unintentional empty constructors.
UncommentedEmptyConstructor (Priority: 1, Ruleset: Documentation)
https://docs.pmd-code.org/snapshot/pmd_rules_java_documentation.html#uncommentedemptyconstructor
|
pmd_analyse
Unsupported github action event 'schedule' - cannot determine modified files. All files will be analyzed.
|
Artifacts
Produced during runtime
Name | Size | Digest | |
---|---|---|---|
PMD Report
|
13.2 KB |
sha256:414c294a178f7437bea1fe7a0b6fc3268b747c2617dbb6f2c55493059e3f6c15
|
|