Edit me

??-?????-2021 - 7.0.0-SNAPSHOT

The PMD team is pleased to announce PMD 7.0.0-SNAPSHOT.

This is a major release.

New and noteworthy

New rules

  • The new Apex rule InaccessibleAuraEnabledGetter checks that an AuraEnabled getter is public or global. This is necessary if it is referenced in Lightning components. You can try out this rule like so:
    <rule ref="category/apex/errorprone.xml/InaccessibleAuraEnabledGetter" />

Renamed rules

  • The Java rule BadComparison has been renamed to ComparisonWithNaN to better reflect what the rule actually detects. It now considers usages of Double.NaN or Float.NaN in more cases and fixes false negatives.

Fixed Issues

  • apex-errorprone
    • #3321: [apex] New rule to detect inaccessible AuraEnabled getters (summer ‘21 security update)
  • core
    • #3323: [core] Adds fullDescription and tags in SARIF report
  • java-codestyle
    • #3317: [java] Update UnnecessaryImport to recognize usage of imported types in javadoc’s @exception tag
  • java-errorprone
    • #2895: [java] Improve BadComparison and rename to ComparisonWithNaN
    • #3304: [java] NPE in MoreThanOneLoggerRule on a java 16 record

API Changes

External Contributions