utils/file_length
Krzysztof kuhy Rudnicki ca81e091a1 Skip git-ignored files in the length gate, and vendored skill bundles
Three exemptions the first cut missed, all of them files no commit could
ever fix:

- Git-ignored files (todo's exported BACKLOG.md, logs, scratch dumps).
  These are rewritten wholesale by whatever produces them, so splitting one
  is meaningless, and pre-commit never sees them anyway. Applied to
  explicitly-named paths as well as --all, so the two modes cannot disagree
  about the same file.
- Vendored agent-skill bundles (.agents/skills, .claude/skills). A SKILL.md
  is a fixed-name file with frontmatter; splitting one breaks the format.
  Matched by directory name wherever it appears, since these get dropped
  into any repo.
- .utils, where CI checks out this repo. Without it a repo's lint job fails
  on utils' own long files, which that repo cannot fix.

Baseline accordingly drops from 657 to 597. Re-verified all eight fixtures:
over-cap fails, under-cap passes, generated/vendored/wordlist/git-ignored
exempt, prose still capped, and the gate still passes on its own source.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C7yZz45ezmzCB89Cv5gAtZ
2026-08-14 15:58:46 +02:00
..
__init__.py Add shared 250-line file-length gate 2026-08-14 14:24:57 +02:00
baseline-2026-08-14.json Skip git-ignored files in the length gate, and vendored skill bundles 2026-08-14 15:58:46 +02:00
check.py Skip git-ignored files in the length gate, and vendored skill bundles 2026-08-14 15:58:46 +02:00
config.py Skip git-ignored files in the length gate, and vendored skill bundles 2026-08-14 15:58:46 +02:00
SURVEY-2026-08-14.txt Add file-length survey baseline (2026-08-14) 2026-08-14 14:35:42 +02:00