Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/src/utils/types_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
16 changes: 8 additions & 8 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This raises min Dart SDK version constraint to 3.5
We should reflect that in pubspec and CHANGELOG
image