Skip to content

Releases: errata-ai/vale

v3.9.1

18 Nov 08:48
Compare
Choose a tag to compare

Changelog

  • 87c916b fix: support overriding MinAlertLevel
  • 4eca3a6 fix: improve Vale.Repetition (#865)
  • 8765609 fix: check if we need to load a rule before trying

v3.9.0

07 Nov 22:54
Compare
Choose a tag to compare

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

Spectro Cloud logo

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

  • 57180ee feat: add comment syntax for ignoring individual matches (#844)
  • e6eec99 feat: add comment syntax for switching styles (#772)
  • 0ded95c test: add MDX case
  • d515f69 chore: bump Go version

v3.8.0

21 Oct 23:22
Compare
Choose a tag to compare

Changelog

  • b6df01b feat: Allow users to override comment delimiters (#900)
  • b05b065 refactor: improve action-related error messages
  • f545fe2 fix: Add support for multi platform image builds in docker (#897)

v3.7.1

25 Aug 08:45
Compare
Choose a tag to compare

Changelog

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)