Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/CODE_QUALITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ CPPCHECK_JOBS=8 make cppcheck # Optional: control cppcheck parallelism

**Features**:
- 8-space tabs (kernel standard)
- 80-column line limit
- 100-column line limit (relaxed kernel baseline used by this project)
- Linux brace style
- Consistent spacing and alignment

Expand All @@ -39,7 +39,7 @@ CPPCHECK_JOBS=8 make cppcheck # Optional: control cppcheck parallelism

**Checks**:
- Indentation and spacing rules
- Line length limits (80 columns preferred)
- Line length limits (warns above 80 columns; project uses a 100-column limit)
- Function declaration style
- Comment formatting (/* */ style)
- Macro usage patterns
Expand Down Expand Up @@ -97,7 +97,7 @@ git commit --no-verify -m "message"

**Follow Linux Kernel Coding Style:**
- Use tabs (8 spaces), not spaces for indentation
- 80 column limit for code
- 100 column limit for code (project baseline; checkpatch warns above 80)
- Opening brace on same line (except functions)
- Space after keywords: `if (`, `while (`, `for (`
- No space after function names: `function(arg)`
Expand Down
Loading