-
Notifications
You must be signed in to change notification settings - Fork 1
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
False positives for FutureBuilders when passing future functions to the future parameter. #1
Comments
@RemcoSchrijver, yes, I get this one all the time. Can you give me the exact lint so I can be sure we're talking about the same thing? You can just hover over the error to see it. You can easily turn the error off in your I usually just end up ignoring this. in these scenarios, but I believe it might be worth raising an issue in the GitHub repo for for the lint. |
@MelbourneDeveloper yes I also like this one because it forces me to document which async calls I purposefully unawait. The linting error I get is this one:
It might be good indeed to raise an issue on this, but for now how would I go along ignoring these or could I set these as warnings? |
I currently ignore these at the line level, but I feel like it's a long-term problem, and we need to log something with the analyzer team. I believe this is the folder inside the Dart git repo for the analyzer. I think it would be worth logging an issue here. Let me know about it because I will add my comments as well. |
Alright filed an issue upstream for the analyzer repo. |
Really like the package, only problem I'm having right now is that FutureBuilders spawns false positives when assigning a function to be used as a future.
An example would be
And getValue() is now rightfully marked as non-awaited future, however because this is a future builder this function is not used as such. Is this a user error on my part or is this just a false positive part of the framework?
The text was updated successfully, but these errors were encountered: