3

I'd like to open source some code of mine. To make it easier for contributors, I'd like to set up a checkstyle configuration to go along with it. However, my recent experience is that the Eclipse Checkstyle plugin's ability to generate formatter rules that correspond to a checkstyle.xml file leaves something to be desired; that is, I need to manually tweak the generated formatter rules quite a bit to get them to actually format a file such that it complies with the checkstyle rules.

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

2 Answers 2

3

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

Sign up to request clarification or add additional context in comments.

Comments

2

The default Eclipse checkstyle rules, are the Sun standard rules, which is a minimum set of rules.
You could use these.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.