Apache Archiva > Index > Conventions and Processes > Code Styles
Added by Maria Odea Ching, last edited by Brett Porter on Jul 18, 2008  (view change)

Code Styles

There isn't a code style that needs to be followed as long as it is consistent, can be checked in checkstyle, can be formatted in Eclipse, IDEA and NetBeans. And the following rules must be followed:

  1. Use spaces, not tabs
    • 4 spaces for Java
    • 2 spaces for XML
  2. 120 column wrap, not 80.
  3. Wrap on spaces, not on '.' in a method call

Reference:
http://www.nabble.com/Re%3A-What-do-we-need-to-establish--p17167235.html