I am a newbie to static code analysis tools for java like CheckStyle. I downloaded the Checkstyle package and see 2 sets of checks:
- checkstyle_checks.xml
- sun_checks.xml.
I compared these and geosoft_checks.xml to the master list of all available in checkstyle...essentially a 4 table full outer join to see which checks were included in most of the 3 sources.
checks |source
-----------|--------------------------------------------------------
134.......| All available
75.........| checkstyle_checks.xml (plus a SuppressionFilter pointing to suppressions.xml)
63.........| sun_checks.xml
73.........| geosoft_chekcs.xml (after removing 4 which don't work in checkstyle 5.7)
- DoubleCheckedLocking
- PackageHtml
- TabCharacter
- GenericIllegalRegexp
I've only done the analysis on sun_checks and geosoft_checks to determine which ones i can safely remove based on actual findings in the code base (of course someone can come along and violate one of the many checks not included in either)
Are there recent guidelines for which checks to include which won't unnecessarily frustrate a development team ? Have people extended checkstyle with useful checks which have been contributed back to the opensource community ?