1 Star 5 Fork 1

梁典典/simple_shop_v2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
analysis_options.yaml 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
梁典典 提交于 2022-03-27 17:39 . 优化若干hints
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Dart
1
https://gitee.com/qhblog/simple_shop_v2.git
git@gitee.com:qhblog/simple_shop_v2.git
qhblog
simple_shop_v2
simple_shop_v2
master

搜索帮助