52370de8fa
Change-Id: I09294ac48ab0f86a93cd1dcdcc53cca20546fb31 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/166720 Reviewed-by: Devon Carew <devoncarew@google.com> Reviewed-by: Phil Quitslund <pquitslund@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
28 lines
846 B
YAML
28 lines
846 B
YAML
include: package:pedantic/analysis_options.1.9.0.yaml
|
|
|
|
analyzer:
|
|
# This currently finds ~1,200 implicit-casts issues when enabled.
|
|
# strong-mode:
|
|
# implicit-casts: false
|
|
exclude:
|
|
- test/mock_packages/**
|
|
errors:
|
|
# Increase the severity of the unused_import hint.
|
|
unused_import: warning
|
|
# TODO(srawlins): At the time of writing, 20 violations in lib/. The fix
|
|
# is not mechanical; each violation probably needs to be scrutinized.
|
|
unawaited_futures: ignore
|
|
|
|
linter:
|
|
rules:
|
|
- await_only_futures
|
|
- avoid_single_cascade_in_expression_statements
|
|
- empty_statements
|
|
- iterable_contains_unrelated_type
|
|
- list_remove_unrelated_type
|
|
- prefer_initializing_formals
|
|
- prefer_typing_uninitialized_variables
|
|
- unnecessary_brace_in_string_interps
|
|
- unnecessary_overrides
|
|
- void_checks
|