Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Main code and test code often have different quality requirements. For example, if you're using a test framework and a mocking framework and maybe Hamcrest on top of that, it's normal to have lots of static imports - but you wouldn't want that in main code. It's also normal, even desirable, to have lots of test cases, which trips the rule about excessive methods in a class. And the Design ruleset probably isn't all that important for test sources.
It would be nice to be able to configure different rulesets for main code and test code.
Attachments
Issue Links
- is related to
-
MPMD-236 Honor pmd:pmd/cpd config in pmd:check/cpd-check goals
- Open