[ty] Hide "rule xyz is enabled …" hints by default by sharkdp · Pull Request #24469 · astral-sh/ruff (original) (raw)
Making them dependent on how they were selected feels a bit strange to me
Why? I don't think it's strange at all. Technically, this version here even has the same information content ("when there is no info hint, the rule belongs to the default set of rules").
While users may not realize that (right away), I don't think they have to. "rule invalid-assignment is enabled by default" is just very unhelpful. On the other hand, "rule division-by-zero was selected in the editor settings" is much more helpful! It tells me that I / my team previously opted in to this rule, and that one solution to removing the diagnostic is to revert that (non-default) setting.
doesn't really fix the verbosity if users select a large group of rules manually
true, but it solves the problem for 98% of users who don't mess with the settings for enabled-by-default rules?