blob: 8b82c826e82873c9bc318d22715a6641c582b7f0 [file] [log] [blame]
include: package:lints/recommended.yaml
analyzer:
errors:
unused_import: error
unused_local_variable: error
dead_code: error
todo: ignore
exclude:
- lib/src/third_party/**
language:
strict-casts: true
strict-inference: true
linter:
rules:
- always_declare_return_types
- avoid_catching_errors
- avoid_print
- avoid_private_typedef_functions
- avoid_redundant_argument_values
- avoid_unused_constructor_parameters
- avoid_void_async
- cancel_subscriptions
- directives_ordering
- library_annotations
- missing_whitespace_between_adjacent_strings
- no_adjacent_strings_in_list
- no_runtimeType_toString
- omit_local_variable_types
- only_throw_errors
- package_api_docs
- prefer_asserts_in_initializer_lists
- prefer_const_declarations
- prefer_relative_imports
- prefer_single_quotes
- require_trailing_commas
- sort_pub_dependencies
- test_types_in_equals
- throw_in_finally
- type_annotate_public_apis
- unawaited_futures
- unnecessary_lambdas
- unnecessary_library_directive
- unnecessary_parenthesis
- unnecessary_statements
- use_enums