Skip to content
Matt Simerson edited this page Mar 17, 2014 · 27 revisions

We love and value outside contributions to Haraka.

If you wish to contribute, please use the Github "Pull Request" mechanism - fork the project, create a branch for your changes, commit and push them to your repository, and click on "Create Pull Request" for that branch in Github.

General Guidelines

  • New features must be documented
  • New features should include tests

Style conventions

  • 4 spaces for indentation (no tabs)
  • Semi-colons on the end of statements are preferred
  • Use underscores_to_separate_names (yes this goes against JS conventions - it's the way it has always been done)
  • Do not cuddle elses
  • Use whitespace between operators - we prefer if (foo > bar) over if(foo>bar)
  • Don't comment out lines of code, remove them as they will be in the revision history.
  • Use boolean true/false instead of numeric 0/1
Clone this wiki locally