Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
1 task done
napcs opened this issue Feb 14, 2025 · 0 comments
Open
1 task done

Comments

@napcs
Copy link

napcs commented Feb 14, 2025

Check for existing issues

  • 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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant