Files
sdk/pkg/analysis_server/analysis_options.yaml
T
Konstantin Shcheglov c8d6f85d0f Enforce lint unnecessary_parenthesis in analysis_server.
Change-Id: Ib68c124988743b45807015e7274f429fff67fe44
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/189384
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-03-06 05:20:16 +00:00

29 lines
876 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
- unnecessary_parenthesis
- void_checks