Skip to content

Commit 09ea71f

Browse files
committed
Adhere to DCM 1.28.1
1 parent 41a2ffe commit 09ea71f

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

packages/netglade_analysis/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 17.0.0
2+
- Adhere to DCM 1.28.1
3+
- Add avoid-recursive-tostring
4+
- Add avoid-enum-values-by-index
5+
- Add avoid-constant-assert-conditions
6+
- Add avoid-nested-assignments
7+
- Add avoid-unnecessary-compare-to
8+
- Add prefer-digit-separators
9+
- Add avoid-unnecessary-digit-separators
10+
- Add avoid-inconsistent-digit-separators
11+
- Add pass-existing-future-to-future-builder
12+
- Add pass-existing-stream-to-stream-builder
13+
- Add prefer-compute-over-isolate-run
14+
115
## 16.1.0
216
- Setup DCM Metrics
317

packages/netglade_analysis/lib/dcm.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ dart_code_metrics:
2727
- avoid-complex-arithmetic-expressions
2828
- avoid-complex-loop-conditions
2929
- avoid-conditions-with-boolean-literals
30+
- avoid-constant-assert-conditions
3031
# - avoid-continue # we prefer condition guards
3132
- avoid-contradictory-expressions
3233
- avoid-declaring-call-method
@@ -48,6 +49,7 @@ dart_code_metrics:
4849
include-methods:
4950
- blocTest
5051
- blocPresentationTest
52+
- avoid-enum-values-by-index
5153
- avoid-equal-expressions
5254
- avoid-excessive-expressions
5355
- avoid-explicit-pattern-field-name
@@ -68,6 +70,7 @@ dart_code_metrics:
6870
- test/**
6971
- avoid-implicitly-nullable-extension-types
7072
- avoid-importing-entrypoint-exports
73+
- avoid-inconsistent-digit-separators
7174
- avoid-incorrect-uri
7275
- avoid-inferrable-type-arguments:
7376
ignored-invocations:
@@ -96,6 +99,7 @@ dart_code_metrics:
9699
# - avoid-mutating-parameters # we use ValueNotifier etc.
97100
# - avoid-negated-conditions # sometimes it might be better
98101
- avoid-negations-in-equality-checks
102+
- avoid-nested-assignments
99103
- avoid-nested-conditional-expressions:
100104
acceptable-level: 2
101105
- avoid-nested-extension-types
@@ -128,6 +132,7 @@ dart_code_metrics:
128132
- avoid-passing-self-as-argument
129133
- avoid-positional-record-field-access
130134
- avoid-recursive-calls
135+
- avoid-recursive-tostring
131136
- avoid-redundant-async
132137
- avoid-redundant-else
133138
- avoid-redundant-positional-field-name
@@ -161,9 +166,11 @@ dart_code_metrics:
161166
- avoid-unnecessary-block
162167
- avoid-unnecessary-call
163168
- avoid-unnecessary-collections
169+
- avoid-unnecessary-compare-to
164170
- avoid-unnecessary-conditionals
165171
- avoid-unnecessary-constructor
166172
- avoid-unnecessary-continue
173+
- avoid-unnecessary-digit-separators
167174
- avoid-unnecessary-enum-arguments
168175
- avoid-unnecessary-enum-prefix
169176
- avoid-unnecessary-extends
@@ -336,6 +343,7 @@ dart_code_metrics:
336343
# - prefer-correct-throws # for now hard to maintain
337344
- prefer-correct-type-name
338345
- prefer-declaring-const-constructor
346+
- prefer-digit-separators
339347
- prefer-early-return
340348
- prefer-enums-by-name
341349
- prefer-expect-later
@@ -437,9 +445,12 @@ dart_code_metrics:
437445
- check-for-equals-in-render-object-setters
438446
- consistent-update-render-object
439447
- dispose-fields
448+
- pass-existing-future-to-future-builder
449+
- pass-existing-stream-to-stream-builder
440450
- prefer-action-button-tooltip
441451
- prefer-align-over-container
442452
- prefer-center-over-align
453+
- prefer-compute-over-isolate-run
443454
- prefer-const-border-radius
444455
- prefer-container:
445456
min-sequence: 2

packages/netglade_analysis/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: netglade_analysis
2-
version: 16.1.0
2+
version: 17.0.0
33
description: Lint rules for Dart and Flutter used internally at netglade.
44
repository: https://github.com/netglade/flutter_core/tree/main/packages/netglade_analysis
55
issue_tracker: https://github.com/netglade/flutter_core/issues

0 commit comments

Comments
 (0)