Commit 5603d4e
build(gate): exclude single-character lines from the SLOC metric
The per-file SLOC gate (scripts/check-file-size.sh) counted lines that
reduce to a single character — a lone `{`, `}`, `(`, `)`, or `;`. Those
carry no logic; their count is an artifact of brace style, not of how much
a file actually does. Exclude them so the ceiling measures substance.
The change is monotonic (it only removes lines from the count), so no file
in src/ can newly breach the gate; the full scan still PASSes with the
largest file at 333 SLOC. As a concrete effect, the three MHD-adapter
translation units (webserver_request/callbacks/callbacks_lifecycle.cpp)
now total 470 SLOC rather than 542 — below the 500 ceiling — so the gate no
longer forces the adapter layer to be split across three files.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015tAodxYJMEY4VxCX4dk62e1 parent aa5d738 commit 5603d4e
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
| |||
0 commit comments