Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Commit

Permalink
Write down the coding standards that we've been using up to now
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitystorm committed Dec 13, 2010
1 parent 1455123 commit 43688b4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions net/systemeD/halcyon/CODING.txt
@@ -0,0 +1,28 @@
== Coding guidelines ==

* Be sensible
* Be tolerant

== Whitespace ==

* Use space, not tabs. You can only get away with tabs if your name is Richard Fairhurst
* Set your editor to treat tabs as two spaces when viewing them, otherwise you'll go mad
* Blank lines shouldn't have whitespace
* No trailing whitespace
* Only "fix" whitespace errors while changing that line of code for other reasons. Otherwise, it's not worth fixing.

== Indentation ==

package net.systemed.potlatch2.indentation {

class IndentedByFourSpaces {

public function IndentedByFourMoreSpaces:void {
if (indentedCodeWithinFunction) {
justIndentByTwoSpaces = true;
} else {
shotAtDawn = true;
}
}
}
}

0 comments on commit 43688b4

Please sign in to comment.