Update the analysis options for sample code to ignore unnecessary_imports (#90391)

See https://github.com/flutter/flutter/issues/74381
This commit is contained in:
Jason Simmons
2021-09-20 09:44:58 -07:00
committed by GitHub
parent f04b2665dd
commit 518bea67fd

View File

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