content-style gate does not check .astro pages, which is where today's violations were #141
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-web#141
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Follow-up to #128, whose gate landed in #137.
The gate reads
src/content/**/*.mdandsrc/i18n/*.ts. It does not read.astrofiles — and.astropages are where the violations that motivated the glossary work today actually were:src/pages/pricing.astrosaid "dedikerad runner" while every Swedish surface the gate does readsays körare;
wiki, mmanddvs, both spelled-out-shorthand violations.All three were found by reading, then fixed in #136, and the
runner → körarerow was added todocs/content-style.md. But the gate cannot enforce that row where it was broken, so the same fault canreturn to the same file tomorrow. A check that reports clean over the surface where the bug was not
gives false assurance, which is worse than no check for the people who trust it.
Why it was scoped this way, and why extending it is not a one-line change
.astrofiles are code and copy in one file. Running the text rules across them raw would flag classnames, import paths, identifiers and attribute values — the author scoped the globs deliberately rather
than ship a noisy gate. Doing it properly means checking only the parts that are prose: template text
nodes and the string literals that reach the page, not the whole file.
So this needs a small amount of parsing, and it needs the same escape hatch the gate already has
(
lang-check-ignore-next-line <rule-id>) to work inside.astro.Done when
pnpm lang-checkwould have caught "dedikerad runner",wiki, mmanddvsinsrc/pages/pricing.astro, with no false positives on the existing pages, and the lefthook glob and CIsweep both include
.astro.