-
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
No-arg method hint request #15710
Comments
Attachment: |
Added Analyzer-Hint label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
I still think we should have a lint for this. |
Work in progress dart-lang/linter#1014 (comment) This was previously part of dart-lang/linter#1019 but was removed to become its own lint. |
Actually the decision was to keep it part of unnecessary_statements, and make unnecessary_statements more useful by fixing up some false positives. So the answer to this issue should be just, the lint is unnecessary_statements :) |
Closing here in favor of follow-up on the linter (and Thanks! |
I wish there was a hint that told me when I had a method with no arguments and I was just closurizing it and throwing the result away rather than calling it.
Alan Knight
////////////////////////////////////////////////////////////////////////////////////
Editor: 1.1.0.edge_031147 (2013-12-13)
OS: Mac OS X - x86_64 (10.9)
JVM: 1.6.0_65
projects: 6
open dart files: 63
auto-run pub: false
localhost resolves to: 127.0.0.1
mem max/total/free: 1983 / 1049 / 407 MB
thread count: 70
index: 1203850 relationships in 218639 keys in -7715 sources
SDK installed: true
Dartium installed: true
The text was updated successfully, but these errors were encountered: