Releases: errata-ai/vale
v3.9.0
This release introduces two new use cases for comment-based configuration.
1. Switching styles associated with a block
Individual styles can now be turned on or off:
<!-- vale StyleName1 = YES -->
<!-- vale StyleName2 = NO -->
Styles can now be set (enabling them and switching off any other styles):
<!-- vale style = StyleName1 -->
<!-- vale styles = StyleName1, StyleName2 -->
2. Ignoring individual matches
You can now choose to ignore individual matches instead of the entire rule or style:
<!-- vale style.Rule["Matched Text"] = NO -->
<!-- vale style.Rule["Match 1", "Match 2"] = NO -->
New sponsor
Finally, a thank you to Vale's newest sponsor: Spectro Cloud. Support like this makes a huge difference in my ability to continue to support and develop Vale.
If you (or your company) would like to help, please consider contributing through GitHub Sponsors or Open Collective.
Changelog
v3.8.0
v3.7.1
v3.7.0
Capture group support
This release introduces support for referencing capture groups in substitution
-based rules:
extends: substitution
message: "Use '%s' instead of '%s'."
ignorecase: true
swap:
"within the (.*)?directory": in the $1 directory
The $1
will be replaced by the contents captured within (.*)
in the regular expression. You can reference multiple capture groups by incrementing the index (such as $2
for a second one, etc.).
Action results now populate the message
key
The results of your custom actions will now be inserted into the relevant rule's message
key, allowing you to create dynamic, script-based suggestions using the CLI.
Changelog
v3.6.1
v3.6.0
v3.5.0
This release includes improved, tree-sitter powered support for linting comments in Go, Rust, Python, Ruby, C/C++, JavaScript, TypeScript, YAML, and CSS files.
Changelog
v3.4.2
v3.4.1
v3.4.0
This release adds support for including the observed count of occurrence
-based rules:
message: "Topic titles should use fewer than 70 characters (found: %s)."
The use of %s
is optional.