mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:17:55 +00:00
9b34c52aef
All the packages that depend on it now have constraints greater or equal to 3.0.0. The added linter rules are taken from other analyzer packages. Change-Id: If51f9209dab9c58525a1207534bccb6491a409c3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325904 Reviewed-by: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
24 lines
563 B
YAML
24 lines
563 B
YAML
include: package:lints/recommended.yaml
|
|
|
|
analyzer:
|
|
language:
|
|
strict-casts: true
|
|
strict-inference: true
|
|
strict-raw-types: true
|
|
|
|
linter:
|
|
rules:
|
|
- avoid_dynamic_calls
|
|
- avoid_unused_constructor_parameters
|
|
- collection_methods_unrelated_type
|
|
- dangling_library_doc_comments
|
|
- depend_on_referenced_packages
|
|
- implicit_call_tearoffs
|
|
- library_annotations
|
|
- prefer_single_quotes
|
|
- unawaited_futures
|
|
- unnecessary_breaks
|
|
- unnecessary_library_directive
|
|
- unnecessary_parenthesis
|
|
- unreachable_from_main
|