Releases: errata-ai/vale
Releases · errata-ai/vale
v3.3.1
v3.3.0
This release adds support for including the expected form in the message
field of capitalization
-based rules:
message: "Found: '%s'; expected: '%s'."
As with substitution
, the second %s
is optional.
Changelog
v3.2.2
Changelog
- 7d65b44 fix: use
utf8.RuneCountInString
for offsets (#785 (comment)) - b889aad fix: ensure
getNativeConfig
is consistent (#780)
v3.2.1
v3.2.0
Script-based actions
This release introduces the ability to write custom, script-based actions, allowing you to create dynamic solutions to your rules using the Tengo scripting language:
text := import("text")
// `match` is provided by Vale and represents the rule's matched text.
made := text.re_replace(`([A-Z]\w+)([A-Z]\w+)`, match, `$1-$2`)
made = text.replace(made, "-", "_", 1)
made = text.to_lower(made)
suggestions := [made]
prefix
for capitalization
rules
The capitalization
extension point now supports a prefix
key, allowing you to specify a constant prefix to ignore when checking the case of a scope:
extends: capitalization
message: "'%s' should be sentence-cased"
level: warning
scope: heading
match: $sentence
# sentence-cased, but allows for a common prefix:
#
# E.g.,
#
# a. This is my heading
prefix: '^[a-z]\.\s'
Changelog
- 1bc7781 feat: support script-based actions (#621)
- c9d2415 feat: allow
script
-based rules to use local files - e2ac1dc feat: support
prefix
key incapitalization
- 6ef0894 feat: proto support (#777)
- 3a812b3 feat: add
--no-global
- 84b539e refactor: better install details
- 07828da refactor: add CLI help text for host commands
- 3ddc54a fix: remove duplicate $home prefix
v3.1.0
Vale now has support for a VALE_STYLES_PATH
environment variable to set the default StylesPath
. You can also use the new vale ls-vars
command to inspect the supported environment variables from the command line.