Skip to content

Commit 52d0875

Browse files
yurii-prykhodko-solidAygistovYurii Prykhodko
authored
Update min Dart SDK to 3.5.0, update analyzer and custom_lint_builder dependencies (#199)
* Update versions * Update CHANGELOG.md * bump min SDK version --------- Co-authored-by: elijah mac <aygistov.ilya@gmail.com> Co-authored-by: Yurii Prykhodko <yuriiprykhodko@Yuriis-MacBook-Pro.local>
1 parent 05be4fa commit 52d0875

4 files changed

Lines changed: 17 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## 0.3.0
2+
23
- Added `exclude` parameter for the following lints:
34
- `avoid_returning_widgets`
45
- `avoid_unused_parameters`
@@ -9,6 +10,10 @@
910
- BREAKING CHANGE: Renamed `excludeNames` parameter to `exclude` for `function_lines_of_code` lint.
1011
- Fixed an issue with `prefer_early_retrun` for throw expression
1112
- `number_of_parameters` lint: added `copyWith` to the default exclude list.
13+
- Update dependencies:
14+
- Update min Dart SDK constraint to 3.5.0
15+
- Update `analyzer` dependency to 7.1.0
16+
- Update `custom_lint_builder` dependency to 0.7.1
1217

1318
## 0.2.3
1419

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
sdk: flutter
1111

1212
dev_dependencies:
13-
custom_lint: ^0.6.7
13+
custom_lint: ^0.7.1
1414
solid_lints:
1515
path: ../
16-
test: ^1.20.1
16+
test: ^1.25.14

lib/src/utils/types_utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ bool _isSubclassOfWidget(DartType? type) =>
147147
type is InterfaceType && type.allSupertypes.any(_isWidget);
148148

149149
// ignore: deprecated_member_use
150-
bool _isWidgetState(DartType? type) => type?.element2?.displayName == 'State';
150+
bool _isWidgetState(DartType? type) => type?.element?.displayName == 'State';
151151

152152
bool _isSubclassOfWidgetState(DartType? type) =>
153153
type is InterfaceType && type.allSupertypes.any(_isWidgetState);

pubspec.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ documentation: https://solid-software.github.io/solid_lints/docs/intro
88
topics: [lints, linter, lint, analysis, analyzer]
99

1010
environment:
11-
sdk: ">=3.0.0 <4.0.0"
11+
sdk: ">=3.5.0 <4.0.0"
1212

1313
dependencies:
14-
analyzer: ^6.7.0
15-
collection: ^1.17.2
16-
custom_lint_builder: ^0.6.7
17-
glob: ^2.1.2
18-
path: ^1.8.3
19-
yaml: ^3.1.2
14+
analyzer: ^7.1.0
15+
collection: ^1.19.0
16+
custom_lint_builder: ^0.7.1
17+
glob: ^2.1.3
18+
path: ^1.9.1
19+
yaml: ^3.1.3
2020

2121
dev_dependencies:
22-
args: ^2.4.2
22+
args: ^2.6.0
2323
# These packages are mandatory for some of tests
2424
flutter:
2525
sdk: flutter
26-
test: ^1.24.6
26+
test: ^1.25.14

0 commit comments

Comments
 (0)