Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,14 @@ jobs:
fail=0
for f in include/*.h src/* test/*; do
n=$(wc -l < "$f")
if [ "$n" -gt 500 ]; then echo "$f: $n lines, over the 500 hard limit"; fail=1; fi
limit=500
# The one exception, with a fixed ceiling rather than an open one:
# room for the next few fields, and no more. Recorded in CLAUDE.md
# beside the rule; the way out is to split it.
[ "$f" = src/VirtualSX1262.h ] && limit=550
if [ "$n" -gt "$limit" ]; then echo "$f: $n lines, over its $limit hard limit"; fail=1; fi
done
[ "$fail" = 0 ] && echo "every file inside 500 lines"
[ "$fail" = 0 ] && echo "every file inside its limit"
exit $fail
- name: no em-dashes
run: |
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Mechanical, because taste does not survive scale.

| Rule | Limit |
|---|---|
| File length | 300 lines soft, **500 hard** |
| File length | 300 lines soft, **500 hard**; `src/VirtualSX1262.h` alone may reach 550, until the recorded-only command set moves into its own type |
| Function length | 50 lines soft |
| Nesting depth | 4 |
| Dead code | none, git remembers |
Expand Down
Loading