Skip to content

Commit

Permalink
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -62,6 +62,29 @@ Try to avoid global variables, if possible declare them as `static` in the
module you're using them. Changes to original game functionality most often
should be configurable.

Other things:

- We use clang-format to automatically format the code
- We do not omit `{` and `}`
- We use K&R brace style
- We condense `if` expressions into one, so:
```
if (a && b) {
}
```
and not:
```
if (a) {
if (b) {
}
}
```
If the expressions are extraordinarily complex, we refactor these into
smaller conditions or functions.
## Code formatting
This project uses `clang-format` to take care of automatic code formatting. To

0 comments on commit 55aece2

Please sign in to comment.