8968e5500a
Change-Id: If9c09f81bdbac890553573a8491ca27cb4f22dd7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353805 Reviewed-by: Phil Quitslund <pquitslund@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
include: package:lints/recommended.yaml
|
|
|
|
analyzer:
|
|
language:
|
|
strict-casts: true
|
|
strict-raw-types: 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
|
|
|
|
# We have some long test class names which include one or more underscores
|
|
# to improve readability.
|
|
camel_case_types: ignore
|
|
constant_identifier_names: ignore
|
|
file_names: ignore
|
|
# This package imports much of the implementation libraries of the
|
|
# 'analyzer' (and sometimes the '_fe_analyzer_shared' package), because it
|
|
# is tightly integrated. This will not likely change any time soon.
|
|
implementation_imports: ignore
|
|
non_constant_identifier_names: ignore
|
|
overridden_fields: ignore
|
|
todo: ignore
|
|
|
|
linter:
|
|
rules:
|
|
- avoid_redundant_argument_values
|
|
- flutter_style_todos
|
|
- library_annotations
|
|
- prefer_single_quotes
|
|
- unawaited_futures
|
|
- unnecessary_breaks
|
|
- unnecessary_library_directive
|
|
- unnecessary_parenthesis
|
|
- unreachable_from_main
|