diff options
author | Mattes D <github@xoft.cz> | 2014-03-08 21:14:59 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-08 21:14:59 +0100 |
commit | 17f27d1750083dc0a3eb958d554184839d7f92f2 (patch) | |
tree | 5b84011b3f33cbd0984cc0732f40337cb9794b85 /CONTRIBUTING.md | |
parent | Merge pull request #729 from worktycho/MetaRotate (diff) | |
download | cuberite-17f27d1750083dc0a3eb958d554184839d7f92f2.tar cuberite-17f27d1750083dc0a3eb958d554184839d7f92f2.tar.gz cuberite-17f27d1750083dc0a3eb958d554184839d7f92f2.tar.bz2 cuberite-17f27d1750083dc0a3eb958d554184839d7f92f2.tar.lz cuberite-17f27d1750083dc0a3eb958d554184839d7f92f2.tar.xz cuberite-17f27d1750083dc0a3eb958d554184839d7f92f2.tar.zst cuberite-17f27d1750083dc0a3eb958d554184839d7f92f2.zip |
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r-- | CONTRIBUTING.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a0a332f30..7ec7058ae 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -22,8 +22,10 @@ Code Stuff - This helps prevent mistakes such as `if (a & 1 == 0)` * White space is free, so use it freely - "freely" as in "plentifully", not "arbitrarily" + * All `case` statements inside a `switch` need an extra indent. * Each and every control statement deserves its braces. This helps maintainability later on when the file is edited, lines added or removed - the control logic doesn't break so easily. - The only exception: a `switch` statement with all `case` statements being a single short statement is allowed to use the short brace-less form. + - These two rules really mean that indent is governed by braces * Add an empty last line in all source files (GCC and GIT can complain otherwise) * Use doxy-comments for functions in the header file, format as `/** Description */` * Use spaces after the comment markers: `// Comment` instead of `//Comment` |