Skip to content

Commit

Permalink
Merge pull request #25 from albertodev01/develop
Browse files Browse the repository at this point in the history
chore: Dependencies update
  • Loading branch information
albertodev01 authored Jul 3, 2023
2 parents 374cf34 + c4cddef commit 9328bf4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 55 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/fraction_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: dart format --set-exit-if-changed .

- name: Analyze
run: dart analyze --fatal-infos --fatal-warnings && dart run dart_code_metrics:metrics analyze lib test
run: dart analyze --fatal-infos --fatal-warnings

- name: Run tests
run: dart pub global activate coverage && dart pub global run coverage:test_with_coverage
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
run: dart format --set-exit-if-changed .

- name: Analyze
run: dart analyze --fatal-infos --fatal-warnings && dart run dart_code_metrics:metrics analyze lib test
run: dart analyze --fatal-infos --fatal-warnings

- name: Run tests
run: dart test
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 5.0.1
- Dependencies update

## 5.0.0
- **BREAKING**: `Rational`, `Fraction` and `MixedFraction` types have the `base` modifier.
- Updated Dart SDK constraints to `^3.0.0`
Expand Down
47 changes: 0 additions & 47 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,6 @@ analyzer:
strict-casts: true
strict-inference: true
strict-raw-types: true
plugins:
- dart_code_metrics

dart_code_metrics:
anti-patterns:
- long-parameter-list
metrics:
cyclomatic-complexity: 20
number-of-parameters: 6
maximum-nesting: 5
metrics-exclude:
- example/test/**
- test/**
rules:
- avoid-cascade-after-if-null
- avoid-collection-methods-with-unrelated-types
- avoid-double-slash-imports
- avoid-duplicate-exports
- avoid-dynamic
- avoid-global-state
- avoid-ignoring-return-values
- avoid-missing-enum-constant-in-map
- avoid-nested-conditional-expressions
- avoid-throw-in-catch-block
- avoid-unnecessary-type-assertions
- avoid-unnecessary-type-casts
- avoid-unnecessary-conditionals
- avoid-unrelated-type-assertions
- avoid-unused-parameters
- binary-expression-operand-order
- double-literal-format
- missing-test-assertion
- newline-before-return
- no-boolean-literal-compare
- no-equal-then-else
- no-empty-block
- no-object-declaration
- prefer-async-await
- prefer-correct-type-name
- prefer-enums-by-name
- prefer-first
- prefer-immediate-return
- prefer-last
- prefer-trailing-comma
rules-exclude:
- example/test/**
- test/**

# All lint rules: https://dart-lang.github.io/linter/lints/options/options.html
linter:
Expand Down
3 changes: 3 additions & 0 deletions example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.0.7
- Updated dependencies

## 1.0.6
- Updated Dart SDK constraints to `^3.0.0`
- Updated `analysis_options.yaml` file
Expand Down
5 changes: 2 additions & 3 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fraction_example
description: A Dart CLI application that uses the API of the 'fraction' package.
version: 1.0.6
version: 1.0.7
repository: https://github.com/albertodev01/fraction/tree/master/example
homepage: https://fluttercompletereference.com/
publish_to: none
Expand All @@ -13,5 +13,4 @@ dependencies:
path: ../

dev_dependencies:
dart_code_metrics: ^5.7.3
test: ^1.24.2
test: ^1.24.4
5 changes: 2 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: fraction
description: A package that helps you work with fractions and mixed fractions.
version: 5.0.0
version: 5.0.1
repository: https://github.com/albertodev01/fraction
homepage: https://fluttercompletereference.com/

environment:
sdk: ^3.0.0

dev_dependencies:
dart_code_metrics: ^5.7.3
test: ^1.24.2
test: ^1.24.4

0 comments on commit 9328bf4

Please sign in to comment.