diff --git a/CHANGELOG.md b/CHANGELOG.md index 566110ad..37184850 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,10 @@ - `no_empty_bloc` - `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 +- Fixed an issue with `prefer_early_retrun` for throw expression - `number_of_parameters` lint: added `copyWith` to the default exclude list. +- Update `analyzer` dependency to 7.1.0 +- Update `custom_lint_builder` dependency to 0.7.1 ## 0.2.3 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