Mitth'raw'nuruodo created MPMD-242:
--------------------------------------
Summary: RFE: Option to apply different rules for main and test
sources
Key: MPMD-242
URL: https://issues.apache.org/jira/browse/MPMD-242
Project: Maven PMD Plugin
Issue Type: Improvement
Components: PMD
Reporter: Mitth'raw'nuruodo
Priority: Minor
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.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)