vale icon indicating copy to clipboard operation
vale copied to clipboard

Setting Spelling severity in different formats sets them all to the last one.

Open napcs opened this issue 11 months ago • 0 comments

Check for existing issues

  • [x] Completed

Environment

OS: macOS Install method: Homebrew Vale version: 3.9.5

Describe the bug / provide steps to reproduce it

Given this minimal configuration:

[*.{html,md}]
BasedOnStyles = Vale

[*.md]
Vale.Spelling = warning

or this configuration:

[*.html]
BasedOnStyles = Vale
Vale.Spelling = error

[*.md]
BasedOnStyles = Vale
Vale.Spelling = warning

the spelling severity seems set to whatever appears last.

vale ls-config

shows this:

"RuleToLevel": { "Vale.Spelling": "warning" },

I can't find this behavior documented where the docs mention how configuration overrides work.

How would I have different spelling severities for different types of files? Different config files seems like the only way. Either a separate config, or a config file located closer to each file type.

EDIT: This does seem like the only way. It seems Vale can't have different severity levels for rules, and the only option is separate configuration files. Would like a confirmation on this though.

napcs avatar Feb 14 '25 20:02 napcs