From 667924405dbc4754c1b6804409ba76c2771a9eec Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Thu, 9 Sep 2021 09:37:06 -0700 Subject: [PATCH] Ignore unnecessary_import in legacy analysis options (#4129) --- analysis_options_legacy.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/analysis_options_legacy.yaml b/analysis_options_legacy.yaml index 2b62a6a9e2b9..793640e22d27 100644 --- a/analysis_options_legacy.yaml +++ b/analysis_options_legacy.yaml @@ -7,6 +7,9 @@ analyzer: - '**/*.mocks.dart' # Mockito @GenerateMocks errors: always_require_non_null_named_parameters: false # not needed with nnbd + # TODO(https://github.com/flutter/flutter/issues/74381): + # Clean up existing unnecessary imports, and remove line to ignore. + unnecessary_import: ignore unnecessary_null_comparison: false # Turned as long as nnbd mix-mode is supported. linter: rules: