- commit
- 943b6ef938e58f12f04a12ca15a9114ca19a424b
- parent
- fba67d140fb58e82e4f9f492e4d049b80955d81b
- author
- Dami <dami.etoile@gmail.com>
| M | CLAUDE.md | 2 | +- |
| M | scripts/ | 17 | +++++++++++++++++ |
@@ -23,5 +23,5 @@ Noise that stays becomes invisible, and then real problems hide in it.
2323 reader would look in, link to it from elsewhere, and restructure when2424 appending would make a wall of text. Shipped roadmap items move to its2525 Shipped list as one line.26-- No scratch files, debug tests or temporary samples in commits.26+- No scratch files, debug tests, temporary samples or build outputs (`*.test`, binaries) in commits; `make lint` refuses compiled files and anything over 2 MB.2727 - Visual changes are reviewed in the golden gallery (`make screens`).@@ -28,6 +28,23 @@ for mod in . oracle e2e; do
2828 fi2929 done3030 31+# Tracked files stay small and textual: no compiled binaries, nothing over32+# 2 MB (docs/media GIFs have their own 1 MB limit in doccheck).33+big=$(git ls-files | while IFS= read -r f; do34+ if [ -f "$f" ] && [ "$(wc -c <"$f")" -gt 2097152 ]; then echo "$f"; fi35+done)36+if [ -n "$big" ]; then37+ echo "tracked files over 2 MB:"38+ echo "$big"39+ fail=140+fi41+bins=$(git ls-files | grep -E '\.(test|exe|o|a|so|dylib)$|^bin/' || true)42+if [ -n "$bins" ]; then43+ echo "compiled files tracked by git:"44+ echo "$bins"45+ fail=146+fi47+3148 dirs=$(find cmd internal demos e2e oracle -name '*.go' -exec dirname {} \; | sort -u)3249 over=$(go run $GOCOGNIT -over $MAX_COGNIT $dirs || true)3350 if [ -n "$over" ]; then