Dashboard > Community Wiki > ... > Developing with Magnolia > Code style
Code style Log In View a printable version of the current page.

Added by GrĂ©gory Joseph , last edited by Boris Kraft on Jun 23, 2008  (view change)
Labels: 

Magnolia contributors are kindly request to follow these simple conventions below:

  • Standard Java coding conventions
  • Tab policy: spaces only
  • Indentation: 4 spaces
  • Maximum line width: 120 (no strong rule here - don't put exceptions declarations on new lines just to respect this, for instance)
  • We preferably don't use abbreviations in classnames (only exception to that rule is MgnlSomething)

Also ensure that you have the right license headers in place !

See the file attached for Eclipse Preferences (which you can simply import and everything should be done).

_Note: you have to reset the M2_REPO variable (Preferences > Java > Build Path > Classpath Variables) to match your local Maven 2 repository again.

Powered by a free Atlassian Confluence Open Source Project License granted to Magnolia International. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators