Files
archie/.vale.ini
T
sam 6a25153659 docs(vale): reject em dashes, and remove the ones on the tree (#2149)
AGENTS.md forbids em dashes in prose, comments and user-facing strings, and
nothing checked it: Google.EmDash only flags a dash with a space on both sides,
so a bare U+2014 passed.

Archie.EmDash rejects U+2014 for Markdown, templates and Go, with a message
naming the alternatives. The 40 occurrences it finds are rewritten as a comma,
a colon, brackets or a second sentence, and scratch trees are out of scope so a
run over the repository reports on what the repository holds.
2026-11-27 19:33:06 +11:00

109 lines
3.1 KiB
INI

StylesPath = .vale/styles
MinAlertLevel = warning
Vocab = Archie
# Run `vale sync` to install external packages and the Go comment grammar.
Packages = Google, Microsoft, Voices, TechTerms, Comments, Prompts
Grammars = go
[formats]
tmpl = md
[*.{md,tmpl}]
# Ignore Go/workflow template expressions such as {{ steps.plan.summary }}.
TokenIgnores = (\{\{[^}]*\}\})
BasedOnStyles = Vale, Voices, Direct, Google, Archie
# Australian English and Archie's technical prose conventions:
Google.Spelling = NO
Google.Quotes = NO
Google.DateFormat = NO
Google.OxfordComma = NO
Google.EmDash = NO
Google.Contractions = NO
Google.Parens = NO
Google.Semicolons = NO
Google.Colons = NO
Google.Units = NO
Google.Acronyms = NO
Google.WordList = NO
Google.WordListCase = NO
# Keep style nudges advisory (visible with --minAlertLevel=suggestion).
Google.Headings = suggestion
Google.Latin = suggestion
Google.Exclamation = warning
Google.FirstPerson = suggestion
Google.We = suggestion
Google.Will = suggestion
# Selective Microsoft rules (UI verbs, inclusive terminology, hyphens) without
# pulling in Microsoft-specific product jargon (e.g. agent -> personal digital assistant).
Microsoft.UIVerbs = warning
Microsoft.BiasFree = warning
Microsoft.Auto = warning
Microsoft.Suspended = warning
Microsoft.Accessibility = suggestion
Microsoft.Uppercase = suggestion
# "Term: explanation" is idiomatic throughout Archie's docs and comments.
Voices.ColonReveal = NO
# Replaced by Archie.Readability and Archie.SentenceLength, calibrated for technical docs.
Direct.Ease = NO
Direct.Length = NO
Direct.Hedging = warning
Direct.Preamble = warning
# Agent instruction and skill files get additional prompt-quality checks.
[{AGENTS,CLAUDE,SKILL}.md]
BasedOnStyles = Vale, Voices, Direct, Google, Archie, Prompts
# A rule file states each rule once, and many of those rules are absolutes.
# The prompt heuristic against repeated absolutes does not apply here.
Prompts.Absolutes = NO
# Model prompts are plain text (no Markdown bold) and reference tool names inline.
[internal/prompts/*.{md,tmpl}]
Vale.Spelling = suggestion
Archie.UILabelFormat = NO
# Go source comments: doc conventions, spelling, clarity, and no migration narration.
[*.go]
BasedOnStyles = Vale, Voices, Comments, GoDoc, Archie
# Go comments often mention camelCase/snake_case identifiers without backticks,
# so keep spelling advisory here.
Vale.Spelling = suggestion
# Upstream GoDoc.Sentence regex backtracks heavily on long comment blocks.
GoDoc.Sentence = NO
Voices.ColonReveal = NO
Archie.Readability = NO
Archie.SentenceLength = NO
Archie.UIElementType = NO
Archie.UILabelFormat = NO
# Never lint generated Go files (protobuf, sqlc).
[*.{pb,sql}.go]
BasedOnStyles =
# Scratch checkouts, installed skills and generated output are not Archie's
# prose: a run over the repository must report on what the repository holds.
[tmp/**]
BasedOnStyles =
[.local/**]
BasedOnStyles =
[.agents/**]
BasedOnStyles =
[archipelago/**]
BasedOnStyles =
[ui/node_modules/**]
BasedOnStyles =
[ui/dist/**]
BasedOnStyles =
[.agents-run/**]
BasedOnStyles =
[.impeccable/**]
BasedOnStyles =