Run Vale over every tracked Go, Markdown and template file and fix the remaining findings: long sentences, repetition, UI verbs, identifiers that should be backticked, and migration narration in comments. AGENTS.md and CLAUDE.md keep their absolute rules; the prompt heuristic against repeated absolutes is disabled for rule files.
90 lines
2.7 KiB
INI
90 lines
2.7 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 =
|