Skip to content

Unused boolean statements #57319

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

Closed
srawlins opened this issue Apr 19, 2016 · 3 comments
Closed

Unused boolean statements #57319

srawlins opened this issue Apr 19, 2016 · 3 comments
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. linter-lint-request type-enhancement A request for a change that isn't a bug

Comments

@srawlins
Copy link
Member

Accidental == instead of = can be caught when used as a statement.

Basically I think #11625 should be a lint rather than an analyzer warning.

void main() {
  var a = 1;
  var b = 2;
  a == 2; // lint here.
}
@pq pq added type-enhancement A request for a change that isn't a bug linter-lint-request labels May 27, 2016
@pq
Copy link
Member

pq commented May 27, 2016

@bwilkerson : I see your name is on #11625 ... do you agree that this should be a lint not a hint?

@bwilkerson
Copy link
Member

Yes. It feels more like a lint than a hint.

@srawlins
Copy link
Member Author

This is covered by unnecessary_statements.

@devoncarew devoncarew added devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. labels Nov 18, 2024
@devoncarew devoncarew transferred this issue from dart-archive/linter Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. linter-lint-request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants