Skip to content

Commit

Permalink
feat: Updates for release 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mpkander committed Oct 21, 2024
1 parent 2aa465a commit edaf172
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 0.2.0

* "Factory" and "Buider" for `prefer-correct-callback-field-name`
* Exclude tests for `avoid-long-functions`
* Skip checked fields for `avoid-non-null-assertion`
* `prefer-correct-identifier-length` exceptions

## 0.1.1

### Removed
Expand Down
8 changes: 6 additions & 2 deletions lib/dart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ dart_code_metrics:
max-length: 80
ignored-names:
- build
exclude:
- test/**
- avoid-long-parameter-list:
ignore-optional: true
max-amount: 5
Expand All @@ -68,7 +70,8 @@ dart_code_metrics:
- avoid-nested-streams-and-futures
- avoid-nested-switch-expressions
- avoid-nested-switches
- avoid-non-null-assertion
- avoid-non-null-assertion:
skip-checked-fields: true
- avoid-nullable-interpolation
- avoid-nullable-parameters-with-default-values
- avoid-nullable-tostring
Expand Down Expand Up @@ -160,8 +163,9 @@ dart_code_metrics:
- prefer-addition-subtraction-assignments
- prefer-any-or-every
- prefer-correct-callback-field-name:
name-pattern: ^on[A-Z]+
name-pattern: "(^on[A-Z]+)|(^[a-zA-z]+Factory$)|(^[a-zA-z]+Builder$)|(^builder$)"
- prefer-correct-identifier-length:
exceptions: ["a", "b", "i", "j", "k"]
max-identifier-length: 30
min-identifier-length: 2
- prefer-correct-stream-return-type
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: surf_dcm_presets
version: 0.1.1
version: 0.2.0
description: Predefined presets for Dart Code Metrics.
repository: https://github.com/surfstudio/surf-dcm-presets

Expand Down

0 comments on commit edaf172

Please sign in to comment.