-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
[Question] Issue with ignoring files #403
Comments
This should work: [*.fr.md]
Google.Exclamation = NO
Google.Spelling = NO
[*.md]
BasedOnStyles = Google You can also filter the See #245 for a related discussion. |
The cli method does but I'd rather have it in the config. Here is my whole config: # Vale configuration for the Core Games documentation
# https://errata-ai.github.io/vale/
# Core properties
#----------------
# Specify where to find styles
StylesPath = .github/vale-styles
Vocab = Manticore
# Specify the minimum alert level to report
# Alerts are assigned a level of suggestion, warning, or error.
# For local use it's good to see all the suggestions and warnings.
MinAlertLevel = warning
# Specify how to test a particular type of files
#-----------------------------------------------
[*.fr.md]
Google.Exclamation = NO
Google.Spelling = NO
Google.Headings = NO
Google.Colons = NO
Google.Quotes = NO
Google.FirstPerson = NO
Google.Ellipses = NO
[*.md]
# Vale comes with three built-in styles: write-good, proselint, and Joblint.
# You could enable all rules in the "Google" style guide as follows:
BasedOnStyles = Google
# Initially, we only want to run a few rules, so we'll specify them individually
# Style.Rule = {YES, NO} to enable or disable a specific rule
Google.Spacing = NO ; too many false positives
Google.Ordinal = NO
Google.Quotes = NO
Google.Units = YES
Google.OptionalPlurals = YES
Google.Slang = YES
Google.We = NO ; disable but long term enable
Google.Headings = NO
Google.WordList = NO ; warn `above`, reference sections by name
Google.Will = NO
Google.Ellipses = NO
Google.Colons = NO
Google.FirstPerson = NO
Google.Ranges = YES
Google.OxfordComma = YES
# Modify the level of some rules
Google.Exclamation = warning
# Suggestions
Google.Acronyms = YES
Google.Contractions = NO
Google.Parens = NO
Google.Passive = NO
Google.Semicolons = NO
# Manticore rules
Manticore.FirstPerson = YES Edit: Nevermind, I understood the scoping now, I have to use |
I think there may actual be a bug here: it seems like the results are nondeterministic between runs. |
I was just about to post that, got me confused for a second when I got different results between runs |
This should be fixed in the latest release. However, for cases where a given file could match more than one section (e.g., [*.md]
BasedOnStyles = Google
[*.fr.md]
Google.Exclamation = NO
Google.Spelling = NO |
Thanks! |
vale -v
) - 2.14I'm trying to use on vale on
*.md
files but not on*.fr.md
and I can't seem to be able to do that?is what I tried.
The text was updated successfully, but these errors were encountered: