mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
ad2da86f18
Some notes. * There are a number of tests that should get decoupled from the linter being pulled into `DEPS`. Instead of depending on the state of lints there, we should update the tests instead to use a more hermetic environment. (See for example `options_rule_validator_test.dart` for how that might look.) Downstream (blocking) fixes: * https://github.com/flutter/flutter/pull/119736 * https://github.com/flutter/gallery/pull/878 Change-Id: I5671b0abde3eeda75513abaaf9fef3bcd5115f9b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/280054 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Phil Quitslund <pquitslund@google.com> Reviewed-by: Paul Berry <paulberry@google.com>
20 lines
486 B
YAML
20 lines
486 B
YAML
include: package:lints/recommended.yaml
|
|
|
|
analyzer:
|
|
language:
|
|
strict-casts: true
|
|
strict-inference: true
|
|
strict-raw-types: true
|
|
|
|
linter:
|
|
rules:
|
|
- collection_methods_unrelated_type
|
|
# Enable when we require Dart 2.19.0.
|
|
#- dangling_library_doc_comments
|
|
- depend_on_referenced_packages
|
|
- implicit_call_tearoffs
|
|
- library_annotations
|
|
- unawaited_futures
|
|
- unnecessary_library_directive
|
|
- unnecessary_parenthesis
|
|
- unreachable_from_main
|