From c6b8caeea335f58a72be6affab288cdde8fb39f6 Mon Sep 17 00:00:00 2001 From: "duanweiwei1982@gmail.com" Date: Fri, 2 Aug 2024 11:15:26 +0800 Subject: [PATCH] update lints to 4.0.0. --- analysis_options.yaml | 4 +++- pubspec.yaml | 2 +- test/core/room_e2e_test.dart | 1 + test/core/signal_client_test.dart | 1 + test/mock/e2e_container_test.dart | 1 + 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index cadb74d06..f50fcf018 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -24,11 +24,13 @@ # https://pub.dev/packages/flutter_lints -include: package:flutter_lints/flutter.yaml +include: package:lints/recommended.yaml analyzer: errors: constant_identifier_names: ignore + no_wildcard_variable_uses: ignore + use_super_parameters: ignore # # Enforce stricter type-checking # https://dart.dev/guides/language/analysis-options#enabling-additional-type-checks diff --git a/pubspec.yaml b/pubspec.yaml index 78c31af73..899240fbe 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -48,7 +48,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.1 + lints: ^4.0.0 mockito: ^5.3.2 import_sorter: ^4.6.0 yaml: ^3.1.2 diff --git a/test/core/room_e2e_test.dart b/test/core/room_e2e_test.dart index 64bf4872f..caf4def7a 100644 --- a/test/core/room_e2e_test.dart +++ b/test/core/room_e2e_test.dart @@ -13,6 +13,7 @@ // limitations under the License. @Timeout(Duration(seconds: 5)) +library; import 'package:flutter_test/flutter_test.dart'; diff --git a/test/core/signal_client_test.dart b/test/core/signal_client_test.dart index ee2dac0f7..f345958ad 100644 --- a/test/core/signal_client_test.dart +++ b/test/core/signal_client_test.dart @@ -13,6 +13,7 @@ // limitations under the License. @Timeout(Duration(seconds: 5)) +library; import 'package:flutter_test/flutter_test.dart'; import 'package:protobuf/protobuf.dart'; diff --git a/test/mock/e2e_container_test.dart b/test/mock/e2e_container_test.dart index abdce7732..8f6f37ebb 100644 --- a/test/mock/e2e_container_test.dart +++ b/test/mock/e2e_container_test.dart @@ -13,6 +13,7 @@ // limitations under the License. @Timeout(Duration(seconds: 5)) +library; import 'package:flutter_test/flutter_test.dart';