-
Notifications
You must be signed in to change notification settings - Fork 205
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
Lint / IDE warning if async function is called without await #4167
Comments
There is a lint for that: The lint is in the recommended lint set, so it should be enabled for all new projects created using (There is a much stricter lint, |
thank you for that!! just finding future methods where im not using await :) its also good integrated into vscode documentation: |
Could unawaited_futures not be activated by default 🤔 |
The lint is activated by default in all projects created using |
Good to know, additionally it would be nice if flutter would have this by default... But here is probably the wrong place for that request |
I'm pretty sure |
Thanks for the link of the recommended lints in dart @lrhn, but unawaited_futures seems to be missing. In flutter stable 3.24.4 the lint of unawaited_futures only appears if manually added |
Ack, my bad. It has been the intent to add the lint to the recommended set for still long that I've forgotten that it hasn't actually been added. |
I think it would help a lot if the IDE or linter would highlight if a async function is called without a await. This could prevent some simple mistakes.
The text was updated successfully, but these errors were encountered: