Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
flutter analysis_options
# 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