Skip to content

Commit

Permalink
Update style guidelines
Browse files Browse the repository at this point in the history
Add notes about whitespace
  • Loading branch information
jdlrobson committed Jun 25, 2012
1 parent e4f2391 commit 3f1d9bf
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions STYLE_GUIDELINES
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,7 @@
Javascript code follows the coding conventions set out in
http://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript

There is one crucial exception in that this project uses slightly different whitespace rules:
there is no need for a space at the start or end in parentheses.
e.g.

function name(arg1, arg2) {
// do this
}

var x = function(arg1, arg2) {
// do this
}
if(x == 4) {
// do this
}

for(x = 0; x < 5; x++) {
// do this
}
Note: Previously we used our own whitespace guidelines however any future commits should adhere to standards in above link.

== CSS ==

Expand Down

0 comments on commit 3f1d9bf

Please sign in to comment.