Skip to content

PMD - pull_request #1557

PMD - pull_request

PMD - pull_request #1557

Status Success
Total duration 21s
Artifacts 1

check-pmd.yml

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

Annotations

2 errors and 2 warnings
A catch statement should never catch throwable since it includes errors.: powertools-large-messages/src/main/java/software/amazon/lambda/powertools/largemessages/LargeMessages.java#L169
Catching Throwable errors is not recommended since its scope is very broad. It includes runtime issues such as OutOfMemoryError that should be exposed and managed separately. **Deprecated:** This rule is deprecated since PMD 7.18.0 and will be removed with PMD 8.0.0. This rule has been subsumed by {% rule AvoidCatchingGenericException %}, which is now configurable as to which exceptions cause a violation. AvoidCatchingThrowable (Priority: 1, Ruleset: Error Prone) https://docs.pmd-code.org/snapshot/pmd_rules_java_errorprone.html#avoidcatchingthrowable
This class has only private constructors and may be final: powertools-large-messages/src/main/java/software/amazon/lambda/powertools/largemessages/LargeMessageConfig.java#L45
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
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: pmd/pmd-github-action@d9c1f3c5940cbf5923f1354e83fa858b4496ebaa. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
pmd_analyse
Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.

Artifacts

Produced during runtime
Name Size Digest
PMD Report
1.14 KB
sha256:01aaf4c9ad38fe1fe4777d818f5ad1c078581915ecdf82d364512ed0f539e0ea