wood burning stoves 2.0
The moose likes IDEs, Version Control and other tools and the fly likes Checkstyle configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Checkstyle configuration" Watch "Checkstyle configuration" New topic

Checkstyle configuration

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9967


Can anyone please let me know on how to write a XML checkstyle configuration for a project that I have in eclipse? I mean how to write a customized one according to some specific coding rules that we follow? Can anyone please share some idea on this?

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Are you asking for the configuration file syntax? If so, see http://checkstyle.sourceforge.net/config.html .

Or are you asking how to write new rules to check? If so, what specific rule are you attempting to write?

JBoss In Action
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9967

I want to know how I can write new customized rules? For example, I want a rule that checks for an if else condition and warns me that I should always prefer ternary operators. Any good resource from Checkstyle that would help me acheive this? Help appreciated.
I agree. Here's the link: http://aspose.com/file-tools
subject: Checkstyle configuration
It's not a secret anymore!