Apex standard ruleset vs custom ruleset #4639
Replies: 1 comment
-
I assume, your are using Apex PMD, the VS Code extension. The default ruleset provided by this extension is here: The available rules are here:
No
That really depends on what you want to check. Quoting "Defining your own "Ruleset"" on https://marketplace.visualstudio.com/items?itemName=chuckjonas.apex-pmd
That means, you start using the default ruleset. If you have fixed all problems in your code, then you can look at the other rules, that are not enabled yet add them to a custom ruleset, if you see they make sense in your project/context. So you are gradually enabling all the rules, you want. Note: The Apex PMD extension doesn't support PMD 7 yet, but that's in the works (see ChuckJonas/vscode-apex-pmd#130) |
Beta Was this translation helpful? Give feedback.
-
Hi, I have a query on apex pmd. If we use default ruleset, does it include all apex rules mentioned in the pmd documentation, or we need to use custom rule mentioning all apex rules definwd in the documentation.
Beta Was this translation helpful? Give feedback.
All reactions