Skip to content
Merged
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## 0.3.0

- Added `exclude` parameter for the following lints:
- `avoid_returning_widgets`
- `avoid_unused_parameters`
Expand All @@ -9,6 +10,10 @@
- BREAKING CHANGE: Renamed `excludeNames` parameter to `exclude` for `function_lines_of_code` lint.
- Fixed an issue with `prefer_early_retrun` for throw expression
- `number_of_parameters` lint: added `copyWith` to the default exclude list.
- Update dependencies:
- Update min Dart SDK constraint to 3.5.0
- 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
18 changes: 9 additions & 9 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ documentation: https://solid-software.github.io/solid_lints/docs/intro
topics: [lints, linter, lint, analysis, analyzer]

environment:
sdk: ">=3.0.0 <4.0.0"
sdk: ">=3.5.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