Files
holocron/plugins/lint/docs/research/docs/vale/cli-reference.md
Defame1297 e9234f6d8a docs(lint): correct the Vale exit-code and glob-scoping claims
cli-reference.md said vale exits non-zero for any alert at or above
MinAlertLevel. The exit code keys on error-level alerts alone;
MinAlertLevel filters display only. LESSONS.md records this exact
misconception as costing two review rounds, and this research doc is
the cited provenance source for the skills that state it correctly.

CONTEXT.md claimed a SKILL.md outside plugins/ matches no glob section.
[**/SKILL.md] matches any path ending in SKILL.md — the sentence is a
stale leftover from the path-scoped globs at cbc33d9, and contradicted
its own paragraph two sentences earlier. The NOT-RUN 0-files guard it
justifies is correct and is unchanged; only the rationale was wrong.
CONTEXT.md also cited the local files: regex as the scoping mechanism,
where the shipped manifest deliberately stays layout-agnostic.

ADR-0014 records the entry[0]-only prefixing constraint as the reason
the self-locating design is required, and that no entry may grow a
repo-internal path argument.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MCQ648fLSFXPHGZdQ8gn58
2026-08-09 13:06:52 +00:00

1.6 KiB

topic, source_keys
topic source_keys
cli-reference
context7-websites-vale-sh

Core Invocation

$ vale README.md

Lints the given file(s)/glob against the styles configured in .vale.ini.

Key Flags and Subcommands

Command/Flag Purpose
vale sync Downloads and installs packages/styles declared in .vale.ini. Run after install and whenever Packages changes.
vale ls-config Prints the currently active, fully-resolved configuration as JSON. Useful for debugging what settings actually apply to a file.
--output=<style> Sets the output format/template: line, JSON, CLI (default), or a custom template.
--no-exit Suppresses the non-zero exit code Vale normally returns when error-level alerts are found — useful in CI pipelines that shouldn't hard-fail on lint output.
--ignore-syntax Treats input as plain, unformatted text, skipping syntax-aware parsing (Markdown/HTML/etc).
--minAlertLevel=<level> Overrides MinAlertLevel from the config for this run (suggestion, warning, error). Filters what is displayed; does not affect the exit code.
--version Prints the Vale binary version.

Exit Codes

By default, vale exits non-zero only when it finds at least one error-level alert — this is what makes it usable as a CI gate. warning and suggestion alerts are printed but still exit 0, so a rule that must gate CI or a commit hook has to be level: error. MinAlertLevel and --minAlertLevel filter which alerts are displayed and never affect the exit code. Pass --no-exit to always exit 0 regardless of findings.