Skip to content
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

Feature request: something to map the level of error #37

Open
ccoVeille opened this issue May 1, 2024 · 2 comments
Open

Feature request: something to map the level of error #37

ccoVeille opened this issue May 1, 2024 · 2 comments

Comments

@ccoVeille
Copy link

ccoVeille commented May 1, 2024

Maybe my request should be opened on https://github.com/errata-ai/vale directly, but I'm using your tool with VS Code for a few weeks now, and I noticed something.

You are allowing to define vale.valeCLI.minAlertLevel in VS Code settings, which somehow overloads the vale MinAlertLevel in .vale.ini

I would like to see something in your VS Code extension. Something that would allow me to overload the maximum level of errors reported, and if possible a kind of mapping, like

vale error => VS code warning
vale warning => VS code warning
vale suggestion => VS code info

I'm using your extension aside other linters that are legitimate for my code, and when I activate vale, a lot of file becomes in errors, for styling/typos.

The only solution I found now was to define tons of rules to overload the level of severity for a bunch of Vale's rule.

Vale.Terms            = suggestion
Vale.Spelling         = suggestion
Vale.Repetition         = suggestion
proselint.Typography  = suggestion
proselint.Annotations = suggestion
Microsoft.Plurals = suggestion
Google.Plurals = suggestion
write-good.ThereIs    = suggestion
Microsoft.Auto        = suggestion
proselint.Hyperbole   = suggestion
Google.Units   = suggestion
Google.OptionalPlurals = suggestion
Google.Latin = suggestion
Google.AMPM = suggestion
Google.Ordinal = suggestion
Microsoft.AMPM = suggestion
Microsoft.Foreign = suggestion
Microsoft.Percentages = suggestion
proselint.DateMidnight=suggestion
proselint.DateSpacing=suggestion
write-good.So = suggestion
Google.LyHyphens = suggestion
@ccoVeille
Copy link
Author

maybe there is a way to define the severity at the vale package level, but I found none. Possibly I'm just misunderstanding something.

@ccoVeille
Copy link
Author

I edited my initial post. I'm sorry if you already read it, please review it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant