For the complete documentation index, see llms.txt. This page is also available as Markdown.

View

Learn about how to lint only part of a structured file.

StylesPath = styles

[*.json]
BasedOnStyles = Vale

View = MyView

View names a View to apply to the matched files. A View is a set of steps that pull named scopes out of a structured file—the descriptions in an OpenAPI spec, the docstrings in a source file—so that Vale lints those and ignores the rest.

The named View is loaded from <StylesPath>/config/views/<name>.yml, and Vale reports an error at startup if it isn't there.

View is set per section, so different file types can be filtered differently.

See Views for how to write one.

Related: Transform Scopes

Last updated