代码拉取完成,页面将自动刷新
include: package:flutter_lints/flutter.yaml
analyzer:
strong-mode:
implicit-dynamic: true
errors:
# allow having TODOs in the code
todo: ignore
exclude:
- lib/generated
- lib/l10n
- lib/generated_plugin_registrant.dart
linter:
rules:
# STYLE
- camel_case_types
- camel_case_extensions
- library_names
- file_names
- library_prefixes
- curly_braces_in_flow_control_structures
- non_constant_identifier_names
- constant_identifier_names # prefer
- directives_ordering
# DOCUMENTATION
- slash_for_doc_comments
- package_api_docs # prefer
# - public_member_api_docs # prefer
# USAGE
- implementation_imports
- avoid_relative_lib_imports # prefer
- prefer_relative_imports # prefer
- prefer_adjacent_string_concatenation
- unnecessary_brace_in_string_interps # avoid
- prefer_iterable_whereType
- unnecessary_lambdas
- prefer_equal_for_default_values
- avoid_init_to_null
- unnecessary_getters_setters
- unnecessary_this
- prefer_initializing_formals
- type_init_formals
- empty_constructor_bodies
- unnecessary_new
- unnecessary_const
- avoid_catching_errors
- use_rethrow_when_possible
- prefer_interpolation_to_compose_strings # prefer
- prefer_collection_literals
- prefer_function_declarations_over_variables
# DESIGN
- use_to_and_as_if_applicable # prefer
- one_member_abstracts # avoid
- prefer_final_fields # prefer
- avoid_setters_without_getters
- avoid_private_typedef_functions # prefer
- hash_and_equals
- avoid_null_checks_in_equality_operators
- prefer_mixin
- use_setters_to_change_properties
- type_annotate_public_apis # prefer
- prefer_generic_function_type_aliases
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。