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
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
Member

jdkato commented Feb 15, 2026

Thanks!

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