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

feat: add comment syntax for ignoring individual matches #844

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

Conversation

ItsVeryWindy
Copy link

@ItsVeryWindy ItsVeryWindy commented May 31, 2024

This allows you to turn off rules for specific matches. I was mainly thinking of situations where you may want to check if a word is being used correctly in a paragraph, and then receive no more notifications about it, but still allow other words to be picked up.

This is the syntax I've gone for, where the array can contain one or more matches to disable:

<!-- vale vale.Redundancy["ACT test"] = NO -->
<!-- vale vale.Redundancy["ACT test"] = YES -->

I haven't implemented all the tests yet, looking to get feedback if this is a proper way of solving the problem.

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