-
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
Allow disablement via VSCode settings #166
Comments
This might be a duplicate of #163 |
Both of these projects are sfdx projects, one of them doesn't have the |
Hi @NickTracker, From looking at your initial problem description, it sounds like you have some customized PMD rule set
And you have conigured your ApexPMD to use that file in your User settings:
If this is a project-specific ruleset file, you can set this configuration on your Workspace settings rather than User settings - then it only applies when you run ApexPMD from your These workspace-specific configs are written into the {
"apexPMD.rulesets": [
"./.pmd-temp/quickstart_securityOnly.xml"
]
} |
Interesting, thank you! I will try today and report back. |
Is your feature request related to a problem? Please describe.
When I go to a different repo that is missing a standards xml I get a bunch of errors in my IDE saying that Apex PMD can't find the standards.xml path which is provided in the
"apexPMD.rulesets"
property of settings.Describe the solution you'd like
I'd like a way to disable the extension via the command pallette.
GIVEN I'm a VSCode user
WHEN I type
cmd
+shift
+p
AND I type "disable pmd"
THEN I see an action to disable PMD
AND I see an action to enable PMD
AND selecting either option disables/enables respectively
Additional context
![Screenshot 2024-05-23 at 18 00 01](https://private-user-images.githubusercontent.com/145612031/333364770-4300643e-208a-4bba-a123-ab45e14b07f7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTI3NzMsIm5iZiI6MTczOTU1MjQ3MywicGF0aCI6Ii8xNDU2MTIwMzEvMzMzMzY0NzcwLTQzMDA2NDNlLTIwOGEtNGJiYS1hMTIzLWFiNDVlMTRiMDdmNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxNzAxMTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wMzhmYjc0OTUyM2VjNmUwZWY2MDhiNTZlZmMxODMzYWU4NzIzNGQwZDZhNGFmYmY1YmIyMWViZDQ1NGRhYjBlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.r7hCfGOMAUrkB0Khh1MXp9aJYFfUgZqfKOr299pSXTA)
The text was updated successfully, but these errors were encountered: