mitchspano / sfdx-scan-pull-request

Runs sfdx-scanner on a pull request and generates in-line comments with the findings.
Apache License 2.0
73 stars 25 forks source link

Configure the PMD version the Action uses? #70

Closed rsoesemann closed 11 months ago

rsoesemann commented 11 months ago

@mitchspano, we are using your action in a project and I want to use it with the latest PMD 7 Release Candidate. Because only this RC contains the latest Salesforce Apex parser which understands for user DML.

All v6 crash on this and the Final v7 will contain the new Apex parser contributed by your fellow Googlers. By the way...do you know anything about this effort?

mitchspano commented 11 months ago

Thanks for bringing this to my attention.

For all intents and purposeds, this action really is a wrapper around the SFDX scanner plugin, which currently has no support for specifying a PMD version in their commands:

https://forcedotcom.github.io/sfdx-scanner/en/v3.x/scanner-commands/run/

So I don't think this is feasible