errata-ai / vale

:pencil: A markup-aware linter for prose built with speed and extensibility in mind.
https://vale.sh
MIT License
4.44k stars 152 forks source link

3.0.4 breaks config setup #754

Closed fviolette closed 8 months ago

fviolette commented 8 months ago

Check for existing issues

Environment

OS: macOS Install method: Howbrew Vale version: 3.0.4

Describe the bug / provide steps to reproduce it

My vale.ini file is located at the repo root. I don't use Vocabularies. My StylesPath folder content:

Upgrading to 3.0.4 breaks my BlockIgnores as specified in this config file:

StylesPath = vale-styles
MinAlertLevel = suggestion

SkippedScopes = table

[formats]
mdx = md

[*.md]
BasedOnStyles = Contentsquare
BlockIgnores = (?s) *(<TabItem [^>]*>.*?</?TabItem>), (?s) *(\{\/\*.*?\*\/\}), \
(?s) *(export.*?\n), (?s) *(\{\/\* vale off \*\/\}.*\{\/\* vale on \*\/\})

Contentsquare.HeaderGerunds = NO

[*README.md]

Vale.Spelling = NO
Contentsquare.Admonitions = NO

Running vale src/content/docs/en gives:

...
 src/content/docs/en/webview-tracking-web-tag/error-analysis.mdx
 84:19  error  "r (" must contain one and      Contentsquare.SentenceSpacing 
               only one space.                                               
 85:23  error  "r (" must contain one and      Contentsquare.SentenceSpacing 
               only one space.                                               
 90:28  error  "r (" must contain one and      Contentsquare.SentenceSpacing 
               only one space.                                               
 91:27  error  "r (" must contain one and      Contentsquare.SentenceSpacing 
               only one space.                                               
 92:31  error  "r (" must contain one and      Contentsquare.SentenceSpacing 
               only one space.                                               

✖ 167 errors, 1815 warnings and 0 suggestions in 1450 files.
error Command failed with exit code 1.

I had 0 errors, 0 warnings and 0 suggestions in 1450 files with 3.0.3.

Thanks for your support

fviolette commented 8 months ago

Thanks for your reactivity @jdkato!