-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: upgrade PMD to 7.5.0 #173
Conversation
This is really a reminder for the maintainers. For security reasons, we really shouldn't accept any PR that touches the binaries, as it would be very easy to compile PMD from source with malicious code. So we end up rerunning the upgrade scripts anyways (these should just be automated). @adangel thoughts on officially not accepting any PR that touches the binaries? |
@ChuckJonas thanks for the reply, I aggreed that I could have incorporated malicious code :/ Also I could write a github action to automate this if you're up to |
@alanjaouen If you want to take a stab at a github action, that would be great. It's been on the backlog for some time now. |
@alanjaouen Thanks for the PR.
Exactly - I usually run it again, and if git doesn't show a diff, then I assume the binaries are not manipulated (to be exact - that I have the same binaries on my machine, e.g. in my local maven repository).
I guess, as long as the repo contains binaries, we will receive PRs that will try to update the binaries. See also #171 ... It's more a question of what we want - as PMD is released monthly. That would mean, we could release vscode-apex-pmd also monthly. I didn't do this in the past, because there is
In terms of automation, I've created #153 a while ago... |
Hi @adangel I'm working on a salesforce project with npm dependencies.
Updating our rulset for 7.5 make pmd having error on unexpected parameters with ChuckJonas/vscode-apex-pmd, as the included pmd is older The forcedotcom/sfdx-code-analyzer-vscode is actually very inefficient, so we locally use ChuckJonas/vscode-apex-pmd to have a near real time linting. I tried to use the param I looked how to include the bin of pmd as a npm dependency, but I did'nt succeed I hope my use case is clearer, and if you have any tips for me let me know |
In order to make this working locally, you need to download PMD from https://github.com/pmd/pmd/releases/latest, extract it and point |
Hey, this is my first PR here so sorry if I missed something and please tell me If I
So, this PR is bassically just a run of
npm run update-pmd
to upgrade PMD engine to 7.5Also I'm not sure about what to do with this part of the README
Feel free to reach