Skip to content

Commit

Permalink
Merge pull request #46 from MuhammadEssam96/master
Browse files Browse the repository at this point in the history
Downgrade http_parser dep to 4.0.2
  • Loading branch information
rodion-m authored Dec 2, 2024
2 parents 5eacc6f + 63b1d3d commit 01d7d2f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
7 changes: 0 additions & 7 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ linter:
rules:
public_member_api_docs: false

analyzer:
plugins:
- dart_code_metrics

dart_code_metrics:
anti-patterns:
- long-method
metrics:
cyclomatic-complexity: 20
maximum-nesting-level: 5
Expand All @@ -24,7 +18,6 @@ dart_code_metrics:
- no-equal-arguments:
severity: warning
- avoid-unused-parameters
- binary-expression-operand-order
- no-object-declaration
- prefer-trailing-comma:
exclude:
Expand Down
1 change: 0 additions & 1 deletion lib/src/default_retry_evaluator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class DefaultRetryEvaluator {

/// Returns true only if the response hasn't been cancelled
/// or got a bad status code.
// ignore: avoid-unused-parameters
FutureOr<bool> evaluate(DioException error, int attempt) {
bool shouldRetry;
if (error.type == DioExceptionType.badResponse) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:

dependencies:
dio: ^5.7.0
http_parser: ^4.1.0
http_parser: ^4.0.2
path: ^1.9.0

dev_dependencies:
Expand Down
2 changes: 2 additions & 0 deletions test/disable_retry_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@TestOn('vm')
library;

import 'package:dio/dio.dart';
import 'package:dio_smart_retry/dio_smart_retry.dart';
import 'package:test/test.dart';
Expand Down
2 changes: 2 additions & 0 deletions test/multipart_retry_tests.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@TestOn('vm')
library;

import 'package:dio/dio.dart';
import 'package:dio_smart_retry/dio_smart_retry.dart';
import 'package:test/test.dart';
Expand Down
2 changes: 2 additions & 0 deletions test/override_retryable_statuses_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@TestOn('vm')
library;

import 'package:dio/dio.dart';
import 'package:dio_smart_retry/dio_smart_retry.dart';
import 'package:test/test.dart';
Expand Down
2 changes: 2 additions & 0 deletions test/test_issue_2.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// https://github.com/rodion-m/dio_smart_retry/issues/2
@TestOn('vm')
library;


import 'package:dio/dio.dart';
import 'package:dio_smart_retry/dio_smart_retry.dart';
Expand Down

0 comments on commit 01d7d2f

Please sign in to comment.