Open pq opened 3 years ago
I'm curious if the diagnostics would share the same error codes as the previous lints? If this would be a mostly transparent change for users, modulo some analysis issues just being on by default?
If the codes were the same, then yes, it would be mostly transparent for anyone that previously had the lint enabled. So, yes, we should try to preserve the code.
@bwilkerson and I took a quick look at the scoring lints and identified a few candidates for promotion.
Feedback welcome!
/fyi @scheglov
The line between lints and hints has always been a little fuzzy but over time some lints have proven uniformly useful or uncontroversial enough that we should consider "graduating" them to analyzer hints or warnings. This is particularly true of any lints that might be considered as sensible defaults (as in the canonical lints discussion: dart-lang/sdk#58302).
(Update 1/20: scoring lints added with notes.)
Related: dart-lang/sdk#57794
/cc @munificent @mit-mit @natebosch @jakemac53 @bwilkerson