Basics
Without a consistent codestyle, say goodbye to quick reviews.
Integration of serpent-style
All of our D projects incorporate a standard module to assist in keeping code style consistent.
Whenever you make any changes in your codebase, make sure you run the following command before pushing your commits for review:
./serpent-style/update-format.sh
Brace Style
Simply, we use the Allman style as it is easy to follow, and easy to integrate in tooling.
Exception: Even single line conditionals and loops should be surrounded in braces.
Indentation
We use 4 spaces, not tabs.