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 '''); } }