From 28035a1ccd338323cfdfdf3a470955a5bca238ed Mon Sep 17 00:00:00 2001 From: Sergey Penkovsky Date: Tue, 13 May 2025 23:12:17 +0300 Subject: [PATCH] fix warnings --- cherrypick/.gitignore | 3 +++ cherrypick/example/bin/main.dart | 2 ++ cherrypick/pubspec.yaml | 6 ++---- cherrypick_flutter/pubspec.yaml | 3 ++- melos.yaml | 10 ++++++---- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/cherrypick/.gitignore b/cherrypick/.gitignore index dbef116..16cc011 100644 --- a/cherrypick/.gitignore +++ b/cherrypick/.gitignore @@ -19,3 +19,6 @@ doc/api/ *.js_ *.js.deps *.js.map + +# FVM Version Cache +.fvm/ \ No newline at end of file diff --git a/cherrypick/example/bin/main.dart b/cherrypick/example/bin/main.dart index f9251c6..5da6cb9 100644 --- a/cherrypick/example/bin/main.dart +++ b/cherrypick/example/bin/main.dart @@ -109,6 +109,7 @@ abstract class ApiClient { } class ApiClientMock implements ApiClient { + @override Future sendRequest({ @required String? url, String? token, @@ -120,6 +121,7 @@ class ApiClientMock implements ApiClient { } class ApiClientImpl implements ApiClient { + @override Future sendRequest({ @required String? url, String? token, diff --git a/cherrypick/pubspec.yaml b/cherrypick/pubspec.yaml index 3e0545e..59ba711 100644 --- a/cherrypick/pubspec.yaml +++ b/cherrypick/pubspec.yaml @@ -13,9 +13,7 @@ dependencies: meta: ^1.3.0 dev_dependencies: - #pedantic: ^1.11.0 - - test: ^1.17.2 + lints: ^5.0.0 + test: ^1.25.15 mockito: ^5.0.6 - lints: ^2.1.0 diff --git a/cherrypick_flutter/pubspec.yaml b/cherrypick_flutter/pubspec.yaml index 2cd3d97..987685f 100644 --- a/cherrypick_flutter/pubspec.yaml +++ b/cherrypick_flutter/pubspec.yaml @@ -18,7 +18,8 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^4.0.0 + flutter_lints: ^5.0.0 + test: ^1.25.7 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/melos.yaml b/melos.yaml index b0165cf..dfb13a0 100644 --- a/melos.yaml +++ b/melos.yaml @@ -8,8 +8,10 @@ packages: scripts: analyze: - run: | - flutter analyze + exec: dart analyze + format: - run: | - flutter format \ No newline at end of file + exec: dart format + + test: + exec: dart test ./test \ No newline at end of file