Formatting
Opening Curly Bracket
All opening curly brackets ({) should be on the same with the previous syntax.
Examples
if (IsHit) {
// Do something
}
public class RaceCar {
// Do something
}
switch (MessageType) {
case MessageType.Local:
// Do something
break;
}
If Statement
There should be a single space after the if keywords.
Example
if (IsHit) {
// Do something
}
If-Else Statement
The FormattingOpening Curly Bracket rule should be followed on else statement.
Example
if (maxPower >= 10) {
// Do something
}
else {
// Do something
}