mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 21:47:14 +01:00
Requirement 4 of "make it permanent": the pre-commit hook only ever sees the files in a commit, so it cannot catch a violation that arrives by a path the hook never ran on — a merge, a push from a machine without hooks installed, a rebase that resurrects a file. This runs `check_file_length.sh --all` over the whole tree on every push and PR to main. Deliberately no `paths:` filter, unlike the other ten workflows: the cap applies to every file in the repo, so scoping this job to a subdirectory is the one change that would reintroduce exactly what it exists to catch. Added last, because until the final doc split it would have failed on push. Verified against a clean checkout of HEAD in a throwaway worktree — the exact command the job runs exits 0 — and the commit gate re-tested in both directions after file_length's own internals were refactored: a staged 261-line file fails (exit 1, no commit object), a 200-line one commits. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CFSGeWxHPY5rHUGrPqhcmG |
||
|---|---|---|
| .. | ||
| crdt-sync-precommit.yml | ||
| crdt-sync-tests.yml | ||
| design-system-tests.yml | ||
| file-length.yml | ||
| gatelock-precommit.yml | ||
| gatelock-tests.yml | ||
| github-device-auth-tests.yml | ||
| palette-drift.yml | ||
| sync-settings-ui-tests.yml | ||
| ts-core-tests.yml | ||
| web-ui-tests.yml | ||