@@ -6,6 +6,7 @@ dart_code_metrics:
6
6
- avoid-accessing-collections-by-constant-index
7
7
- avoid-accessing-other-classes-private-members
8
8
- avoid-adjacent-strings
9
+ - avoid-assigning-to-static-field
9
10
- avoid-assignments-as-conditions
10
11
- avoid-async-call-in-sync-function
11
12
# - avoid-banned-annotations # * OK, we just don't have global config
@@ -29,7 +30,7 @@ dart_code_metrics:
29
30
- avoid-double-slash-imports
30
31
- avoid-duplicate-cascades
31
32
- avoid-duplicate-collection-elements
32
- # - avoid-duplicate-constant-values # ! check later
33
+ # - avoid-duplicate-constant-values # ! check later, does not work for us for 2+ parameters as expected
33
34
- avoid-duplicate-exports
34
35
- avoid-duplicate-initializers
35
36
- avoid-duplicate-map-keys
@@ -52,12 +53,15 @@ dart_code_metrics:
52
53
- avoid-function-type-in-records
53
54
- avoid-future-tostring
54
55
- avoid-generics-shadowing
56
+ - avoid-getter-prefix :
57
+ prefix : " ^get"
55
58
- avoid-global-state
56
59
# - avoid-high-cyclomatic-complexity # For now we catch this on CR.
57
60
- avoid-identical-exception-handling-blocks
58
61
- avoid-ignoring-return-values :
59
62
exclude :
60
63
- test/**
64
+ - avoid-implicitly-nullable-extension-types
61
65
- avoid-importing-entrypoint-exports
62
66
- avoid-incorrect-uri
63
67
- avoid-inferrable-type-arguments :
@@ -98,6 +102,7 @@ dart_code_metrics:
98
102
exclude :
99
103
- test/**
100
104
# - avoid-non-empty-constructor-bodies # way too pedantic
105
+ - avoid-non-final-exception-class-fields
101
106
- avoid-non-null-assertion :
102
107
skip-checked-fields : true
103
108
exclude :
@@ -147,6 +152,9 @@ dart_code_metrics:
147
152
- avoid-unnecessary-call
148
153
- avoid-unnecessary-collections
149
154
- avoid-unnecessary-conditionals
155
+ - avoid-unnecessary-constructor
156
+ - avoid-unnecessary-enum-arguments
157
+ - avoid-unnecessary-enum-prefix
150
158
- avoid-unnecessary-extends
151
159
- avoid-unnecessary-futures
152
160
# - avoid-unnecessary-getter # it's ok to have getter for private field
@@ -266,9 +274,9 @@ dart_code_metrics:
266
274
- prefer-async-await
267
275
- prefer-boolean-prefixes :
268
276
ignored-names :
269
- - value
270
- - result
271
- - " _"
277
+ - value
278
+ - result
279
+ - " _"
272
280
prefixes :
273
281
# Defaults
274
282
- is
@@ -293,6 +301,7 @@ dart_code_metrics:
293
301
- prefer-bytes-builder
294
302
- prefer-commenting-analyzer-ignores
295
303
- prefer-conditional-expressions
304
+ - prefer-contains
296
305
- prefer-correct-callback-field-name
297
306
- prefer-correct-error-name :
298
307
allowed-names :
@@ -433,7 +442,7 @@ dart_code_metrics:
433
442
434
443
# ## Bloc
435
444
- avoid-bloc-public-methods
436
- # - avoid-cubits
445
+ # - avoid-cubits # we use cubits in some places
437
446
- avoid-duplicate-bloc-event-handlers
438
447
# - avoid-empty-build-when
439
448
# - avoid-passing-bloc-to-bloc
@@ -519,5 +528,6 @@ dart_code_metrics:
519
528
- prefer-caret-version-syntax
520
529
# - prefer-correct-package-name # * OK, we just don't have global config
521
530
- prefer-correct-screenshots
531
+ # - prefer-pinned-version-syntax # we use prefer-caret-version-syntax
522
532
- prefer-publish-to-none
523
533
- prefer-semver-version
0 commit comments