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

CLI --filter expressions no longer working #967

Open
1 task done
napcs opened this issue Feb 19, 2025 · 1 comment
Open
1 task done

CLI --filter expressions no longer working #967

napcs opened this issue Feb 19, 2025 · 1 comment

Comments

@napcs
Copy link

napcs commented Feb 19, 2025

Check for existing issues

  • Completed

Environment

macOS
Installed with Homebrew
Vale 3.9.5

Describe the bug / provide steps to reproduce it

I've tested --filter expressions like the docs show and it seems Vale only now supports filters saved in files.

vale --filter='"heading" in .Scope' awk.md
filter '"heading" in .Scope' not found

I think this refactor is what caused the issue:

df48b17#diff-f491ac2d9f7dcb3cb5657a04e5fe526d6702596c62c3bec542816356f7c44229L23

And the unit tests for Vale only seem to cover using saved filters, not CLI expressions.

@ngulden
Copy link

ngulden commented Feb 21, 2025

Same here. I use --filter='.Level in ["error"]' with Vale 3.9.5. I receive the message filter '.Level in ["error"]' not found. I also tried with 3.9.2, 3.9.3, 3.9.4. All with the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants