简体   繁体   中英

CheckStyle, FindBugs, and PMD configurations without overlap

At my company we started using CheckStyle, FindBugs, and PMD to check our code quality and unify our programming styles. These tools are very effective but unfortunately they have some overlapping rule sets.

Are there configurations available online which have removed the overlapping rules?

Of course, these default rule sets are not applicable to every project but it would be a good starting point for us. We could take this default (non overlapping) configuration and adapt it to our style instead of pruning the rule sets for duplicates first.

Sonar ships with some pretty good configurations called Sonar Way and Sonar Way with FindBugs which don't appear to have any overlap between the different tools (CheckStyle, FindBugs, and PMD). They seem to fulfill my needs as a decent starting point for a configuration without all the superfluous rules.

PS I was hesitant to answer my own question but nobody else had an answer or even an insightful comment. This thread on Meta also seems to think it's okay.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM