dart-sdk/pkg/analysis_server/analysis_options.yaml
Danny Tuppeny f0d3e1dd90 [analysis_server] Enable unawaited_futures lint and fix remaining violations
Change-Id: I44b56ba8e1bd9ed5ba3d85006eb5d615e5a2c9d6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251461
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-07-13 18:40:53 +00:00

30 lines
801 B
YAML

include: package:lints/recommended.yaml
analyzer:
language:
strict-casts: true
exclude:
- test/mock_packages/**
errors:
# Increase the severity of the unused_import hint.
unused_import: warning
# Lints from the recommended set that conflict w/ analyzer style or will
# require some work to reach compliance.
# See: https://github.com/dart-lang/sdk/issues/48785
camel_case_types: ignore
constant_identifier_names: ignore
file_names: ignore
implementation_imports: ignore
non_constant_identifier_names: ignore
overridden_fields: ignore
prefer_void_to_null: ignore
provide_deprecation_message: ignore
linter:
rules:
- depend_on_referenced_packages
- unawaited_futures
- unnecessary_parenthesis
- use_super_parameters