This release introduces the ability to filter Vale's output by rule metadata. A filter is an expression targeting one of the following keys defined in the rule definition: .Name, .Level, .Scope, .Message, .Description, .Extends, or .Link.
You can pass filters through the CLI one of two ways:
$ vale --filter='"heading" in .Scope' test.md$ vale --filter='some/path/filter.expr' test.mdExamples
# Show rules with severity of "error" or "suggestion" that aren't named "demo.Cap"
.Level in ["error", "suggestion"] and .Name != "demo.Cap"# Only show rules extending "existence"
.Extends=="existence"# Only show rules targeting the "heading" scope
"heading" in .Scope