Skip to content

Support for pmd v7.0.0.0 rule engine #1145

@mainakgupta33

Description

@mainakgupta33

Is your feature request related to a problem? Please describe.
Currently the PMD rule engine supported is pmd v6.5.5 but with Salesforce latest summer 23 release
a lot features like Usermode keywords are not being recognised by the older PMD versions and running
the scanner on codes containing those keywords still report the classes to be non CRUD validation compliant.

Describe the solution you'd like
If the support for latest PMD v7.0.0.x can be added and can be put in the CLI parameter to mention the desired
pmd version then this will solve the problem.

Describe alternatives you've considered
Alternatives checked is the APEX PMD plugin for VSCode but that runs on even lower PMD version 5.9 by default
and it doesn't work in a stable way even the bin location of PMD 7 is provided.
Additional context
Add any other context or screenshots about the feature request here.

"Workaround": Can you do something similar with existing capabilities?

"Urgency": How badly do you need this feature? "Nice to have" vs "Highly beneficial" vs "Can't live without it".
Since there is no alternatives available as of now that makes it "Can't live without it" category as without it
it makes the point of using PMD scan useless if it can't tell if the best practices are followed and marks the codes
as false positive even when latest best practices are followed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Delivered ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions