Skip to content
Permalink
Browse files

add notes on coding conventions

  • Loading branch information...
bpsm committed Sep 16, 2012
1 parent 89a97db commit 596fb404e7bff4b279b570c0683e09132cd84a5a
Showing with 317 additions and 0 deletions.
  1. +26 −0 hacking/coding-conventions.md
  2. +291 −0 hacking/eclipse-java-4sp-code-format.xml
@@ -0,0 +1,26 @@
# Coding Conventions

I'm coding this using Eclipse using the "Java Conventions" with 4
spaces per indentation level.

class Foo {
int method() {
if ( ... ) {
...
} else if ( ... ) {
...
}
switch (...) {
case 0:
...
default:
...
}
}
}

There should be no trailing white space. In Eclipse, configure Preferences ⇒ Java ⇒ Editor ⇒ "Save Actions" to assure this.

Unit tests are useful. Have enough of those.


Oops, something went wrong.

0 comments on commit 596fb40

Please sign in to comment.
You can’t perform that action at this time.