You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/analysis_options.yaml
+43-23Lines changed: 43 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,24 @@
1
1
analyzer:
2
+
exclude:
3
+
# General generated files
4
+
- '**/*.g.dart'
5
+
- '**/*.gr.dart'
6
+
7
+
# Flutter
8
+
- 'lib/generated_plugin_registrant.dart'
9
+
10
+
# mockito
11
+
- '**/*.mocks.dart'
12
+
13
+
# freezed
14
+
- '**/*.freezed.dart'
15
+
16
+
# protobuf
17
+
- '**/*.pb.dart'
18
+
19
+
# test_coverage
20
+
- test/.test_coverage.dart
21
+
2
22
# Dart Code Metrics plugin (https://dartcodemetrics.dev/) provides many additional rules
3
23
# that helped to automate some pieces of our internal team code style based on the best
4
24
# industry practices.
@@ -20,10 +40,10 @@ dart_code_metrics:
20
40
metrics:
21
41
# NIST 500-235 item 2.5
22
42
cyclomatic-complexity: 10
23
-
43
+
24
44
# McConnell, S. (2004), Chapter 7.5: High-Quality Routines: How To Use Routine Parameters. Code Complete, Second Edition, Redmond, WA, USA: Microsoft Press. 174-180
25
45
number-of-parameters: 7
26
-
46
+
27
47
# McConnell, S. (2004), Chapter 7.4: High-Quality Routines: How Long Can a Routine Be?. Code Complete, Second Edition, Redmond, WA, USA: Microsoft Press. 173-174
28
48
source-lines-of-code: 200
29
49
@@ -72,8 +92,8 @@ linter:
72
92
- avoid_empty_else
73
93
- avoid_escaping_inner_quotes
74
94
- avoid_field_initializers_in_const_classes
75
-
# available in later releases
76
-
# - avoid_final_parameters
95
+
# available in later releases
96
+
# - avoid_final_parameters
77
97
- avoid_function_literals_in_foreach_calls
78
98
- avoid_implementing_value_types
79
99
- avoid_init_to_null
@@ -101,8 +121,8 @@ linter:
101
121
- cancel_subscriptions
102
122
- close_sinks
103
123
- comment_references
104
-
# available in later releases
105
-
# - conditional_uri_does_not_exist
124
+
# available in later releases
125
+
# - conditional_uri_does_not_exist
106
126
- constant_identifier_names
107
127
- control_flow_in_finally
108
128
- curly_braces_in_flow_control_structures
@@ -130,9 +150,9 @@ linter:
130
150
- literal_only_boolean_expressions
131
151
- no_adjacent_strings_in_list
132
152
- no_duplicate_case_values
133
-
# available in later releases
134
-
# - no_leading_underscores_for_library_prefixes
135
-
# - no_leading_underscores_for_local_identifiers
153
+
# available in later releases
154
+
# - no_leading_underscores_for_library_prefixes
155
+
# - no_leading_underscores_for_local_identifiers
136
156
- no_logic_in_create_state
137
157
- no_runtimeType_toString
138
158
- non_constant_identifier_names
@@ -151,11 +171,11 @@ linter:
151
171
- prefer_constructors_over_static_methods
152
172
- prefer_contains
153
173
- prefer_equal_for_default_values
154
-
# Not used, as the default app template has a single statement return code generated.
155
-
# While this could be beneficial for Dart projects and maintaining code style, we are unaware
156
-
# of any substantial evidence that improves code when using expression function body
157
-
# vs single statement return. We are considering including this in Dart only lints.
158
-
# - prefer_expression_function_bodies
174
+
# Not used, as the default app template has a single statement return code generated.
175
+
# While this could be beneficial for Dart projects and maintaining code style, we are unaware
176
+
# of any substantial evidence that improves code when using expression function body
177
+
# vs single statement return. We are considering including this in Dart only lints.
178
+
# - prefer_expression_function_bodies
159
179
- prefer_final_fields
160
180
- prefer_final_in_for_each
161
181
- prefer_final_locals
@@ -180,16 +200,16 @@ linter:
180
200
- public_member_api_docs
181
201
- recursive_getters
182
202
- require_trailing_commas
183
-
# available in later releases
184
-
# - secure_pubspec_urls
203
+
# available in later releases
204
+
# - secure_pubspec_urls
185
205
- sized_box_for_whitespace
186
-
# available in later releases
187
-
# - sized_box_shrink_expand
206
+
# available in later releases
207
+
# - sized_box_shrink_expand
188
208
- slash_for_doc_comments
189
209
- sort_child_properties_last
190
-
# We tend to use class organization close to standard Java convention, where fields come first.
191
-
# Martin, R. C. & Coplien, J. O. (2013), Chapter 10: Classes. Clean code: a handbook of agile software craftsmanship , Prentice Hall , Upper Saddle River, NJ [etc.] . 136
192
-
# - sort_constructors_first
210
+
# We tend to use class organization close to standard Java convention, where fields come first.
211
+
# Martin, R. C. & Coplien, J. O. (2013), Chapter 10: Classes. Clean code: a handbook of agile software craftsmanship , Prentice Hall , Upper Saddle River, NJ [etc.] . 136
0 commit comments