#37 Language bar: obey gitignore, skip binaries
Context: Owner QA — language bar on code page counts binaries (inflating "other"). Cleanest: obey .gitignore + skip binary blobs. Tasks:
- Language walk: respect repo .gitignore (git check-ignore or parse top-level .gitignore; prefer
git ls-files-style listing via gitx so ignored/untracked junk never counts) + skip NUL-containing blobs (binary sniff: first 8KB contains \0 → excluded, still downloadable). - "other" bucket: keep, but only for real text files with unmapped extensions. Binaries never appear anywhere in the math.
- Tests: fixture with gitignored dir + binary file + code files asserts ignored/binary bytes excluded and percentages sum to counted text only. Success rubric:
-
Demo code page: no binary bytes in language math; gitignored paths excluded.
Swarm: Owl. Branch
m6/lang-ignore.
Uunknown ·
Merged PR 27165452 (m6/lang-ignore): gitignore + NUL-sniff + .forge exclusion from mix. Supervisor verified demo bar now Rust 90.6/Markdown 5.2/Other 2.4/CSS 1.8 (was Other 56.6 from patch.diffs). CI pass. Rubric verified.