Skip to content

PMD - pull_request #119

PMD - pull_request

PMD - pull_request #119

Triggered via pull request June 6, 2025 07:41
Status Success
Total duration 26s
Artifacts 1

check-pmd.yml

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

Annotations

10 errors
This class has only private constructors and may be final: powertools-metrics/src/main/java/software/amazon/lambda/powertools/metrics/internal/Validator.java#L25
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.14.0/pmd_rules_java_design.html#classwithonlyprivateconstructorsshouldbefinal
Avoid empty catch blocks: powertools-metrics/src/main/java/software/amazon/lambda/powertools/metrics/internal/EmfMetricsLogger.java#L251
Empty Catch Block finds instances where an exception is caught, but nothing is done. In most circumstances, this swallows an exception which should either be acted on or reported. EmptyCatchBlock (Priority: 1, Ruleset: Error Prone) https://docs.pmd-code.org/pmd-doc-7.14.0/pmd_rules_java_errorprone.html#emptycatchblock
Avoid empty catch blocks: powertools-metrics/src/main/java/software/amazon/lambda/powertools/metrics/internal/EmfMetricsLogger.java#L198
Empty Catch Block finds instances where an exception is caught, but nothing is done. In most circumstances, this swallows an exception which should either be acted on or reported. EmptyCatchBlock (Priority: 1, Ruleset: Error Prone) https://docs.pmd-code.org/pmd-doc-7.14.0/pmd_rules_java_errorprone.html#emptycatchblock
Avoid empty catch blocks: powertools-metrics/src/main/java/software/amazon/lambda/powertools/metrics/internal/EmfMetricsLogger.java#L108
Empty Catch Block finds instances where an exception is caught, but nothing is done. In most circumstances, this swallows an exception which should either be acted on or reported. EmptyCatchBlock (Priority: 1, Ruleset: Error Prone) https://docs.pmd-code.org/pmd-doc-7.14.0/pmd_rules_java_errorprone.html#emptycatchblock
Avoid empty catch blocks: powertools-metrics/src/main/java/software/amazon/lambda/powertools/metrics/internal/EmfMetricsLogger.java#L84
Empty Catch Block finds instances where an exception is caught, but nothing is done. In most circumstances, this swallows an exception which should either be acted on or reported. EmptyCatchBlock (Priority: 1, Ruleset: Error Prone) https://docs.pmd-code.org/pmd-doc-7.14.0/pmd_rules_java_errorprone.html#emptycatchblock
This class has only private constructors and may be final: powertools-metrics/src/main/java/software/amazon/lambda/powertools/metrics/MetricsBuilder.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.14.0/pmd_rules_java_design.html#classwithonlyprivateconstructorsshouldbefinal
Avoid unused private methods such as 'log()'.: examples/powertools-examples-core-utilities/sam/src/main/java/helloworld/App.java#L101
Unused Private Method detects when a private method is declared but is unused. UnusedPrivateMethod (Priority: 1, Ruleset: Best Practices) https://docs.pmd-code.org/pmd-doc-7.14.0/pmd_rules_java_bestpractices.html#unusedprivatemethod
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/pmd-doc-7.14.0/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/pmd-doc-7.14.0/pmd_rules_java_bestpractices.html#unusedprivatemethod
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/pmd-doc-7.14.0/pmd_rules_java_bestpractices.html#unusedprivatemethod

Artifacts

Produced during runtime
Name Size Digest
PMD Report Expired
1.91 KB
sha256:75782e892283b93229e93acf89f5a0238e68f7195a79616a2e85e2ff7bd194b0