Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency errata-ai/vale to v3 #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 10, 2024

This PR contains the following updates:

Package Update Change
errata-ai/vale major 2.30.0 -> 3.9.1

Release Notes

errata-ai/vale (errata-ai/vale)

v3.9.1

Compare Source

Changelog

v3.9.0

Compare Source

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

v3.8.0

Compare Source

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

Compare Source

Changelog

v3.7.0

Compare Source

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

v3.6.1

Compare Source

Changelog

v3.6.0

Compare Source

Changelog

v3.5.0

Compare Source

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

Compare Source

Changelog

v3.4.1

Compare Source

Changelog

v3.4.0

Compare Source

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

Compare Source

Changelog

v3.3.0

Compare Source

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

Compare Source

Changelog

v3.2.1

Compare Source

Changelog

v3.2.0

Compare Source

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 in capitalization
  • 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

Compare Source

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

v3.0.7

Compare Source

Changelog

  • d9d5119 refactor: "Location" -> "Default Location"
  • 0f936aa chore: pterm requires Go v1.21
  • 28132f7 chore: upgrade pterm
  • 27fa9a0 fix: handle sync with relative --config

v3.0.6

Compare Source

Changelog

v3.0.5

Compare Source

Changelog

  • 08b2c42 refactor: don't load Vale if it's not needed
  • 5e502a0 fix: ensure applyPatterns respects formats (#​754)

v3.0.4

Compare Source

Changelog

v3.0.3

Compare Source

See v3.0.0 for more detailed release notes.

Changelog

v3.0.2

Compare Source

See v3.0.0 for more detailed release notes.

Changelog

  • e00ffbd refactor: better error message for default styles

v3.0.1

Compare Source

See v3.0.0 for more detailed release notes.

Changelog

v3.0.0

Compare Source

The third major release of Vale introduces an updated StylesPath layout and support for a default configuration.

Updated StylesPath

The StylesPath now has a special config directory:

config
├── dictionaries
├── templates
├── ignore
└── vocabularies
  • dictionaries: Hunspell-compatible dictionaries to be loaded by Vale.Spelling. This offers an alternative means of customizing the spell-checking experience in Vale: instead of creating a new rule (e.g., YourStyle.Spelling), you extend the built-in Vale.Spelling with custom dictionaries. This will have the benefit of allowing multiple styles to all contribute to the same spelling rule (#​628).
  • templates: Output templates.
  • ignore: Ignore files to be loaded by Vale.Spelling.
  • vocabularies: The same as the current Vocab folder; moved to match the new global configuration directories.

All of these directories will support being distributed as part of a package.

Default StylesPath + .vale.ini

Vale now supports a default StylesPath and a default .vale.ini file. See the vale ls-dirs command for the exact locations on your system.

The default .vale.ini file is loaded in addition to any other config files -- allowing for local changes to project configurations.

Breaking changes

When upgrading to v3.0.0, you'll need to move your vocabularies from $StylesPath/Vocab to $StylesPath/config/vocabularies.

Changelog

  • 48763c6 refactor: use xdg lib for config and styles
  • 3095655 refactor: make sync root-relative
  • 61bbee7 feat: sync with multiple config files
  • eb63940 feat: default StylesPath
  • 8919342 feat: fallback to global when no config is found
  • a61c1d2 fix: handle relative StylePaths
  • 29a4450 fix: ensure all matching sections are applied
  • 4e7d95c refactor: load default config last
  • c5e8345 feat: add default config
  • ecfe037 feat: sync supports new config dir
  • 5bdb7f9 fix: NOSUGGEST may be more than 1 char
  • 2c68f5c fix: ensure meta characters are escaped
  • 83d4d9e test: add case for vocab
  • e40b0f5 refactor: new config/ignore directory
  • ceaf267 refactor: load files from config/dictionaries
  • 4ec4c80 feat: new StylesPath/config directory

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot assigned arska Jan 10, 2024
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch 4 times, most recently from ec2c1d4 to e120921 Compare January 16, 2024 11:08
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch 2 times, most recently from 0f57827 to d89ea63 Compare January 31, 2024 03:43
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch from d89ea63 to 19c0b74 Compare February 18, 2024 10:49
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch 2 times, most recently from ccf6dac to 75f6aaa Compare March 1, 2024 10:33
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch 2 times, most recently from 909d39f to 912dada Compare March 11, 2024 02:39
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch from 912dada to d0efa6b Compare March 23, 2024 00:30
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch 2 times, most recently from f818eac to 03d8322 Compare April 8, 2024 13:34
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch from 03d8322 to dae6041 Compare May 2, 2024 20:51
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch from dae6041 to ef51a92 Compare June 8, 2024 22:51
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch from ef51a92 to 77a73df Compare June 19, 2024 00:14
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch from 77a73df to 44d3352 Compare July 9, 2024 00:25
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch from 44d3352 to 6cc6bea Compare July 22, 2024 00:20
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch from 6cc6bea to 3e5d1d0 Compare August 25, 2024 11:21
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch from 3e5d1d0 to e357c52 Compare October 22, 2024 00:19
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch from e357c52 to fd140b2 Compare November 8, 2024 02:01
@renovate renovate bot force-pushed the renovate/errata-ai-vale-3.x branch from fd140b2 to 51b2dfd Compare November 18, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant