dart-sdk/pkg/analysis_server/analysis_options.yaml
pq 63a77416b7 enable depend_on_referenced_packages
this is under consideration for core lint inclusion: https://github.com/dart-lang/lints/issues/42

(also undoubtably nice to get the early warning.)

Change-Id: I3ea204444f48d3b4bde3ff65b4ce85a2cf2a7b11
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/202301
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-06-04 14:19:08 +00:00

30 lines
912 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
- 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