Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 707
Dennis Laumen Avatar asked Apr 02 '12 09:04

Dennis Laumen


1 Answers

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.

like image 181
Dennis Laumen Avatar answered Oct 09 '22 11:10

Dennis Laumen