From 518bea67fd67826594791ab2f77b584e079b8202 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Mon, 20 Sep 2021 09:44:58 -0700 Subject: [PATCH] Update the analysis options for sample code to ignore unnecessary_imports (#90391) See https://github.com/flutter/flutter/issues/74381 --- dev/bots/analyze_sample_code.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev/bots/analyze_sample_code.dart b/dev/bots/analyze_sample_code.dart index 1102b34602..3e3ec579e2 100644 --- a/dev/bots/analyze_sample_code.dart +++ b/dev/bots/analyze_sample_code.dart @@ -734,6 +734,12 @@ linter: rules: # Samples want to print things pretty often. avoid_print: false + +analyzer: + errors: + # TODO(https://github.com/flutter/flutter/issues/74381): + # Clean up existing unnecessary imports, and remove line to ignore. + unnecessary_import: ignore '''); } }