From 4a449104aa891b63db01d33109a76b36078e7924 Mon Sep 17 00:00:00 2001 From: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Date: Mon, 8 Sep 2025 09:35:25 +0530 Subject: [PATCH] chore: add unawaited_futures lint as warning --- mobile/analysis_options.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mobile/analysis_options.yaml b/mobile/analysis_options.yaml index bef051bff2..6355af18d8 100644 --- a/mobile/analysis_options.yaml +++ b/mobile/analysis_options.yaml @@ -17,7 +17,7 @@ linter: # section below to disable rules from the `package:flutter_lints/flutter.yaml` # included above or to enable additional rules. A list of all available lints # and their documentation is published at - # https://dart-lang.github.io/linter/lints/index.html. + # https://dart.dev/tools/linter-rules # # Instead of disabling a lint rule for the entire project in the # section below, it can also be suppressed for a single line of code @@ -28,6 +28,7 @@ linter: rules: # avoid_print: false # Uncomment to disable the `avoid_print` rule # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + unawaited_futures: true use_build_context_synchronously: false require_trailing_commas: true unrelated_type_equality_checks: true @@ -45,6 +46,9 @@ analyzer: plugins: - custom_lint + + errors: + unawaited_futures: warning custom_lint: debug: true