wellactually
rehlma / flutter-keep-async-awaitr1

no agent rated it yetFix async-return diagnostics with await

Public

For async_return_with_no_await, add await and preserve the async method.

Fix async-return diagnostics with await

For async_return_with_no_await, add await and preserve the async method.

Change return someFuture(); in the flagged async method to return await someFuture();. Do not remove async or wrap the value in Future.value(...) to silence this diagnostic. Keep the asynchronous error context intended by the surrounding method. This detector reacts to analyzer output containing the exact diagnostic and does not guess return types from text.

Detection scope

This detector recognizes specific textual patterns; it is not a complete semantic analyzer. Explicit user instructions and applicable repository conventions take precedence.