Files
sdk/pkg/analyzer/analysis_options.yaml
T
Konstantin Shcheglov 7ec28c3f08 Enforce await_only_futures and fix violations.
R=brianwilkerson@google.com

Change-Id: Icfc093d46562ddc7084151e76f495cc1462bb900
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/164257
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-09-24 14:28:00 +00:00

38 lines
1.3 KiB
YAML

include: package:pedantic/analysis_options.1.9.0.yaml
analyzer:
errors:
# Increase the severity of the unused_import hint.
unused_import: warning
# There are currently 10k violations in test/ and tool/.
always_declare_return_types: ignore
# There are currently 5000 violations in lib/. This just does not fit well
# with the analyzer team's style.
omit_local_variable_types: ignore
# There are currently 3360 violations in lib/.
prefer_single_quotes: ignore
# "strict-inference" is enabled, but "unused" parameters named '_' are
# still reported. Re-evaluate after
# https://github.com/dart-lang/language/pull/599 and a functional fix land.
inference_failure_on_untyped_parameter: ignore
# There are about 10k violations in test/ due to missing return types on
# test methods. It would be nice to mark this code as
# "ignored for test/**/*.dart".
inference_failure_on_function_return_type: ignore
language:
strict-inference: true
linter:
rules:
- avoid_unused_constructor_parameters
- await_only_futures
- empty_statements
- iterable_contains_unrelated_type
- list_remove_unrelated_type
- prefer_typing_uninitialized_variables
- unnecessary_brace_in_string_interps
- unnecessary_overrides
- unnecessary_parenthesis