-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Settle on a process for deprecating lints #57794
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
Comments
One possibility would be to create a new |
The latest analyzer has a new |
Closing the loop on process, are we agreed that we will use the @bwilkerson : do we have any boilerplate in analyzer (or elsewhere) we could crib? As for documentation, I'm thinking a separate page on http://dart-lang.github.io/linter/lints/ that we can link to from deprecated lint docs. Examples of good docs like this would be welcome too btw... @srawlins, @a14n, @MichaelRFairhurst : thoughts? |
Is there any reason not to remove a lint immediately? (or, like, the very next release after deprecating)? I thought dartanalyzer ignored unknown lint rule names found in analyzer_options.yaml. |
I guess I'd like to leave the door open for conversation. Dropping some immediately would have no impact (e.g., ones made redundant by default analysis) but for those that would, I guess immediate removal feels sudden and could possibly bum folks out. |
I agree that that should be part of the process, but I think we need to do a little more. We should probably add some support to the analysis of analysis options files so that uses of deprecated lints are flagged in some way.
Not that I'm aware of. Deprecating lints is a little different than deprecating APIs.
Yes, dartanalyzer will ignore unknown lints when analyzing Dart code. It will generate a diagnostic if the analysis options file is analyzed, which might impact users that take advantage of that. Echoing Phil's comment, it seems rude to not give people time to react to the announcement that a lint is going to be removed. How long we need to wait is something I don't know. |
👍 Opened #35291 to track. |
FWIW: deprecated lint validation has landed on the analyzer branch and should be available in server in the next dev build (or as soon as the analyzer branch is folded back into master). |
/fyi @csells |
@pq I'd say this can actually be closed by now. WDYT? |
Thanks! |
Follow-up from dart-archive/linter#1178 (comment) most recently but this has come up before as well, we should settle on a process for deprecating lints.
The text was updated successfully, but these errors were encountered: