github errata-ai/vale v2.4.0

latest releases: v3.9.0, v3.8.0, v3.7.1...
4 years ago

This release introduces support for regex in substitution's expected value, which allows for more complex comparisons that involve multiple options:

extends: substitution
message: "Use 'Caution:', 'Warning:', or 'Important:'."
level: error
nonword: true
scope: raw
swap:
  # The right-hand side could only be regular strings previously:
  'CAUTION: \*\*\w+:\*\*': 'CAUTION: \*\*(?:Caution|Warning|Important):\*\*'

See #233.

Changelog

4b5a384 feat: support regex in substitution's expected value
9d551c8 refactor: update rules and increase timeout
7123297 perf: use a channel for rule results
50fdb15 refactor: make timeout configurable
0fd0e35 refactor: exlude code from summary
d34ebbf fix: use Block.Text instead of Block.Raw
dbe2e18 fix: unicode-related off-by-one
18ffd9a refactor: set a hard timeout for external calls
d921611 refactor: set matchless alerts to 1:1

Don't miss a new vale release

NewReleases is sending notifications on new releases.