1
- # version 1.7 .0 - https://dcm.dev/changelog/
1
+ # version 1.8 .0 - https://dcm.dev/changelog/
2
2
dart_code_metrics :
3
3
pubspec-rules :
4
4
# ## Pubspec
@@ -15,6 +15,7 @@ dart_code_metrics:
15
15
# ## Common
16
16
# - arguments-ordering # way too pedantic
17
17
- avoid-accessing-other-classes-private-members
18
+ - avoid-async-call-in-sync-function
18
19
# - avoid-banned-file-names
19
20
# - avoid-banned-imports
20
21
# - avoid-banned-types
@@ -27,6 +28,7 @@ dart_code_metrics:
27
28
- avoid-declaring-call-method
28
29
- avoid-double-slash-imports
29
30
- avoid-duplicate-exports
31
+ - avoid-duplicate-mixins
30
32
- avoid-duplicate-named-imports
31
33
- avoid-duplicate-patterns
32
34
- avoid-dynamic
@@ -38,14 +40,15 @@ dart_code_metrics:
38
40
- avoid-generics-shadowing
39
41
- avoid-global-state
40
42
- avoid-ignoring-return-values
41
- # - avoid-importing-entrypoint-exports: false # TODO: has false positives in monorepo
43
+ - avoid-importing-entrypoint-exports
42
44
- avoid-inverted-boolean-checks
43
45
- avoid-keywords-in-wildcard-pattern
44
46
# - avoid-late-keyword
45
47
# - avoid-long-functions # way too pedantic
46
48
# - avoid-long-parameter-list: # way too pedantic
47
- # ignore-optional: true # exclude optional and (non-required) named parameters
49
+ # ignore-optional: true # exclude optional and (non-required) named parameters
48
50
- avoid-long-records
51
+ - avoid-map-keys-contains
49
52
- avoid-missed-calls
50
53
- avoid-missing-enum-constant-in-map
51
54
- avoid-misused-wildcard-pattern
@@ -65,6 +68,7 @@ dart_code_metrics:
65
68
- avoid-non-null-assertion :
66
69
exclude :
67
70
- test/**
71
+ - avoid-nullable-interpolation
68
72
- avoid-one-field-records
69
73
- avoid-passing-async-when-sync-expected :
70
74
exclude :
@@ -93,24 +97,28 @@ dart_code_metrics:
93
97
- avoid-unnecessary-futures
94
98
- avoid-unnecessary-negations
95
99
- avoid-unnecessary-nullable-return-type
100
+ - avoid-unnecessary-reassignment
96
101
- avoid-unnecessary-return
97
102
- avoid-unnecessary-type-assertions
98
103
- avoid-unnecessary-type-casts
99
104
- avoid-unrelated-type-assertions
100
105
- avoid-unrelated-type-casts
101
106
- avoid-unsafe-collection-methods
102
107
- avoid-unused-generics
108
+ - avoid-unused-instances
103
109
- avoid-unused-parameters
104
110
# - banned-usage
105
111
- binary-expression-operand-order
106
112
- double-literal-format
113
+ - enum-constants-ordering
107
114
- format-comment :
108
115
only-doc-comments : true
109
116
# - format-test-name # good but painful
110
117
- function-always-returns-null
111
118
- map-keys-ordering :
112
119
exclude :
113
120
- test/**
121
+ - match-class-name-pattern
114
122
# - match-positional-field-names-on-assignment # not compatible with avoid-redundant-positional-field-name
115
123
- member-ordering :
116
124
order :
@@ -140,6 +148,7 @@ dart_code_metrics:
140
148
- move-records-to-typedefs :
141
149
min-fields : 3
142
150
min-occurrences : 3
151
+ - newline-before-case
143
152
- newline-before-return
144
153
- no-boolean-literal-compare :
145
154
allow-false : true # allows `variable == false` instead of just `!variable`
@@ -168,8 +177,10 @@ dart_code_metrics:
168
177
- prefer-commenting-analyzer-ignores
169
178
- prefer-conditional-expressions
170
179
# - prefer-correct-error-name # we use `e`
180
+ - prefer-correct-for-loop-increment
171
181
- prefer-correct-future-return-type
172
182
# - prefer-correct-identifier-length # way too pedantic
183
+ # - prefer-correct-json-casts # overkill213
173
184
- prefer-correct-stream-return-type
174
185
- prefer-correct-switch-length
175
186
- prefer-correct-test-file-name
@@ -189,7 +200,9 @@ dart_code_metrics:
189
200
allowed-duplicated-chains : 3
190
201
exclude :
191
202
- test/**
203
+ - prefer-named-boolean-parameters
192
204
- prefer-parentheses-with-if-null
205
+ - prefer-public-exception-classes
193
206
- prefer-return-await
194
207
# - prefer-returning-conditional-expressions # annoying sometimes
195
208
- prefer-simpler-patterns-null-check
@@ -218,6 +231,7 @@ dart_code_metrics:
218
231
- avoid-inherited-widget-in-initstate
219
232
- avoid-late-context
220
233
- avoid-missing-image-alt
234
+ - avoid-recursive-widget-calls
221
235
- avoid-returning-widgets
222
236
- avoid-shrink-wrap-in-lists
223
237
- avoid-state-constructors
@@ -237,6 +251,7 @@ dart_code_metrics:
237
251
- prefer-extracting-callbacks
238
252
- prefer-single-widget-per-file :
239
253
ignore-private-widgets : true
254
+ - prefer-text-rich
240
255
- prefer-using-list-view
241
256
# - prefer-widget-private-members # cannot use this.field in constructor
242
257
- proper-super-calls
@@ -266,3 +281,7 @@ dart_code_metrics:
266
281
# ## Intl - not used
267
282
268
283
# ## Angular - not used
284
+
285
+ # ## Patrol
286
+ - prefer-custom-finder-over-find
287
+ - prefer-symbol-over-key
0 commit comments