Created
February 6, 2019 13:01
-
-
Save xqwzts/6951764ab7da3d13df745e79f980c24d to your computer and use it in GitHub Desktop.
flutter analysis_options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://dart-lang.github.io/linter/lints/ | |
# https://github.com/dart-lang/linter | |
analyzer: | |
errors: | |
missing_required_param: error | |
linter: | |
rules: | |
# - public_member_api_docs | |
- avoid_empty_else | |
- avoid_relative_lib_imports | |
# - avoid_returning_null_for_future | |
- avoid_types_as_parameter_names | |
- cancel_subscriptions | |
- close_sinks | |
- control_flow_in_finally | |
- empty_statements | |
- hash_and_equals | |
- no_duplicate_case_values | |
- prefer_void_to_null | |
- test_types_in_equals | |
- unnecessary_statements | |
- unrelated_type_equality_checks | |
- always_declare_return_types | |
# - always_put_required_named_parameters_first | |
- annotate_overrides | |
- avoid_init_to_null | |
- avoid_return_types_on_setters | |
- avoid_void_async | |
- await_only_futures | |
- camel_case_types | |
- curly_braces_in_flow_control_structures | |
- empty_constructor_bodies | |
- prefer_conditional_assignment | |
- prefer_collection_literals | |
- prefer_const_constructors_in_immutables | |
- prefer_contains | |
- prefer_equal_for_default_values | |
- prefer_final_fields | |
- prefer_interpolation_to_compose_strings | |
- prefer_is_empty | |
- prefer_is_not_empty | |
- prefer_iterable_whereType | |
- prefer_single_quotes | |
- prefer_typing_uninitialized_variables | |
- slash_for_doc_comments | |
# - sort_constructors_first | |
- sort_unnamed_constructors_first | |
- super_goes_last | |
- type_annotate_public_apis | |
- type_init_formals | |
- unawaited_futures | |
# - unnecessary_await_in_return | |
- unnecessary_brace_in_string_interps | |
- unnecessary_lambdas | |
- unnecessary_null_aware_assignments | |
- unnecessary_null_in_if_null_operators | |
- unnecessary_this | |
#- use_function_type_syntax_for_parameters | |
- use_string_buffers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment