From e3c9f25dfd1943c9bd1fda0e260041a462b87291 Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Thu, 15 Dec 2022 18:52:15 -0800 Subject: [PATCH] Use strict analysis modes instead of deprecated 'strong-mode' options See https://dart.dev/guides/language/analysis-options#enabling-additional-type-checks for more info. --- analysis_options.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index d5e5af4..1666ff8 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -3,9 +3,9 @@ analyzer: exclude: - "**/*.g.dart" - "**/*.freezed.dart" - strong-mode: - implicit-casts: false - implicit-dynamic: false + language: + strict-casts: true + strict-raw-types: true errors: # Otherwise cause the import of all_lint_rules to warn because of some rules conflicts. # We explicitly enabled even conflicting rules and are fixing the conflict