| 1 | |
| 2 | |
| 3 | analyzer: |
| 4 | exclude: [ |
| 5 | build/**, |
| 6 | scripts/**, |
| 7 | lib/**.g.dart, |
| 8 | cw_core/lib/**.g.dart, |
| 9 | cw_haven/lib/**.g.dart, |
| 10 | cw_monero/lib/**.g.dart, |
| 11 | cw_mweb/lib/**.g.dart, |
| 12 | lib/generated/*.dart, |
| 13 | cw_monero/ios/External/**, |
| 14 | cw_shared_external/**, |
| 15 | shared_external/**, |
| 16 | ] |
| 17 | language: |
| 18 | strict-casts: true |
| 19 | strict-raw-types: true |
| 20 | |
| 21 | plugins: |
| 22 | cw_custom_lints: |
| 23 | path: cw_custom_lints |
| 24 | |
| 25 | linter: |
| 26 | rules: |
| 27 | - cancel_subscriptions |
| 28 | - always_declare_return_types |
| 29 | - prefer_final_fields |
| 30 | - always_put_control_body_on_new_line |
| 31 | - always_put_required_named_parameters_first |
| 32 | - always_use_package_imports |
| 33 | - annotate_overrides |
| 34 | - annotate_redeclares |
| 35 | - avoid_empty_else |
| 36 | - avoid_function_literals_in_foreach_calls |
| 37 | - avoid_init_to_null |
| 38 | - avoid_multiple_declarations_per_line |
| 39 | - avoid_positional_boolean_parameters |
| 40 | - avoid_relative_lib_imports |
| 41 | - avoid_renaming_method_parameters |
| 42 | - avoid_return_types_on_setters |
| 43 | - avoid_returning_null_for_void |
| 44 | - avoid_slow_async_io |
| 45 | - avoid_types_as_parameter_names |
| 46 | - avoid_types_on_closure_parameters |
| 47 | - avoid_unnecessary_containers |
| 48 | - avoid_unused_constructor_parameters |
| 49 | - avoid_void_async |
| 50 | - await_only_futures |
| 51 | - camel_case_extensions |
| 52 | - camel_case_types |
| 53 | - cast_nullable_to_non_nullable |
| 54 | - collection_methods_unrelated_type |
| 55 | - constant_identifier_names |
| 56 | - curly_braces_in_flow_control_structures |
| 57 | - directives_ordering |
| 58 | - empty_constructor_bodies |
| 59 | - empty_statements |
| 60 | - eol_at_end_of_file |
| 61 | - flutter_style_todos |
| 62 | - hash_and_equals |
| 63 | - implicit_reopen |
| 64 | - library_private_types_in_public_api |
| 65 | - non_constant_identifier_names |
| 66 | - only_throw_errors |
| 67 | - package_names |
| 68 | - prefer_asserts_with_message |
| 69 | - prefer_conditional_assignment |
| 70 | - prefer_const_constructors |
| 71 | - prefer_const_constructors_in_immutables |
| 72 | - prefer_const_declarations |
| 73 | - prefer_constructors_over_static_methods |
| 74 | - prefer_contains |
| 75 | - prefer_double_quotes |
| 76 | - prefer_expression_function_bodies |
| 77 | - prefer_final_in_for_each |
| 78 | - prefer_function_declarations_over_variables |
| 79 | - prefer_if_null_operators |
| 80 | - prefer_initializing_formals |
| 81 | - prefer_inlined_adds |
| 82 | - prefer_int_literals |
| 83 | - prefer_is_empty |
| 84 | - prefer_is_not_empty |
| 85 | - prefer_is_not_operator |
| 86 | - prefer_iterable_wheretype |
| 87 | - prefer_null_aware_operators |
| 88 | - prefer_spread_collections |
| 89 | - prefer_typing_uninitialized_variables |
| 90 | - recursive_getters |
| 91 | - require_trailing_commas |
| 92 | - sized_box_for_whitespace |
| 93 | - sort_child_properties_last |
| 94 | - sort_constructors_first |
| 95 | - sort_unnamed_constructors_first |
| 96 | - test_types_in_equals |
| 97 | - unawaited_futures |
| 98 | - unnecessary_async |
| 99 | - unnecessary_await_in_return |
| 100 | - unnecessary_const |
| 101 | - unnecessary_constructor_name |
| 102 | - unnecessary_lambdas |
| 103 | - unnecessary_late |
| 104 | - unnecessary_new |
| 105 | - unnecessary_null_aware_assignments |
| 106 | - unnecessary_null_checks |
| 107 | - unnecessary_null_in_if_null_operators |
| 108 | - unnecessary_nullable_for_final_variable_declarations |
| 109 | - unnecessary_overrides |
| 110 | - unnecessary_parenthesis |
| 111 | - unnecessary_string_escapes |
| 112 | - unnecessary_string_interpolations |
| 113 | - unnecessary_this |
| 114 | - unnecessary_to_list_in_spreads |
| 115 | - unnecessary_underscores |
| 116 | - unreachable_from_main |
| 117 | - unrelated_type_equality_checks |
| 118 | - use_build_context_synchronously |
| 119 | - use_colored_box |
| 120 | - use_full_hex_values_for_flutter_colors |
| 121 | - use_function_type_syntax_for_parameters |
| 122 | - use_is_even_rather_than_modulo |
| 123 | - use_named_constants |
| 124 | - use_null_aware_elements |
| 125 | - use_raw_strings |
| 126 | - use_rethrow_when_possible |
| 127 | - use_string_buffers |
| 128 | - use_super_parameters |
| 129 | - use_truncating_division |
| 130 | - valid_regexps |
| 131 | - void_checks |
| 132 | - prefer_final_locals |
| 133 | - prefer_interpolation_to_compose_strings |
| 134 | - null_closures |
| 135 | - no_wildcard_variable_uses |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 | formatter: |
| 141 | page_width: 100 |