apache / apache/maven-pmd-plugin
[MPMD-242] RFE: Option to apply different rules for main and test sources
- Dominant language
- Java
- Stars
- 66
- Forks
- 55
- Avg merge
- 8d 16h
- Merged PRs (30d)
- 7
Description
**[Mitth'raw'nuruodo](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=thrawnca)** opened **[MPMD-242](https://issues.apache.org/jira/browse/MPMD-242?redirect=false)** 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](https://issues.apache.org/jira/browse/MPMD-236) Honor pmd:pmd/cpd config in pmd:check/cpd-check goals
1 votes, 1 watchers
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.