c14b6eb81c
Bug: https://github.com/dart-lang/sdk/issues/59789 Change-Id: I3287ab55a1b3048c5cbf7f820563fbbd5a292512 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/445920 Reviewed-by: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Auto-Submit: Felipe Morschel <git@fmorschel.dev> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
include: package:lints/recommended.yaml
|
|
|
|
analyzer:
|
|
language:
|
|
strict-casts: true
|
|
strict-inference: true
|
|
strict-raw-types: true
|
|
errors:
|
|
# This package imports much of the implementation libraries of the
|
|
# 'analyzer' package, because it is tightly integrated. This will not
|
|
# likely change any time soon.
|
|
implementation_imports: ignore
|
|
non_constant_identifier_names: ignore
|
|
|
|
# Ignoring this for all developers means developers don't need to ignore
|
|
# TODOs in their IDE settings.
|
|
todo: ignore
|
|
|
|
linter:
|
|
rules:
|
|
- always_use_package_imports
|
|
- avoid_dynamic_calls
|
|
- avoid_redundant_argument_values
|
|
- avoid_bool_literals_in_conditional_expressions
|
|
- avoid_unused_constructor_parameters
|
|
- flutter_style_todos
|
|
- no_literal_bool_comparisons
|
|
- prefer_single_quotes
|
|
- unawaited_futures
|
|
- unnecessary_async
|
|
- unnecessary_breaks
|
|
- unnecessary_library_directive
|
|
- unnecessary_parenthesis
|
|
- unreachable_from_main
|
|
- use_null_aware_elements
|
|
|
|
|