-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ignoring prefer_is_not_empty doesn't work #57817
Comments
Verified here too. |
Hmm, what to do about this one, the lint text seems pretty clear:
I agree, it's not intuitive what each rule does. But the rule names are just short, unique identifiers. What to do. |
I don't see a problem here. The actual issue is that both
while this should only apply to the former and the later should be silenced by
but isn't. To me this looks like a copy-paste error. |
Looking again, I think they aren't actually but the messages are confusing. In your case, you are seeing a flagging of The In the end, I think we could probably have picked better names? Feel free to re-open if you think I missed something or you have ideas for how to make this actionable... |
I run into https://github.com/dart-lang/sdk/issues/34798 and tried to ignore it
but
// ignore: prefer_is_not_empty
didn't workit turned out I could ignore it with
prefer_is_empty
, but that seems wrong to me.The text was updated successfully, but these errors were encountered: