Update CONTRIBUTING.md
This commit is contained in:
parent
a1ed774550
commit
6a35f0fd19
@ -68,13 +68,14 @@ Good style is a tool for communicating your intent with other developers of the
|
|||||||
Some recommendations:
|
Some recommendations:
|
||||||
|
|
||||||
* Above all, be consistent!
|
* Above all, be consistent!
|
||||||
* Spaces, not tabs.
|
* Spaces, not tabs. Indents should be 4 spaces.
|
||||||
* We prefer "Egyptian brackets" (in `if`, `for`, `while`, `switch`, etc.):
|
* We prefer "Egyptian brackets" (in `if`, `for`, `while`, `switch`, etc.):
|
||||||
* `if (...) {`
|
* `if (...) {`
|
||||||
* `} else if (...) {`
|
* `} else if (...) {`
|
||||||
* `} else {`
|
* `} else {`
|
||||||
* `}`
|
* `}`
|
||||||
* Constants in `UPPER_SNAKE_CASE`
|
* Note the spacing convention above for control flow constructs (a single space on the outside of each paren)
|
||||||
|
* Constants in `UPPER_SNAKE_CASE` a.k.a. `CONST_CASE`
|
||||||
* Class names in `PascalCase` a.k.a. `UpperCamelCase`
|
* Class names in `PascalCase` a.k.a. `UpperCamelCase`
|
||||||
* Variable names in `camelCase` a.k.a. `lowerCamelCase`
|
* Variable names in `camelCase` a.k.a. `lowerCamelCase`
|
||||||
* Do not use Hungarian notation
|
* Do not use Hungarian notation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user