Skip to content

Releases: errata-ai/vale

v3.7.0

21 Jul 22:46
Compare
Choose a tag to compare

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

  • fea611f refactor: display action results in message (#851)
  • 7f2c55e feat: add capture group support to substitution (#612)
  • 906c544 refactor: support capture groups in substitution
  • 42a341e fix: handle conatenating nested lists
  • 157b755 chore: fix version in .goreleaser.yml (#868)

v3.6.1

08 Jul 23:22
3c73133
Compare
Choose a tag to compare

Changelog

  • 3c73133 golangci lint (#822)
  • 2bc26fc fix: sort commands before printing
  • f7cbb57 refactor: error on misplaced core-level settings
  • a1543c4 Fix broken link in README.md (#853)
  • 78cb06d chore: cinst -> choco install
  • 08a5471 fix: check for token.Skip before re-order

v3.6.0

18 Jun 23:35
Compare
Choose a tag to compare

Changelog

  • ea54364 feat: support exceptions in Repetition (#826)

v3.5.0

08 Jun 20:18
Compare
Choose a tag to compare

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

  • a484bbe feat: tree-sitter powered fragments
  • 31b5975 refactor: move comment processing to tree-sitter
  • 26ece6e existence rule skips match in RST (#831)

v3.4.2

01 May 03:09
Compare
Choose a tag to compare

Changelog

v3.4.1

08 Apr 11:05
Compare
Choose a tag to compare

Changelog

  • 48a1d9d fix: fallback to default config when syncing (#798)
  • b1de4bf fix: only match case for ignorecase: true (#802)

v3.4.0

08 Apr 04:41
Compare
Choose a tag to compare

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.

Changelog

  • 58ef6a7 chore: fix Appveyor
  • eba2813 feat: support displaying the count of occurrence
  • 24c6dbe fix: take first non-code match in occurance rules

v3.3.1

22 Mar 23:43
Compare
Choose a tag to compare

Changelog

v3.3.0

11 Mar 02:31
Compare
Choose a tag to compare

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

  • a9dc9e6 fix: ensure StylesPath is created with sync (#788)
  • e688310 feat: support showing expected case in message
  • d198f7d chore: update twine to v0.10.1 (#786)

v3.2.2

05 Mar 19:48
Compare
Choose a tag to compare

Changelog