A broader version of unawaited_future lint for tests #57604
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
devexp-linter
Issues with the analyzer's support for the linter package
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
We already have this lint that warns you about unawaited futures if you marked your method async. I propose a broader version of this that looks that warns about unuawaited futures without caring about the async tag. It would only apply to tests because it is very rare for a developer to write test code calling async functions where they do not want to wait for the result:
This code looks perfectly fine and raises no linter alarms. What they meant to write is:
The text was updated successfully, but these errors were encountered: