Open rrousselGit opened 9 months ago
We have already implemented this as a warning, but have been unable to land it because it's too big a breaking change.
We have discussed implementing this as a lint, and have agreed (I think) that this is the right approach, but I haven't yet been able to make the time to convert the warning-based implementation to produce a lint. (We won't be able to implement it as a traditional lint because the check has to occur after all the other lints have been run, not as part of running the lints. But that's just an implementation detail.)
I think duplicate of https://github.com/dart-lang/sdk/issues/35234 and https://github.com/dart-lang/sdk/issues/25917
unused_ignore
Description
An
// ignore: code
line was defined, but it isn't actually ignoring anythingDetails
When dealing with
// ignore
, it is possible that the issue disappears but the// ignore
stays.Kind
warning
Bad Examples
If the ignored code is a known lint code, warn if the next line doesn't have this warning:
Good Examples
We also shouldn't warn if the code is not recognised by the SDK:
This avoids false positives if:
Discussion
Add any other motivation or useful context here.
Discussion checklist