b06b60702b
Bug: https://github.com/dart-lang/sdk/issues/41651 Change-Id: I9be21ab7e8f8b61707a75d7d4b5f9a872ad0fb95 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222220 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>
29 lines
834 B
YAML
29 lines
834 B
YAML
include: package:pedantic/analysis_options.1.9.0.yaml
|
|
|
|
analyzer:
|
|
language:
|
|
strict-casts: true
|
|
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
|
|
- depend_on_referenced_packages
|
|
- empty_statements
|
|
- iterable_contains_unrelated_type
|
|
- list_remove_unrelated_type
|
|
- prefer_initializing_formals
|
|
- prefer_typing_uninitialized_variables
|
|
- unnecessary_brace_in_string_interps
|
|
- unnecessary_overrides
|
|
- unnecessary_parenthesis
|
|
- void_checks
|