ChrisChinchilla / vale-vscode

A Visual Studio Code extension for the Vale CLI.
https://marketplace.visualstudio.com/items?itemName=ChrisChinchilla.vale-vscode
MIT License
34 stars 5 forks source link

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

Open ccoVeille opened 2 months ago

ccoVeille commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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