chore: add unawaited_futures lint as warning
This commit is contained in:
@@ -17,7 +17,7 @@ linter:
|
|||||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
# 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
|
# included above or to enable additional rules. A list of all available lints
|
||||||
# and their documentation is published at
|
# 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
|
# 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
|
# section below, it can also be suppressed for a single line of code
|
||||||
@@ -28,6 +28,7 @@ linter:
|
|||||||
rules:
|
rules:
|
||||||
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
||||||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
||||||
|
unawaited_futures: true
|
||||||
use_build_context_synchronously: false
|
use_build_context_synchronously: false
|
||||||
require_trailing_commas: true
|
require_trailing_commas: true
|
||||||
unrelated_type_equality_checks: true
|
unrelated_type_equality_checks: true
|
||||||
@@ -46,6 +47,9 @@ analyzer:
|
|||||||
plugins:
|
plugins:
|
||||||
- custom_lint
|
- custom_lint
|
||||||
|
|
||||||
|
errors:
|
||||||
|
unawaited_futures: warning
|
||||||
|
|
||||||
custom_lint:
|
custom_lint:
|
||||||
debug: true
|
debug: true
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
Reference in New Issue
Block a user