1.3 KiB
1.3 KiB
Coding conventions
- Use tabs to indent, spaces to align.
- Specifically, spaces should not appear at the beginning of a line, and tabs should not appear except at the beginning of a line.
- The sole exception is in a multiline
if
statement; the initialif
should have four spaces before it to align it with anelseif
on the next line. - Comments with lines at the end of code must be one line long. Multi-line comments must appeare in their own block.
- Use
snake_case
for variables,camelCase
for functions.
Contributor's License Agreement
By contributing source code or other assets (e.g. music, artwork, graphics) to Cambridge, through a pull request or otherwise, you provide me with a non-exclusive, royalty-free, worldwide, perpetual license to use, copy, modify, distribute, sublicense, publicly perform, and create derivative works of the assets for any purpose.
You also waive all moral rights to your contributions insofar as they are used in the Cambridge repository or in any code or works deriving therefrom.
(Regarding the above clause, I will still make my best effort to provide sufficient attribution to all contributions. At the very least you'll get documentation of your contributions under SOURCES, and probably a special place in the credit roll as well.)