Skip to content

PMD - pull_request #265

PMD - pull_request

PMD - pull_request #265

Triggered via pull request July 18, 2025 15:10
Status Success
Total duration 20s
Artifacts 1

check-pmd.yml

on: pull_request
pmd_analyse
15s
pmd_analyse
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 2 warnings
This class has only private constructors and may be final: powertools-e2e-tests/src/test/java/software/amazon/lambda/powertools/testutils/Infrastructure.java#L486
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/snapshot/pmd_rules_java_design.html#classwithonlyprivateconstructorsshouldbefinal
Perhaps 'functionName' could be replaced by a local variable.: powertools-e2e-tests/src/test/java/software/amazon/lambda/powertools/testutils/Infrastructure.java#L123
Reports fields which may be converted to a local variable. This is so because in every method where the field is used, it is assigned before it is first read. Hence, the value that the field had before the method call may not be observed, so it might as well not be stored in the enclosing object. Limitations: * We can only check private fields for now. * The rule is not aware of threading, so it may cause false positives in concurrent code. Such FPs are best handled by suppression (see also the `ignoredAnnotations` property). SingularField (Priority: 1, Ruleset: Design) https://docs.pmd-code.org/snapshot/pmd_rules_java_design.html#singularfield
This class has only private constructors and may be final: powertools-e2e-tests/src/test/java/software/amazon/lambda/powertools/testutils/Infrastructure.java#L100
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/snapshot/pmd_rules_java_design.html#classwithonlyprivateconstructorsshouldbefinal
This class has only private constructors and may be final: powertools-e2e-tests/src/test/java/software/amazon/lambda/powertools/testutils/DockerConfiguration.java#L31
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/snapshot/pmd_rules_java_design.html#classwithonlyprivateconstructorsshouldbefinal
pmd_analyse
Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
pmd_analyse
Cache not found for keys: setup-java-Linux-x64-maven-23003f773c05ff35b4f7d40d8c163d62445629c0170a2790e5a5a7f62cbecdc1

Artifacts

Produced during runtime
Name Size Digest
PMD Report Expired
1.21 KB
sha256:6a71d8cdad11d899038b96dc0b95d290224bc09cfc04b94d3a16a89ffee1d3a8