Skip to content

feat: set path for stdin cli#1076

Merged
jdkato merged 1 commit intovale-cli:v3from
moritzfl:stdin-with-path
Feb 15, 2026
Merged

feat: set path for stdin cli#1076
jdkato merged 1 commit intovale-cli:v3from
moritzfl:stdin-with-path

Conversation

@moritzfl
Copy link
Copy Markdown
Contributor

@moritzfl moritzfl commented Feb 9, 2026

This concerns command line use and the use of the command line for IDE plugins that use the command line to interact with vale.

Setting the file extension when checking file content through command line, it was not possible to lint with path based vale configurations. For example any rule set to check */documentation/en/*.md would not hit any markdown files because only the extension was passed through the cli.

This pull request adds the "path" parameter to the cli. This allows better integration into IDE plugins that may send the current unsaved file content to vale for a check but then also need to pass a path in order for rules to match properly.

The underlying issue has also been discussed to some extent here (Vale Plugin for IntelliJ): https://gitlab.com/pablomxnl/vale-cli-plugin/-/merge_requests/49

Setting the extension when checking file content through command line with cli, it was not possible to check with path based configurations. For example any rule set to check */documentation/en/*.md would not hit any markdown files because only the extension was passed.

This adds the "path" parameter to the command line. This allows better integration into IDE plugins that may send the current unsaved file content to vale for a check but then also need to pass a path.
@jdkato jdkato merged commit 034c5f1 into vale-cli:v3 Feb 15, 2026
2 checks passed
@jdkato
Copy link
Copy Markdown
Member

jdkato commented Feb 15, 2026

Thanks!

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Mar 26, 2026
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [errata-ai/vale](https://github.com/errata-ai/vale) | minor | `v3.13.1` → `v3.14.1` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>errata-ai/vale (errata-ai/vale)</summary>

### [`v3.14.1`](https://github.com/vale-cli/vale/releases/tag/v3.14.1)

[Compare Source](vale-cli/vale@v3.14.0...v3.14.1)

#### Changelog

- [`41f3b22`](vale-cli/vale@41f3b223) fix: correctly ignore `class` values in HTML

### [`v3.14.0`](https://github.com/vale-cli/vale/releases/tag/v3.14.0)

[Compare Source](vale-cli/vale@v3.13.1...v3.14.0)

This release introduces support for [Dasel v3](https://daseldocs.tomwright.me/), which is notably capable of performing [predicate-based recursive search](https://daseldocs.tomwright.me/functions/search).

See [Vale & The OpenAPI Specification \[2026 update\]](https://medium.com/valelint/vale-the-openapi-specification-2026-update-d2c86b246226) for an example use case.

#### Changelog

- [`c7fc3a1`](vale-cli/vale@c7fc3a16) feat: support dasel v3
- [`10a8e86`](vale-cli/vale@10a8e861) chore: update go to 1.25.7 ([#&#8203;1085](vale-cli/vale#1085))
- [`f9f5e68`](vale-cli/vale@f9f5e683) fix(core): use byte offsets for position reporting in raw-scoped script rules ([#&#8203;1081](vale-cli/vale#1081))
- [`034c5f1`](vale-cli/vale@034c5f1d) feat: set path for stdin cli ([#&#8203;1076](vale-cli/vale#1076))
- [`6539915`](vale-cli/vale@65399157) feat(lint): apply defaultIgnoreDirectories to nested directories ([#&#8203;1072](vale-cli/vale#1072))

</details>

---

### 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 MR becomes conflicted, or you tick the rebase/retry checkbox.

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

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My44OS42IiwidXBkYXRlZEluVmVyIjoiNDMuODkuNiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90IiwiYXV0b21hdGlvbjpib3QtYXV0aG9yZWQiLCJkZXBlbmRlbmN5LXR5cGU6Om1pbm9yIl19-->
@moritzfl moritzfl deleted the stdin-with-path branch March 29, 2026 17:51
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.

2 participants