-
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
invariant_booleans false positive #57884
Comments
From @DanTup on August 19, 2018 11:53 This one is even simpler: void test(int a, int b) {
if (a < b) {
print('a < b');
} else if (b < a) {
print('b < a');
}
} The lint fires for the |
FWIW: this may be a dup; we should verify. |
@grouma hit this today also (similar to the first case here), it probably shouldn't try to lint about anything other than local variables? Anything else seems like it would be to difficult to properly track down. |
This linter has a number of issues: https://github.com/dart-lang/linter/issues/1384
We've deprecated |
From @DanTup on August 17, 2018 17:54
This may be a dupe of #28262, #29431 or #28967 but it looks different to me so I thought it worth raising.
I wouldn't expect it to look through all called code to see if the variable is set, but possibly it's a bit too keen to report here.
Copied from original issue: #34173
The text was updated successfully, but these errors were encountered: