---
id: 7e29d970-a9e1-4879-8b42-f944f0596f1a
title: 'Language bar: obey gitignore, skip binaries'
state: closed
labels:
- area:render
assignees: []
milestone: m6-polish
created: 2026-09-10T07:14:16.377826649Z
updated: 2026-09-10T07:23:43.804633540Z
---
Context: Owner QA — language bar on code page counts binaries (inflating "other"). Cleanest: obey .gitignore + skip binary blobs.
Tasks:
1. 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).
2. "other" bucket: keep, but only for real text files with unmapped extensions. Binaries never appear anywhere in the math.
3. 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`.
