|
| 1 | +include: package:flutter_lints/flutter.yaml |
| 2 | +analyzer: |
| 3 | + errors: |
| 4 | + missing_required_param: error |
| 5 | + missing_return: warning |
| 6 | + todo: ignore |
| 7 | + exclude: |
| 8 | + - "bin/cache/**" |
| 9 | +linter: |
| 10 | + rules: |
| 11 | + always_declare_return_types: true |
| 12 | + always_put_control_body_on_new_line: true |
| 13 | + annotate_overrides: true |
| 14 | + avoid_bool_literals_in_conditional_expressions: true |
| 15 | + avoid_classes_with_only_static_members: true |
| 16 | + avoid_empty_else: true |
| 17 | + avoid_field_initializers_in_const_classes: true |
| 18 | + avoid_function_literals_in_foreach_calls: false |
| 19 | + avoid_init_to_null: true |
| 20 | + avoid_null_checks_in_equality_operators: true |
| 21 | + avoid_relative_lib_imports: true |
| 22 | + avoid_renaming_method_parameters: true |
| 23 | + avoid_return_types_on_setters: true |
| 24 | + avoid_returning_null_for_void: true |
| 25 | + avoid_shadowing_type_parameters: true |
| 26 | + avoid_slow_async_io: true |
| 27 | + avoid_types_as_parameter_names: true |
| 28 | + avoid_types_on_closure_parameters: true |
| 29 | + avoid_unnecessary_containers: true |
| 30 | + avoid_unused_constructor_parameters: true |
| 31 | + avoid_void_async: true |
| 32 | + await_only_futures: true |
| 33 | + camel_case_extensions: true |
| 34 | + camel_case_types: true |
| 35 | + cancel_subscriptions: true |
| 36 | + cascade_invocations: true |
| 37 | + close_sinks: true |
| 38 | + collection_methods_unrelated_type: true |
| 39 | + constant_identifier_names: false |
| 40 | + control_flow_in_finally: true |
| 41 | + depend_on_referenced_packages: false |
| 42 | + directives_ordering: true |
| 43 | + empty_catches: true |
| 44 | + empty_constructor_bodies: true |
| 45 | + empty_statements: true |
| 46 | + hash_and_equals: true |
| 47 | + implementation_imports: true |
| 48 | + library_names: true |
| 49 | + library_prefixes: true |
| 50 | + library_private_types_in_public_api: true |
| 51 | + no_adjacent_strings_in_list: true |
| 52 | + no_duplicate_case_values: true |
| 53 | + no_leading_underscores_for_local_identifiers: false |
| 54 | + overridden_fields: true |
| 55 | + package_api_docs: true |
| 56 | + package_names: true |
| 57 | + package_prefixed_library_names: true |
| 58 | + prefer_adjacent_string_concatenation: true |
| 59 | + prefer_asserts_in_initializer_lists: true |
| 60 | + prefer_collection_literals: true |
| 61 | + prefer_conditional_assignment: true |
| 62 | + prefer_const_constructors: true |
| 63 | + prefer_const_constructors_in_immutables: true |
| 64 | + prefer_const_declarations: true |
| 65 | + prefer_const_literals_to_create_immutables: true |
| 66 | + prefer_contains: true |
| 67 | + prefer_final_fields: true |
| 68 | + prefer_final_in_for_each: true |
| 69 | + prefer_for_elements_to_map_fromIterable: true |
| 70 | + prefer_foreach: true |
| 71 | + prefer_function_declarations_over_variables: false |
| 72 | + prefer_generic_function_type_aliases: true |
| 73 | + prefer_if_null_operators: true |
| 74 | + prefer_initializing_formals: true |
| 75 | + prefer_inlined_adds: true |
| 76 | + prefer_interpolation_to_compose_strings: true |
| 77 | + prefer_is_empty: true |
| 78 | + prefer_is_not_empty: true |
| 79 | + prefer_is_not_operator: true |
| 80 | + prefer_iterable_whereType: true |
| 81 | + prefer_mixin: true |
| 82 | + prefer_null_aware_operators: true |
| 83 | + prefer_spread_collections: true |
| 84 | + prefer_typing_uninitialized_variables: true |
| 85 | + prefer_void_to_null: true |
| 86 | + recursive_getters: true |
| 87 | + slash_for_doc_comments: true |
| 88 | + sort_child_properties_last: true |
| 89 | + sort_constructors_first: true |
| 90 | + sort_pub_dependencies: true |
| 91 | + sort_unnamed_constructors_first: true |
| 92 | + test_types_in_equals: true |
| 93 | + throw_in_finally: true |
| 94 | + type_init_formals: true |
| 95 | + unawaited_futures: true |
| 96 | + unnecessary_await_in_return: true |
| 97 | + unnecessary_brace_in_string_interps: true |
| 98 | + unnecessary_const: true |
| 99 | + unnecessary_getters_setters: true |
| 100 | + unnecessary_lambdas: true |
| 101 | + unnecessary_new: true |
| 102 | + unnecessary_null_aware_assignments: true |
| 103 | + unnecessary_null_in_if_null_operators: true |
| 104 | + unnecessary_overrides: true |
| 105 | + unnecessary_parenthesis: true |
| 106 | + unnecessary_statements: true |
| 107 | + unnecessary_this: true |
| 108 | + unrelated_type_equality_checks: true |
| 109 | + use_build_context_synchronously: false |
| 110 | + use_full_hex_values_for_flutter_colors: true |
| 111 | + use_function_type_syntax_for_parameters: true |
| 112 | + use_rethrow_when_possible: true |
| 113 | + use_to_and_as_if_applicable: true |
| 114 | + valid_regexps: true |
| 115 | + void_checks: true |
0 commit comments