406f493bcf
https://dart-review.googlesource.com/c/sdk/+/505046 was created by an automated script that didn't respect the ordering of lint entries in `analysis_options.yaml` files. We usually try to keep them sorted, so this CL re-sorts them. Change-Id: I1a7d007af34b6db2f8e4f02b8cc71d2c6a6a6964 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/507140 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
30 lines
806 B
YAML
30 lines
806 B
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
|
|
|
|
linter:
|
|
rules:
|
|
- always_use_package_imports
|
|
- avoid_dynamic_calls
|
|
- avoid_redundant_argument_values
|
|
- avoid_unused_constructor_parameters
|
|
- flutter_style_todos
|
|
- prefer_single_quotes
|
|
- unawaited_futures
|
|
- unnecessary_breaks
|
|
- unnecessary_const_in_enum_constructor
|
|
- unnecessary_library_directive
|
|
- unnecessary_parenthesis
|
|
- unnecessary_type_name_in_constructor
|
|
- unreachable_from_main
|
|
|