maven-pmd-plugin
maven-pmd-plugin copied to clipboard
[MPMD-242] RFE: Option to apply different rules for main and test sources
Mitth'raw'nuruodo opened MPMD-242 and commented
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.
Issue Links:
- MPMD-236 Honor pmd:pmd/cpd config in pmd:check/cpd-check goals
1 votes, 1 watchers