-
We are about to get started using Vale on our documentation repository. There is one sub folder in that repo which we'd like to exclude from linting, but I can't figure out how that's done. I see no way to just exclude a single path in any way. So now I'm trying to create a What am I missing? This must be a common use case. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
For more details, I'm taking this approach from this docs paragraph
Here is the layout of my test setup:
Content of StylesPath = vale-styles
Packages = Hugo, Microsoft
[*.md]
MinAlertLevel = suggestion
BasedOnStyles = Vale, Microsoft Content of StylesPath = ../../vale-styles
Packages = Hugo, Microsoft
[*.md]
MinAlertLevel = suggestion
BasedOnStyles = Vale, Microsoft
Microsoft.Contractions = NO
Microsoft.We = NO
Vale.Spelling = NO Content of # Headline
We are a company using lots of TLAs. Result of executing
|
Beta Was this translation helpful? Give feedback.
-
I looked into the vale --glob='!content/bad/**' . While this works, I would still like to understand why the approach I tried did not work. I expected the |
Beta Was this translation helpful? Give feedback.
-
If you want to ignore a sub-directory entirely, then If you want to change or override config values for a certain sub-directory, you can do so with just the root StylesPath = vale-styles
Packages = Hugo, Microsoft
[*.md]
MinAlertLevel = suggestion
BasedOnStyles = Vale, Microsoft
[content/bad/*.md]
Microsoft.Contractions = NO
Microsoft.We = NO
Vale.Spelling = NO |
Beta Was this translation helpful? Give feedback.
If you want to ignore a sub-directory entirely, then
--glob
is the way to do.If you want to change or override config values for a certain sub-directory, you can do so with just the root
.vale.ini
file: