Not all existing code follows these rules, but all new code is expected to.
Thank you for your contribution!

Line Length Limit

Each line of text in your code should be at most 100 characters long.

Brace style

Braces are required around the statements for a conditional. Except, if the entire conditional (the condition and the body) fit on one line, you may (but are not obligated to) put it all on one line. That is, this is legal:

if (condition) {
body();
}

and this is also legal:

if (condition) body();

But this is illegal:

if (condition)
body();

Spaces for Indentation

Never use tabs.

Use 4 space indents for blocks.

Use 8 space indents for line wraps, including function calls and assignments.