Skip to content

PMD - pull_request #114

PMD - pull_request

PMD - pull_request #114

Triggered via pull request June 5, 2025 13:58
Status Success
Total duration 31s
Artifacts 1

check-pmd.yml

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

Annotations

10 errors
Document empty method body: powertools-metrics/src/main/java/software/amazon/lambda/powertools/metrics/internal/LambdaMetricsAspect.java#L64
Uncommented Empty Method Body finds instances where a method body does not contain statements, but there is no comment. By explicitly commenting empty method bodies it is easier to distinguish between intentional (commented) and unintentional empty methods. UncommentedEmptyMethodBody (Priority: 1, Ruleset: Documentation) https://docs.pmd-code.org/pmd-doc-7.14.0/pmd_rules_java_documentation.html#uncommentedemptymethodbody
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
2.11 KB
sha256:80b47cef749dc6d4ee61e92b47f6bc4c90b2735a74fa1d24d9d67107b8e4ceac