Skip to content

Commit 7eb9777

Browse files
committed
Update DCM
1 parent f1f62eb commit 7eb9777

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 6.0.0
2+
- Enable DCM rule prefer-correct-error-name with `e` for error
3+
- Disable DCM rule banned-dependencies since we do not configure it (and add comment so we know it's ok)
4+
- Adhere to DCM 1.11.0:
5+
- TODO...
6+
17
## 5.0.0
28
- Adhere to DCM 1.10.0:
39
- Add avoid-accessing-collections-by-constant-index

lib/dcm.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ dart_code_metrics:
66
- avoid-accessing-collections-by-constant-index
77
- avoid-accessing-other-classes-private-members
88
- avoid-async-call-in-sync-function
9-
# - avoid-banned-file-names
10-
# - avoid-banned-imports
11-
# - avoid-banned-types
9+
# - avoid-banned-file-names # * OK, we just don't have global config
10+
# - avoid-banned-imports # * OK, we just don't have global config
11+
# - avoid-banned-types # * OK, we just don't have global config
1212
# - avoid-barrel-files # for now we use them
1313
- avoid-bottom-type-in-patterns
1414
- avoid-bottom-type-in-records
@@ -185,7 +185,9 @@ dart_code_metrics:
185185
- prefer-bytes-builder
186186
- prefer-commenting-analyzer-ignores
187187
- prefer-conditional-expressions
188-
# - prefer-correct-error-name # we use `e`
188+
- prefer-correct-error-name:
189+
allowed-names:
190+
- e
189191
- prefer-correct-for-loop-increment
190192
- prefer-correct-future-return-type
191193
# - prefer-correct-identifier-length # way too pedantic
@@ -326,7 +328,7 @@ dart_code_metrics:
326328
### Pubspec
327329
- avoid-any-version
328330
# - avoid-dependency-overrides
329-
- banned-dependencies
331+
# - banned-dependencies # * OK, we just don't have global config
330332
- prefer-caret-version-syntax
331333
# - prefer-correct-package-name
332334
- prefer-correct-screenshots

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: 5.0.0
2+
version: 6.0.0
33
description: Lint rules for Dart and Flutter used internally at netglade.
44
repository: https://github.com/netglade/netglade_analysis
55
issue_tracker: https://github.com/netglade/netglade_analysis/issues

0 commit comments

Comments
 (0)