PMD-Intellij icon indicating copy to clipboard operation
PMD-Intellij copied to clipboard

Options/Skip Test Sources should be default checked

Open jborgers opened this issue 2 years ago • 1 comments

Most likely setting is to not scan test sources, make that the default. Or it should be taken from a project initial value, or from another project window. When opening a project where pmd is not used on, yet, with another project open, it takes the ruleset from the other project but not the Skip Test Sources setting.

jborgers avatar Jul 12 '23 12:07 jborgers

I wonder why we have the decision of scanning test sources as a project global option anyway? Wouldn't it make more sense to have such a property per rule set?

E.g., in my projects I do have different rule sets for tests and production code. So in IntelliJ it would be helpful to specify for each new ruleset if those rules should be applied to test sources or production sources (or both).

Similar to CheckStyle:

Image

uhafner avatar May 08 '25 15:05 uhafner