blob: d97f92c4cdd76a04caa9b03f2f0ce4a20565af13 [file] [log] [blame]
include: package:lints/recommended.yaml
analyzer:
errors:
todo: ignore
unused_import: warning
unused_shown_name: warning
language:
# TODO(srawlins) Enable strict-casts.
# strict-casts: true
strict-raw-types: true
strict-inference: true
exclude:
- 'doc/**'
- 'testing/**'
linter:
rules:
- always_declare_return_types
- always_put_required_named_parameters_first
- avoid_bool_literals_in_conditional_expressions
- avoid_catching_errors
- avoid_dynamic_calls
- avoid_slow_async_io
- avoid_unused_constructor_parameters
- collection_methods_unrelated_type
- directives_ordering
- invalid_case_patterns
- no_adjacent_strings_in_list
- omit_local_variable_types
- only_throw_errors
- package_api_docs
- prefer_asserts_in_initializer_lists
- prefer_null_aware_method_calls
- prefer_single_quotes
- sort_child_properties_last
- sort_pub_dependencies
- type_annotate_public_apis
- type_literal_in_constant_pattern
- unawaited_futures
- unnecessary_lambdas
- unnecessary_parenthesis
- unnecessary_statements
- use_super_parameters
- unnecessary_breaks