06795bb3a5
This allows Enums created elsewhere to be used for enumOption declarations. Also change the analysis options for pkg/test_runner so that exhaustive case errors are no longer ignored. TEST=ci Change-Id: Ib1cf1c015f4a6df9ce018117edfd9b626e91c5f6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/438725 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com>
20 lines
449 B
YAML
20 lines
449 B
YAML
include: package:lints/recommended.yaml
|
|
|
|
analyzer:
|
|
language:
|
|
strict-casts: true
|
|
|
|
linter:
|
|
rules:
|
|
- avoid_bool_literals_in_conditional_expressions
|
|
- avoid_unused_constructor_parameters
|
|
- cancel_subscriptions
|
|
- comment_references
|
|
- directives_ordering
|
|
- omit_local_variable_types
|
|
- prefer_const_constructors
|
|
- throw_in_finally
|
|
- unnecessary_lambdas
|
|
- unnecessary_parenthesis
|
|
- unnecessary_statements
|