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:
@@ -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
|
||||
''');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user