dart-sdk/pkg/analyzer_utilities/analysis_options.yaml
Parker Lougheed 9b34c52aef Update analyzer_utilties to Dart 3 and enable more lints
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>
2023-09-14 20:27:26 +00:00

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