-
Notifications
You must be signed in to change notification settings - Fork 0
Formatting & Readability
NautRobot edited this page Nov 18, 2025
·
1 revision
These rules ensure visual consistency and code clarity across all files.
Braces ({, }) follow the K & R style (Egyptian Brackets):
- The opening brace is on the same line as the construct it belongs to, preceded by a single space.
- The closing brace is on its own line, except when followed by
else,catch, or a semicolon.
Example:
public void periodic() {
if (isAtTarget()) {
changeState(HallwayState.STOP);
} else {
// Continue movement
}
}