Recommended checkstyle configuration for Eclipse for open source Java projects?

I would like to open source my code. To make it easier for the contributors, I would like to tweak the checkstyle config to go along with this. However, my recent experience is that the ability of the Eclipse Checkstyle plugin to create formatting rules to match the checkstyle.xml file leaves a lot to be desired; that is, I need to manually change the generated formatting rules quite a bit to force them to actually format the file in such a way that it conforms to the checkstyle rules.

Are there "reference" checkstyle.xml files somewhere that are considered semi-standard for open source projects and that are Eclipse friendly in the sense that these formatting rules generated from them by the Checkstyle plugin are compatible?

+3


source to share


2 answers


I would definitely recommend Geosoft Checkstyle Configuration.
The same is available here .



+3


source


The Eclipse checkstyle default rules are Sun standard rules, which are a minimal set of rules.
You can use them.



+2


source







All Articles