-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
140 lines (136 loc) · 4.28 KB
/
analysis_options.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
include: package:flutter_lints/flutter.yaml
analyzer:
enable-experiment:
- inline-class
plugins:
- flutterando_metrics
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
exclude:
- "**/generated_plugin_registrant.dart"
errors:
missing_required_param: error
flutterando_metrics:
rules:
- double-literal-format
- format-comment
- member-ordering-extended:
alphabetize: false
order:
- constructors
- named-constructors
- factory-constructors
- static-getters-setters
- static-const-public-fields
- static-const-private-fields
- static-final-public-fields
- static-final-private-fields
- static-late-final-public-fields
- static-late-final-private-fields
- static-late-public-fields
- static-late-private-fields
- static-public-fields
- static-private-fields
- const-public-fields
- const-private-fields
- final-public-fields
- final-private-fields
- late-final-public-fields
- late-final-private-fields
- late-public-fields
- late-private-fields
- public-fields
- private-fields
- overridden-public-fields
- overriden-public-methods
- static-public-methods
- static-private-methods
- public-methods
- private-methods
- getters-setters
- prefer-commenting-analyzer-ignores
- prefer-first
- prefer-immediate-return
- prefer-last
- always-remove-listener
- avoid-border-all
- avoid-returning-widgets:
ignored-names:
- testFunction
ignored-annotations:
- allowedAnnotation
- avoid-unnecessary-setstate
- avoid-wrapping-in-padding
- prefer-const-border-radius
linter:
rules:
always_declare_return_types: true
always_put_required_named_parameters_first: true
always_require_non_null_named_parameters: true
avoid_double_and_int_checks: true
avoid_dynamic_calls: true
avoid_empty_else: true
avoid_multiple_declarations_per_line: true
avoid_positional_boolean_parameters: true
avoid_slow_async_io: true
avoid_types_on_closure_parameters: true
avoid_unused_constructor_parameters: true
cancel_subscriptions: true
close_sinks: true
directives_ordering: true
empty_constructor_bodies: true
eol_at_end_of_file: true
exhaustive_cases: true
join_return_with_assignment: true
leading_newlines_in_multiline_strings: true
noop_primitive_operations: true
prefer_collection_literals: true
prefer_final_in_for_each: true
prefer_final_locals: true
prefer_for_elements_to_map_fromIterable: true
prefer_function_declarations_over_variables: true
prefer_inlined_adds: true
prefer_int_literals: true
prefer_is_empty: true
prefer_is_not_empty: true
prefer_is_not_operator: true
prefer_iterable_whereType: true
prefer_null_aware_method_calls: true
prefer_null_aware_operators: true
prefer_relative_imports: true
prefer_single_quotes: true
prefer_spread_collections: true
prefer_typing_uninitialized_variables: true
prefer_void_to_null: true
require_trailing_commas: true
sized_box_shrink_expand: true
sort_constructors_first: true
sort_unnamed_constructors_first: true
type_init_formals: true
unawaited_futures: true
unnecessary_constructor_name: true
unnecessary_getters_setters: true
unnecessary_lambdas: true
unnecessary_late: true
unnecessary_new: true
unnecessary_null_aware_assignments: true
unnecessary_null_in_if_null_operators: true
unnecessary_parenthesis: true
unnecessary_statements: true
unnecessary_this: true
use_colored_box: true
use_decorated_box: true
use_enums: true
use_function_type_syntax_for_parameters: true
use_if_null_to_convert_nulls_to_bools: true
use_is_even_rather_than_modulo: true
use_late_for_private_fields_and_variables: true
use_named_constants: true
use_setters_to_change_properties: true
use_string_buffers: true
use_super_parameters: true
use_test_throws_matchers: true
use_to_and_as_if_applicable: true
void_checks: true