Files
crossbar/docs/plans/v0/files/scripts/check-lines.sh
T
kyleandClaude Fable 5.1 89e47d83f8 v0 plan: AGENTS.md, gate, five task files with given tests, run-plan driver
Tests were run against a private reference implementation: gate ok after every
task in order, smoke ok (stream spread ~1000 ms). The reference is not in the
repository.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-25 01:51:53 -07:00

15 lines
434 B
Bash

#!/bin/sh
# No Go source file over 400 lines. Reports every offender, then fails.
set -u
limit=400
bad=0
for f in $(find . -name '*.go' -not -path './.git/*' -not -path './vendor/*'); do
n=$(wc -l < "$f") || { echo "check-lines: cannot read $f" >&2; exit 2; }
if [ "$n" -gt "$limit" ]; then
echo "check-lines: $f has $n lines (limit $limit)"
bad=1
fi
done
[ "$bad" -eq 0 ] || exit 1
echo "check-lines: ok"