|
| 1 | +# ============================================================= |
| 2 | +# .vale.ini — ThoughtSpot Developer Docs |
| 3 | +# ============================================================= |
| 4 | +# SETUP (one-time, after cloning): |
| 5 | +# vale sync |
| 6 | +# This downloads Google and Microsoft into .vale/styles/ (gitignored). |
| 7 | +# The ts-docs custom style and ts-vocab vocabulary are committed to the repo. |
| 8 | +# |
| 9 | +# USAGE: |
| 10 | +# vale path/to/file.adoc |
| 11 | +# vale modules/ROOT/pages/ |
| 12 | +# |
| 13 | +# INTELLIJ IDEA: |
| 14 | +# Settings > Tools > Vale > Config: point to this file. |
| 15 | +# The AsciiDoc plugin picks up Vale alerts inline. |
| 16 | +# ============================================================= |
| 17 | + |
| 18 | +StylesPath = .vale/styles |
| 19 | + |
| 20 | +# suggestion = show everything (noisy, good for authoring) |
| 21 | +# warning = hide suggestions, show warnings + errors (recommended for review) |
| 22 | +# error = show only blocking errors (good for CI gates) |
| 23 | +MinAlertLevel = suggestion |
| 24 | + |
| 25 | +# ---- Packages (downloaded by `vale sync`, then gitignored) -- |
| 26 | +Packages = Google, Microsoft |
| 27 | + |
| 28 | +# ---- Shared vocabulary -------------------------------------- |
| 29 | +# Files: .vale/styles/config/vocabularies/ts-vocab/accept.txt |
| 30 | +# reject.txt |
| 31 | +Vocab = ts-vocab |
| 32 | + |
| 33 | +# ============================================================= |
| 34 | +# Catch-all: disable Vale on every file type not listed below. |
| 35 | +# This prevents IDE plugins from running checks on .yml, .json, |
| 36 | +# .js, and other non-prose files even when .valeignore is ignored. |
| 37 | +# ============================================================= |
| 38 | +[*] |
| 39 | +BasedOnStyles = |
| 40 | + |
| 41 | +# ============================================================= |
| 42 | +# AsciiDoc files (authored content only) |
| 43 | +# Generated pages and node_modules are excluded via .valeignore |
| 44 | +# ============================================================= |
| 45 | +[*.{adoc,asciidoc}] |
| 46 | +BasedOnStyles = Google, Microsoft, ts-docs |
| 47 | + |
| 48 | +# ---- Comment exclusions ------------------------------------- |
| 49 | +# AsciiDoc single-line comments (// text) are ignored. |
| 50 | +# AsciiDoc block comments (////...////) are ignored. |
| 51 | +# EXCEPTION: comments inside ---- code blocks are part of code |
| 52 | +# content and are preserved by Asciidoctor — they are not |
| 53 | +# matched by these patterns and continue to be checked. |
| 54 | +# Inline role spans are also stripped before style rules run so that |
| 55 | +# capitalization checks do not fire on fixed labels: |
| 56 | +# [.version-badge.*]#New# [.version-badge.*]#Breaking# |
| 57 | +# [tag *]#NEW FEATURE# [tag *]#DEPRECATED# |
| 58 | +# [earlyAccess *]#Early Access# [beta *]^Beta^ |
| 59 | +# [NOTE] [WARNING] [IMPORTANT] [TIP] [CAUTION] |
| 60 | +TokenIgnores = (\/\/.+), (\[(?:\.version-badge[^\]]*|tag [^\]]*|earlyAccess [^\]]*|beta [^\]]*)\][#^][^#^]+[#^]), (\[(NOTE|TIP|WARNING|IMPORTANT|CAUTION|DANGER)\]) |
| 61 | +BlockIgnores = (?s)(\/{4}[\s\S]*?\/{4}) |
| 62 | + |
| 63 | +# ---- Rule overrides ----------------------------------------- |
| 64 | +# Tuned based on audit of alerts against ThoughtSpot developer docs. |
| 65 | + |
| 66 | +# Vocabulary: managed by ts-vocab; disable built-in Microsoft vocab. |
| 67 | +Microsoft.Vocab = NO |
| 68 | + |
| 69 | +# Headings: sentence case enforced by ts-docs.Headings. |
| 70 | +Google.Headings = NO |
| 71 | +Microsoft.Headings = NO |
| 72 | +Microsoft.HeadingPunctuation = NO |
| 73 | +Microsoft.HeadingAcronyms = NO |
| 74 | + |
| 75 | +# Passive voice: sometimes necessary in reference docs. |
| 76 | +Microsoft.Passive = NO |
| 77 | +Google.Passive = suggestion |
| 78 | + |
| 79 | +# Contractions: avoid in formal developer docs. |
| 80 | +Microsoft.Contractions = NO |
| 81 | + |
| 82 | +# List-item punctuation: technical lists often don't end with periods. |
| 83 | +Microsoft.Periods = NO |
| 84 | + |
| 85 | +# Oxford comma: required. |
| 86 | +Google.OxfordComma = error |
| 87 | + |
| 88 | +# URLs: Antora/AsciiDoc handles link formatting; these rules add noise. |
| 89 | +Microsoft.GeneralURL = NO |
| 90 | +Microsoft.URLFormat = NO |
| 91 | + |
| 92 | +# Sentence length: covered by ts-docs.SentenceLength. |
| 93 | +Microsoft.SentenceLength = NO |
| 94 | + |
| 95 | +# Parentheses and optional plurals: too noisy for technical API docs. |
| 96 | +Google.Parens = NO |
| 97 | +Google.OptionalPlurals = NO |
| 98 | + |
| 99 | +# Google WordList: contains Google-internal product name substitutions |
| 100 | +# (for example, Cloud → "Google Cloud Platform") that conflict with |
| 101 | +# ThoughtSpot product names. Applicable entries are maintained in |
| 102 | +# ts-docs/WordList.yml instead. |
| 103 | +Google.WordList = NO |
| 104 | + |
| 105 | +# Date format: downgraded from error — docs use various date formats |
| 106 | +# depending on context (API responses, UI labels, prose). |
| 107 | +Microsoft.DateFormat = suggestion |
| 108 | +Google.DateFormat = suggestion |
| 109 | + |
| 110 | +# Colon capitalisation: flags proper nouns and product names after colons. |
| 111 | +# Cannot be tuned without rewriting the rule. |
| 112 | +Google.Colons = NO |
| 113 | +Microsoft.HeadingColons = NO |
| 114 | + |
| 115 | +# Semicolons: "Use semicolons judiciously" is not actionable feedback. |
| 116 | +Google.Semicolons = NO |
| 117 | +Microsoft.Semicolon = NO |
| 118 | + |
| 119 | +# Dotted abbreviations: error-level rule flagging U.S.A.-style patterns. |
| 120 | +# Writers are aware of this convention; same check was intentionally |
| 121 | +# excluded from ts-docs styles. |
| 122 | +Google.Periods = NO |
| 123 | + |
| 124 | +# Avoided terms: relevant token (and so on) absorbed into ts-docs.DoNotUseTerms. |
| 125 | +# Remaining tokens are Microsoft-specific or legitimate in ThoughtSpot docs. |
| 126 | +Microsoft.Avoid = NO |
| 127 | + |
| 128 | +# Wordy phrases: applicable substitutions absorbed into ts-docs.WordList. |
| 129 | +# Rule suppressed to avoid duplicate alerts. |
| 130 | +Microsoft.Wordiness = NO |
| 131 | + |
| 132 | +# ============================================================= |
| 133 | +# Markdown files |
| 134 | +# ============================================================= |
| 135 | +[*.{md,markdown}] |
| 136 | +BasedOnStyles = Google, Microsoft, ts-docs |
| 137 | + |
0 commit comments