From ca51c1a1a48333c28d397e3499ab28dd5de5e362 Mon Sep 17 00:00:00 2001 From: elijah mac Date: Fri, 31 Jan 2025 18:11:54 +0200 Subject: [PATCH 1/2] Update versions --- example/pubspec.yaml | 4 ++-- lib/src/utils/types_utils.dart | 2 +- pubspec.yaml | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 64a0b9ec..05ebfa22 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: sdk: flutter dev_dependencies: - custom_lint: ^0.6.7 + custom_lint: ^0.7.1 solid_lints: path: ../ - test: ^1.20.1 + test: ^1.25.14 diff --git a/lib/src/utils/types_utils.dart b/lib/src/utils/types_utils.dart index f69b246f..bdea71e5 100644 --- a/lib/src/utils/types_utils.dart +++ b/lib/src/utils/types_utils.dart @@ -147,7 +147,7 @@ bool _isSubclassOfWidget(DartType? type) => type is InterfaceType && type.allSupertypes.any(_isWidget); // ignore: deprecated_member_use -bool _isWidgetState(DartType? type) => type?.element2?.displayName == 'State'; +bool _isWidgetState(DartType? type) => type?.element?.displayName == 'State'; bool _isSubclassOfWidgetState(DartType? type) => type is InterfaceType && type.allSupertypes.any(_isWidgetState); diff --git a/pubspec.yaml b/pubspec.yaml index d64aa82c..6cfb3e61 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,16 +11,16 @@ environment: sdk: ">=3.0.0 <4.0.0" dependencies: - analyzer: ^6.7.0 - collection: ^1.17.2 - custom_lint_builder: ^0.6.7 - glob: ^2.1.2 - path: ^1.8.3 - yaml: ^3.1.2 + analyzer: ^7.1.0 + collection: ^1.19.0 + custom_lint_builder: ^0.7.1 + glob: ^2.1.3 + path: ^1.9.1 + yaml: ^3.1.3 dev_dependencies: - args: ^2.4.2 + args: ^2.6.0 # These packages are mandatory for some of tests flutter: sdk: flutter - test: ^1.24.6 + test: ^1.25.14 From 2fa288a94c9b323532ff88be360cb8b81b77179b Mon Sep 17 00:00:00 2001 From: elijah mac Date: Fri, 31 Jan 2025 18:36:23 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5392d670..ee15c455 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ - `number_of_parameters` - BREAKING CHANGE: Renamed `excludeNames` parameter to `exclude` for `function_lines_of_code` lint. - Fixed an issue with `prefer_early_retrun` for throw expression +- Update `analyzer` dependency to 7.1.0 +- Update `custom_lint_builder` dependency to 0.7.1 ## 0.2.3