-
-
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
Uxpected behaviour with exceptions #827
Comments
Each
|
To me it looked like unexpected behavior because I believe I didn't have such issues with Vale 2.29.2. In any case, now I know how to fix it. @jdkato Thank you so much! |
@jdkato I experimented with headings a bit more and noticed that using Why the exceptions are treated differently while using For completeness, using
Enclosing the string in |
You don't need to enclose every exception in The error you saw when using exceptions:
- '[Cc]oncise' |
Check for existing issues
#799 might be related to my issue.
Environment
OS: Linux (Ubuntu 22.04)
Install method: directly downloaded and installed the binary
Vale version: 3.4.2
Describe the bug / provide steps to reproduce it
Up until today, my Vale version was 2.29.2. My Vale configs worked as expected.
Today I installed Vale 3.4.2 and noticed unexpected behavior with exceptions. Please find this small demo repo that illustrates the issues.
I boiled my issues down to two cases. They are included in the demo repo and explained below.
.vale/styles/Google/Headings.yml
The file
.vale/styles/Google/Headings.yml
included in the demo repo looks as follows:My README file checked with Vale:
## Vale Some text.
Let's say I want to use heading-style capitalization in my heading titles, but the word ale should be lowercase as an exception. With this rule and Vale 3.4.2, the title
## Vale
will be flagged as having inappropriate capitalization. However,Vale
has a heading-style capitalization and should not be flagged!As long as I can see, if a string of characters given under
exceptions
is part of a heading title (ale
is part ofVale
), this heading will be flagged as having inappropriate capitalization. I can replaceale
witha
and the behavior will be the same. However, if I change the exception toales
, suddenlyVale
is not flagged anymore:.vale/styles/Google/AmSpellingPatterns.yml
The file
.vale/styles/Google/AmSpellingPatterns.yml
included in the demo repo looks as follows:My README file checked with Vale:
## Vale Concise, Precise, and realize.
I have
ignorecase: true
and the exceptionsconcise
andprecise
in place. However, Vale 3.4.2 still flags the wordsConcise
andPrecise
as non-compliant with the rule and asks to change s for z. As long as I use the lowercaseconcise
andprecise
, the words are not flagged.The text was updated successfully, but these errors were encountered: