Skip to content
NautRobot edited this page Nov 18, 2025 · 5 revisions

🍧 FRC 6517 & 6774 Java Style Guide

This style guide defines the mandatory coding standards for all Java projects developed by FRC Teams 6517 So-Kno Robo and 6774 Oh-Kno Robo.

🍧 Core Principles

The primary goals of this guide are consistency, readability, and maintainability of the robot code base. Our standard is heavily modeled after the official Google Java Style Guide, adapted with specific rules for FRC development.

If a style choice is not explicitly defined in this Wiki, you must default to the rules in the official Google Java Style Guide.

🍧 Mandatory Tools & Settings

Setting Value
Indentation 4 Spaces
Tab Character Forbidden (Use Spaces only)
Maximum Line Length 100 Characters
File Encoding UTF-8
Java Version 17+ (Required by WPIlib)

🗺️ Quick Navigation

Topic Key Focus Link (Page Name)
Naming Conventions Variables, Fields, Methods, and the k Prefix [Naming-Conventions]
File Structure & Imports Licensing, Import Grouping, and Wildcards [File-Structure-Imports]
Formatting & Readability Braces, Whitespace, and Vertical Alignment [Formatting-Readability]
FRC & Architectural Practices Subsystem/State interaction, periodic() rules, and var usage [FRC-Architectural-Practices]
Constants Structure Mandatory Nested Classes and Field Modifiers [Constants-Structure]

Clone this wiki locally