This repository has been archived by the owner on Jan 1, 2021. It is now read-only.
forked from openstreetmap/potlatch2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Write down the coding standards that we've been using up to now
- Loading branch information
1 parent
1455123
commit 43688b4
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} | ||
} | ||
} |