• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Formatter

 
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Having trouble with eclipse's formatter, it's supposed to be according to Sun's conventions but doesn't pass checkstyle, which is also set to Sun's conventions. Anyhat, what do you guys use?
 
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I modified eclipse formatter options to do it exactly the way I want :
- 80 caracters per line
- blank line before the 1st member in classes...

Also, Checkstyle checks more than what the Eclipse formatter does I believe.Their scope are different.

For instance, checkstyle will tell you that your variable name is not correct, or that you should use a keyword in a specific situation. Eclipse, will only put the right tabulation.

I use both.

I have a question though. Checkstyle keeps telling me that my methods should have final arguments. is that something I should really do ?
It also bugs me with the order of keywords "final public static" Is that important also ?

Regards,
Alex
 
reply
    Bookmark Topic Watch Topic
  • New Topic