|
1 |
| -analyzer: |
2 |
| - exclude: |
3 |
| - - example |
4 |
| - - getwidget_app |
5 |
| - - getwidget-app-kit |
6 |
| - - getwidget-web-kit |
7 |
| - - test/.test_coverage.dart |
8 |
| - |
9 |
| -linter: |
10 |
| - rules: |
11 |
| - - always_declare_return_types |
12 |
| - - always_put_control_body_on_new_line |
13 |
| - # conflicts with the Flutter convention of putting {Key key} first and {Widget child} last |
14 |
| - # - always_put_required_named_parameters_first |
15 |
| - - always_require_non_null_named_parameters |
16 |
| - - annotate_overrides |
17 |
| - - avoid_annotating_with_dynamic |
18 |
| - - avoid_as |
19 |
| - - avoid_bool_literals_in_conditional_expressions |
20 |
| - - avoid_catches_without_on_clauses |
21 |
| - - avoid_catching_errors |
22 |
| - - avoid_classes_with_only_static_members |
23 |
| - - avoid_double_and_int_checks |
24 |
| - - avoid_empty_else |
25 |
| - - avoid_field_initializers_in_const_classes |
26 |
| - - avoid_function_literals_in_foreach_calls |
27 |
| - - avoid_implementing_value_types |
28 |
| - - avoid_init_to_null |
29 |
| - - avoid_js_rounded_ints |
30 |
| - - avoid_null_checks_in_equality_operators |
31 |
| - - avoid_positional_boolean_parameters |
32 |
| - - avoid_private_typedef_functions |
33 |
| - - avoid_relative_lib_imports |
34 |
| - - avoid_renaming_method_parameters |
35 |
| - - avoid_return_types_on_setters |
36 |
| - - avoid_returning_null |
37 |
| - - avoid_returning_null_for_void |
38 |
| - - avoid_returning_this |
39 |
| - - avoid_setters_without_getters |
40 |
| - - avoid_single_cascade_in_expression_statements |
41 |
| - - avoid_slow_async_io |
42 |
| - - avoid_types_as_parameter_names |
43 |
| - - avoid_unused_constructor_parameters |
44 |
| - - avoid_void_async |
45 |
| - - await_only_futures |
46 |
| - - camel_case_types |
47 |
| - - cancel_subscriptions |
48 |
| - # for some Animation use we have to perform cascade invocations |
49 |
| - # - cascade_invocations |
50 |
| - - close_sinks |
51 |
| - - comment_references |
52 |
| - # required for couple of GetWidget pattern |
53 |
| - # - constant_identifier_names |
54 |
| - - control_flow_in_finally |
55 |
| - - curly_braces_in_flow_control_structures |
56 |
| - - directives_ordering |
57 |
| - - empty_catches |
58 |
| - - empty_constructor_bodies |
59 |
| - - empty_statements |
60 |
| - - file_names |
61 |
| - - flutter_style_todos |
62 |
| - - hash_and_equals |
63 |
| - - implementation_imports |
64 |
| - - invariant_booleans |
65 |
| - - iterable_contains_unrelated_type |
66 |
| - - join_return_with_assignment |
67 |
| - - library_names |
68 |
| - - library_prefixes |
69 |
| - - list_remove_unrelated_type |
70 |
| - - literal_only_boolean_expressions |
71 |
| - - no_adjacent_strings_in_list |
72 |
| - - no_duplicate_case_values |
73 |
| - - non_constant_identifier_names |
74 |
| - - null_closures |
75 |
| - # we prefer strongly declared variable even local variables |
76 |
| - # - omit_local_variable_types |
77 |
| - - one_member_abstracts |
78 |
| - - only_throw_errors |
79 |
| - # in some places it is required to override fields |
80 |
| - # - overridden_fields |
81 |
| - - package_api_docs |
82 |
| - - package_names |
83 |
| - - package_prefixed_library_names |
84 |
| - - parameter_assignments |
85 |
| - - prefer_adjacent_string_concatenation |
86 |
| - - prefer_asserts_in_initializer_lists |
87 |
| - - prefer_collection_literals |
88 |
| - - prefer_conditional_assignment |
89 |
| - - prefer_const_constructors |
90 |
| - - prefer_const_constructors_in_immutables |
91 |
| - - prefer_const_declarations |
92 |
| - - prefer_const_literals_to_create_immutables |
93 |
| - - prefer_constructors_over_static_methods |
94 |
| - - prefer_contains |
95 |
| - - prefer_equal_for_default_values |
96 |
| - - prefer_expression_function_bodies |
97 |
| - - prefer_final_fields |
98 |
| - - prefer_final_locals |
99 |
| - - prefer_foreach |
100 |
| - - prefer_function_declarations_over_variables |
101 |
| - - prefer_generic_function_type_aliases |
102 |
| - - prefer_initializing_formals |
103 |
| - - prefer_int_literals |
104 |
| - - prefer_interpolation_to_compose_strings |
105 |
| - - prefer_is_empty |
106 |
| - - prefer_is_not_empty |
107 |
| - - prefer_iterable_whereType |
108 |
| - - prefer_mixin |
109 |
| - - prefer_single_quotes |
110 |
| - - prefer_typing_uninitialized_variables |
111 |
| - - prefer_void_to_null |
112 |
| - - recursive_getters |
113 |
| - - slash_for_doc_comments |
114 |
| - - sort_constructors_first |
115 |
| - - sort_pub_dependencies |
116 |
| - - sort_unnamed_constructors_first |
117 |
| - - test_types_in_equals |
118 |
| - - throw_in_finally |
119 |
| - - type_annotate_public_apis |
120 |
| - - type_init_formals |
121 |
| - - unawaited_futures |
122 |
| - - unnecessary_brace_in_string_interps |
123 |
| - - unnecessary_const |
124 |
| - - unnecessary_getters_setters |
125 |
| - - unnecessary_lambdas |
126 |
| - - unnecessary_new |
127 |
| - - unnecessary_null_aware_assignments |
128 |
| - - unnecessary_null_in_if_null_operators |
129 |
| - - unnecessary_overrides |
130 |
| - - unnecessary_parenthesis |
131 |
| - - unnecessary_statements |
132 |
| - - unnecessary_this |
133 |
| - - unrelated_type_equality_checks |
134 |
| - - use_rethrow_when_possible |
135 |
| - - use_string_buffers |
136 |
| - - use_to_and_as_if_applicable |
137 |
| - - valid_regexps |
138 |
| - - void_checks |
| 1 | +analyzer: |
| 2 | + exclude: |
| 3 | + - example |
| 4 | + - getwidget_app |
| 5 | + - getwidget-app-kit |
| 6 | + - getwidget-web-kit |
| 7 | + - test/.test_coverage.dart |
| 8 | + |
| 9 | +linter: |
| 10 | + rules: |
| 11 | + - always_declare_return_types |
| 12 | + - always_put_control_body_on_new_line |
| 13 | + # conflicts with the Flutter convention of putting {Key key} first and {Widget child} last |
| 14 | + # - always_put_required_named_parameters_first |
| 15 | + - always_require_non_null_named_parameters |
| 16 | + - annotate_overrides |
| 17 | + - avoid_annotating_with_dynamic |
| 18 | + - avoid_bool_literals_in_conditional_expressions |
| 19 | + - avoid_catches_without_on_clauses |
| 20 | + - avoid_catching_errors |
| 21 | + - avoid_classes_with_only_static_members |
| 22 | + - avoid_double_and_int_checks |
| 23 | + - avoid_empty_else |
| 24 | + - avoid_field_initializers_in_const_classes |
| 25 | + - avoid_function_literals_in_foreach_calls |
| 26 | + - avoid_implementing_value_types |
| 27 | + - avoid_init_to_null |
| 28 | + - avoid_js_rounded_ints |
| 29 | + - avoid_null_checks_in_equality_operators |
| 30 | + - avoid_positional_boolean_parameters |
| 31 | + - avoid_private_typedef_functions |
| 32 | + - avoid_relative_lib_imports |
| 33 | + - avoid_renaming_method_parameters |
| 34 | + - avoid_return_types_on_setters |
| 35 | + - avoid_returning_null |
| 36 | + - avoid_returning_null_for_void |
| 37 | + - avoid_returning_this |
| 38 | + - avoid_setters_without_getters |
| 39 | + - avoid_single_cascade_in_expression_statements |
| 40 | + - avoid_slow_async_io |
| 41 | + - avoid_types_as_parameter_names |
| 42 | + - avoid_unused_constructor_parameters |
| 43 | + - avoid_void_async |
| 44 | + - await_only_futures |
| 45 | + - camel_case_types |
| 46 | + - cancel_subscriptions |
| 47 | + # for some Animation use we have to perform cascade invocations |
| 48 | + # - cascade_invocations |
| 49 | + - close_sinks |
| 50 | + - comment_references |
| 51 | + # required for couple of GetWidget pattern |
| 52 | + # - constant_identifier_names |
| 53 | + - control_flow_in_finally |
| 54 | + - curly_braces_in_flow_control_structures |
| 55 | + - directives_ordering |
| 56 | + - empty_catches |
| 57 | + - empty_constructor_bodies |
| 58 | + - empty_statements |
| 59 | + - file_names |
| 60 | + - flutter_style_todos |
| 61 | + - hash_and_equals |
| 62 | + - implementation_imports |
| 63 | + - invariant_booleans |
| 64 | + - iterable_contains_unrelated_type |
| 65 | + - join_return_with_assignment |
| 66 | + - library_names |
| 67 | + - library_prefixes |
| 68 | + - list_remove_unrelated_type |
| 69 | + - literal_only_boolean_expressions |
| 70 | + - no_adjacent_strings_in_list |
| 71 | + - no_duplicate_case_values |
| 72 | + - non_constant_identifier_names |
| 73 | + - null_closures |
| 74 | + # we prefer strongly declared variable even local variables |
| 75 | + # - omit_local_variable_types |
| 76 | + - one_member_abstracts |
| 77 | + - only_throw_errors |
| 78 | + # in some places it is required to override fields |
| 79 | + # - overridden_fields |
| 80 | + - package_api_docs |
| 81 | + - package_names |
| 82 | + - package_prefixed_library_names |
| 83 | + - parameter_assignments |
| 84 | + - prefer_adjacent_string_concatenation |
| 85 | + - prefer_asserts_in_initializer_lists |
| 86 | + - prefer_collection_literals |
| 87 | + - prefer_conditional_assignment |
| 88 | + - prefer_const_constructors |
| 89 | + - prefer_const_constructors_in_immutables |
| 90 | + - prefer_const_declarations |
| 91 | + - prefer_const_literals_to_create_immutables |
| 92 | + - prefer_constructors_over_static_methods |
| 93 | + - prefer_contains |
| 94 | + - prefer_equal_for_default_values |
| 95 | + - prefer_expression_function_bodies |
| 96 | + - prefer_final_fields |
| 97 | + - prefer_final_locals |
| 98 | + - prefer_foreach |
| 99 | + - prefer_function_declarations_over_variables |
| 100 | + - prefer_generic_function_type_aliases |
| 101 | + - prefer_initializing_formals |
| 102 | + - prefer_int_literals |
| 103 | + - prefer_interpolation_to_compose_strings |
| 104 | + - prefer_is_empty |
| 105 | + - prefer_is_not_empty |
| 106 | + - prefer_iterable_whereType |
| 107 | + - prefer_mixin |
| 108 | + - prefer_single_quotes |
| 109 | + - prefer_typing_uninitialized_variables |
| 110 | + - prefer_void_to_null |
| 111 | + - recursive_getters |
| 112 | + - slash_for_doc_comments |
| 113 | + - sort_constructors_first |
| 114 | + - sort_pub_dependencies |
| 115 | + - sort_unnamed_constructors_first |
| 116 | + - test_types_in_equals |
| 117 | + - throw_in_finally |
| 118 | + - type_annotate_public_apis |
| 119 | + - type_init_formals |
| 120 | + - unawaited_futures |
| 121 | + - unnecessary_brace_in_string_interps |
| 122 | + - unnecessary_const |
| 123 | + - unnecessary_getters_setters |
| 124 | + - unnecessary_lambdas |
| 125 | + - unnecessary_new |
| 126 | + - unnecessary_null_aware_assignments |
| 127 | + - unnecessary_null_in_if_null_operators |
| 128 | + - unnecessary_overrides |
| 129 | + - unnecessary_parenthesis |
| 130 | + - unnecessary_statements |
| 131 | + - unnecessary_this |
| 132 | + - unrelated_type_equality_checks |
| 133 | + - use_rethrow_when_possible |
| 134 | + - use_string_buffers |
| 135 | + - use_to_and_as_if_applicable |
| 136 | + - valid_regexps |
| 137 | + - void_checks |
0 commit comments