|
| 1 | +StylesPath = .vale/styles |
| 2 | +MinAlertLevel = warning |
| 3 | + |
| 4 | +Packages = Google, write-good |
| 5 | + |
| 6 | +Vocab = Smallstep |
| 7 | + |
| 8 | +SkippedScopes = script, style, pre, figure, code |
| 9 | +IgnoredScopes = code, tt, img, url, a |
| 10 | + |
| 11 | +[*.{md,mdx}] |
| 12 | +BasedOnStyles = Vale, Google, write-good, Smallstep |
| 13 | + |
| 14 | +# Disable Vale.Terms - conflicts with case-variant vocabulary entries |
| 15 | +Vale.Terms = NO |
| 16 | + |
| 17 | +# Disable Google.Quotes - technical docs often place punctuation outside quotes for clarity |
| 18 | +Google.Quotes = NO |
| 19 | + |
| 20 | +# Disable rules that are too strict for technical documentation |
| 21 | +write-good.Passive = NO |
| 22 | +Google.Will = NO |
| 23 | +Google.We = NO |
| 24 | + |
| 25 | +# Disable overly aggressive write-good rules |
| 26 | +# TooWordy flags common tech terms like "implement", "multiple", "additional", "obtain" |
| 27 | +write-good.TooWordy = NO |
| 28 | +# Weasel flags words like "usually", "various" which are often appropriate in docs |
| 29 | +write-good.Weasel = NO |
| 30 | + |
| 31 | +# Units rule requires spaces in durations like "168h" which doesn't match Go conventions |
| 32 | +Google.Units = NO |
| 33 | + |
| 34 | +# WordList substitutions like CLI→"command-line tool" and "application"→"app" don't fit tech docs |
| 35 | +Google.WordList = NO |
| 36 | + |
| 37 | +# FirstPerson rule doesn't fit docs with user-perspective examples ("I want to...", "My device...") |
| 38 | +Google.FirstPerson = NO |
| 39 | + |
| 40 | +# Exclamation points are sometimes appropriate for friendly/community content |
| 41 | +Google.Exclamation = NO |
| 42 | + |
| 43 | +# Slang like "TL;DR" is acceptable in developer-focused technical documentation |
| 44 | +Google.Slang = NO |
| 45 | + |
| 46 | +# "There is/There are" constructions are acceptable in technical documentation |
| 47 | +write-good.ThereIs = NO |
| 48 | + |
| 49 | +# DateFormat matches version numbers like "10.0.15063" incorrectly |
| 50 | +Google.DateFormat = NO |
| 51 | + |
| 52 | + |
| 53 | +TokenIgnores = (@smallstep/[a-zA-Z0-9-]+), \ |
| 54 | + (_[a-zA-Z0-9_]+_), \ |
| 55 | + ([a-zA-Z]+_[a-zA-Z_]+) |
| 56 | + |
| 57 | +BlockIgnores = (?s)<Alert.*?</Alert>, \ |
| 58 | + (?s)<CodeBlock.*?</CodeBlock>, \ |
| 59 | + (?s)<Code>.*?</Code>, \ |
| 60 | + (?s)^---\n.*?\n--- |
| 61 | + |
0 commit comments