Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

added coding standard as discussed in #145

This may eventually get its own page, but for now it goes here.
  • Loading branch information...
commit 49c814c971ee653362f6665d7ca3e7b9cb12a3d8 1 parent e8b44a6
@sushimustwrite sushimustwrite authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 documentation/contribute/frontend.markdown
21 documentation/contribute/frontend.markdown
@@ -34,6 +34,27 @@ We've added a _Beginner_ label to issues that don't touch some of the more sensi
* <a href="">Beginner + JavaScript issues</a>
* <a href="">Beginner + PHP issues</a>
+## Things to keep in mind while you code
+Here's what your code should adhere to:
+* Unit tests should pass (more on that in the next section)
+* Spacing matters: two spaces, no tabs
+* Commits should reference an issue number (more on that below)
+* Comment your code so future developers can tell what's going on
+* Curly braces go on their own line. For example:
+ if(condition)
+ {
+ statement 1;
+ statement 2;
+ }
+ // or
+ if(condition)
+ only statement;
+All in all, we recognize that everyone has a different style and level of experience, and we welcome all pull requests.
## Testing that your change didn't break anything
Once you've made your change and verified it does what it should it's time to make sure it's not doing something it shouldn't. This is as easy as a single command.
Please sign in to comment.
Something went wrong with that request. Please try again.