Files
sdk/pkg/analyzer_cli/analysis_options.yaml
T
Konstantin Shcheglov d219bde703 Enforce await_only_futures and fix violations (in more packages).
Change-Id: I1812f7721915178e42956f988b9276bf8db0bfaa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/164281
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-09-24 16:58:50 +00:00

25 lines
620 B
YAML

include: package:pedantic/analysis_options.1.9.0.yaml
analyzer:
strong-mode:
implicit-casts: false
errors:
# Increase the severity of the unused_import hint.
unused_import: warning
language:
strict-inference: true
exclude:
- test/data/**
linter:
rules:
- avoid_single_cascade_in_expression_statements
- avoid_unused_constructor_parameters
- await_only_futures
- empty_statements
- iterable_contains_unrelated_type
- list_remove_unrelated_type
- provide_deprecation_message
- unnecessary_brace_in_string_interps
- unnecessary_overrides
- void_checks