Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checkstyle configuration

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

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?
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic