mirror of
https://github.com/dart-lang/sdk
synced 2024-09-04 16:03:44 +00:00
bc21d4f901
Change-Id: I8e6bf80d0c9b888dad5dcd10a1e0463e8a7f641d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235721 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
36 lines
1 KiB
YAML
36 lines
1 KiB
YAML
include: package:lints/recommended.yaml
|
|
|
|
analyzer:
|
|
language:
|
|
strict-casts: true
|
|
strict-inference: true
|
|
exclude:
|
|
- test/data/**
|
|
|
|
linter:
|
|
rules:
|
|
always_declare_return_types: true
|
|
avoid_empty_else: true
|
|
avoid_relative_lib_imports: true
|
|
avoid_shadowing_type_parameters: true
|
|
avoid_types_as_parameter_names: true
|
|
avoid_unused_constructor_parameters: true
|
|
camel_case_extensions: true
|
|
curly_braces_in_flow_control_structures: true
|
|
depend_on_referenced_packages: true
|
|
directives_ordering: true
|
|
empty_catches: true
|
|
|
|
# We import heavily from package:analyzer/src.
|
|
implementation_imports: false
|
|
# This rule does not work well with package:test_reflective_loader.
|
|
no_duplicate_case_values: true
|
|
non_constant_identifier_names: false
|
|
omit_local_variable_types: true
|
|
prefer_is_empty: true
|
|
prefer_is_not_empty: true
|
|
prefer_iterable_whereType: true
|
|
prefer_single_quotes: true
|
|
unawaited_futures: true
|
|
unrelated_type_equality_checks: true
|