Vale Versions Save

:pencil: A markup-aware linter for prose built with speed and extensibility in mind.

v3.4.1

1 month ago

Changelog

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

v3.4.0

1 month ago

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

  • 58ef6a7b chore: fix Appveyor
  • eba2813a feat: support displaying the count of occurrence
  • 24c6dbef fix: take first non-code match in occurance rules

v3.3.1

1 month ago

Changelog

  • 7ec81b7e refactor: use pterm.Fuzzy instead of Gray (#796)
  • f001170b refactor: clean up sync progress bar
  • 02a44307 docs: fix typos (#794)

v3.3.0

2 months ago

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

2 months ago

Changelog

v3.2.1

2 months ago

Changelog

v3.2.0

2 months ago

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

  • 1bc77814 feat: support script-based actions (#621)
  • c9d24152 feat: allow script-based rules to use local files
  • e2ac1dc5 feat: support prefix key in capitalization
  • 6ef0894f feat: proto support (#777)
  • 3a812b37 feat: add --no-global
  • 84b539ec refactor: better install details
  • 07828da3 refactor: add CLI help text for host commands
  • 3ddc54ae fix: remove duplicate $home prefix

v3.1.0

2 months ago

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.

Changelog

  • 9c7238db feat: add ls-vars command
  • 2139c417 feat: add support for VALE_STYLES_PATH (#755)
  • f0041a58 docs: update contributing instructions (#767)

v3.0.7

3 months ago

Changelog

  • d9d51196 refactor: "Location" -> "Default Location"
  • 0f936aa1 chore: pterm requires Go v1.21
  • 28132f71 chore: upgrade pterm
  • 27fa9a0a fix: handle sync with relative --config

v3.0.6

3 months ago

Changelog

  • b58b8b8f fix: remove -q from asciidoctor args (#759)
  • a45cc80a feat: support fragments in .ps1 and .jl files (#736)