blob: 697b4fc481fc0abf9b587ea4c785966aa10b468b [file] [log] [blame]
# Change analysis_options.yaml and analysis_options_presubmit.yaml
# together.
include: package:lints/recommended.yaml
analyzer:
errors:
todo: ignore
unused_import: warning
unused_shown_name: warning
### Extra ignores for presubmit
deprecated_member_use: ignore
deprecated_member_use_from_same_package: ignore
language:
strict-raw-types: true
exclude:
- 'doc/**'
- 'lib/src/third_party/pkg/**'
- 'lib/templates/*.html'
- 'pub.dartlang.org/**'
- 'testing/**'
- 'testing/flutter_packages/test_package_flutter_plugin/**'
- 'testing/test_package_export_error/**'
linter:
rules:
always_declare_return_types: true
annotate_overrides: true
avoid_dynamic_calls: true
avoid_single_cascade_in_expression_statements: true
avoid_unused_constructor_parameters: true
avoid_init_to_null: true
directives_ordering: true
no_adjacent_strings_in_list: true
package_api_docs: true
prefer_final_fields: true
prefer_initializing_formals: true
prefer_void_to_null: true
slash_for_doc_comments: true
type_annotate_public_apis: true
# Work in progress canonical score lints
unawaited_futures: true