biomejs / biome

A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.
https://biomejs.dev
Apache License 2.0
15.6k stars 486 forks source link

Revamp analyzer diagnostic system #4626

Open ematipico opened 4 days ago

ematipico commented 4 days ago

Our analyzer currently works this way:

This behaviour is different from the majority of linters/analyzers out there, and it's really confusing for people who use other tools. We intended to change it, so:

This means there could be lint rules that will have Severity::Warning rules and be recommended.

Conaclos commented 4 days ago

Are there some rationales for using Severity::Information by default instead of Severity::Warning?

ematipico commented 4 days ago

There are no particular rationales, feel free to propose something in here. Severity::Information is the Default implementation of Severity

Conaclos commented 4 days ago

Maybe we should use the default implementation of Severity that should be Severity::Off?

ematipico commented 4 days ago

That's a variant that doesn't exist in Severity. It's possible there's some misunderstanding, so instead of talking code, why don't you propose a "business logic" instead?

Conaclos commented 2 days ago

Indeed, I had some understanding. Looks good to me.