-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Add support for ignores for JSON and YAML files #383
Comments
Yes, My advice for data-serialization formats is to create a small wrapper (in any scripting language) that parses the file and passes only the desired keys to Vale. So, for example, you could lint I wrote about a related topic in Vale & The OpenAPI Specification. |
Thank you so much for the response - the blog post is super helpful! |
We'd like to be able to leverage our Vale styles to check for content outside of the docs, namely UI strings in JSON and YAML files. To clean up the results, particularly around spelling, we'd like to be able to configure in the
.vale.ini
file to ignore the keys in the files using regex.While Vale can currently run on JSON and YAML files, through our testing, it seems that token ignores are not currently supported for these file types. For example, even if I set an ignore that's simply for
devtools
exactly (no real regex), this is still flagged in the JSON but not if I put it in a Markdown file.After some troubleshooting, I searched around in the existing issues and found a comment from about a year ago that noted that token ignores only work for the supported Markup languages: #289 (comment) So, if this is currently unsupported (and not just a goof on my part trying to get this configured), this issue is to request support for ignores in JSON and YAML files.
The text was updated successfully, but these errors were encountered: