|
|
@ -1,11 +1,11 @@
|
|
|
|
# This set of lints builds on top of `package:lints/core.yaml`; it includes
|
|
|
|
# This set of lints builds on top of `package:lints/core.yaml`.
|
|
|
|
# lints that help identify additional issues that may lead to problems when
|
|
|
|
# It includes lints that help identify additional issues that might lead to
|
|
|
|
# running or consuming Dart code, as well as lints that enforce writing Dart
|
|
|
|
# problems when running or consuming Dart code, as well as lints
|
|
|
|
# using a single, idiomatic style. See https://github.com/dart-lang/lints for
|
|
|
|
# that enforce writing Dart using a single, idiomatic style.
|
|
|
|
# more information.
|
|
|
|
# Check out https://github.com/dart-lang/lints for more information.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# For documentation about customizing static analysis for your project, see
|
|
|
|
# To learn more about customizing static analysis for your package or app,
|
|
|
|
# https://dart.dev/guides/language/analysis-options.
|
|
|
|
# visit https://dart.dev/tools/analysis.
|
|
|
|
|
|
|
|
|
|
|
|
include: package:lints/core.yaml
|
|
|
|
include: package:lints/core.yaml
|
|
|
|
|
|
|
|
|
|
|
@ -37,7 +37,6 @@ linter:
|
|
|
|
- prefer_collection_literals
|
|
|
|
- prefer_collection_literals
|
|
|
|
- prefer_conditional_assignment
|
|
|
|
- prefer_conditional_assignment
|
|
|
|
- prefer_contains
|
|
|
|
- prefer_contains
|
|
|
|
- prefer_equal_for_default_values
|
|
|
|
|
|
|
|
- prefer_final_fields
|
|
|
|
- prefer_final_fields
|
|
|
|
- prefer_for_elements_to_map_fromIterable
|
|
|
|
- prefer_for_elements_to_map_fromIterable
|
|
|
|
- prefer_function_declarations_over_variables
|
|
|
|
- prefer_function_declarations_over_variables
|
|
|
@ -48,7 +47,6 @@ linter:
|
|
|
|
- prefer_is_not_operator
|
|
|
|
- prefer_is_not_operator
|
|
|
|
- prefer_null_aware_operators
|
|
|
|
- prefer_null_aware_operators
|
|
|
|
- prefer_spread_collections
|
|
|
|
- prefer_spread_collections
|
|
|
|
- prefer_void_to_null
|
|
|
|
|
|
|
|
- recursive_getters
|
|
|
|
- recursive_getters
|
|
|
|
- slash_for_doc_comments
|
|
|
|
- slash_for_doc_comments
|
|
|
|
- type_init_formals
|
|
|
|
- type_init_formals
|
|
|
@ -64,5 +62,7 @@ linter:
|
|
|
|
- unnecessary_string_escapes
|
|
|
|
- unnecessary_string_escapes
|
|
|
|
- unnecessary_string_interpolations
|
|
|
|
- unnecessary_string_interpolations
|
|
|
|
- unnecessary_this
|
|
|
|
- unnecessary_this
|
|
|
|
|
|
|
|
- unnecessary_to_list_in_spreads
|
|
|
|
- use_function_type_syntax_for_parameters
|
|
|
|
- use_function_type_syntax_for_parameters
|
|
|
|
- use_rethrow_when_possible
|
|
|
|
- use_rethrow_when_possible
|
|
|
|
|
|
|
|
- use_super_parameters
|
|
|
|