Skip to content

Commit

Permalink
bump to analyzer 6.2.0 (#4697)
Browse files Browse the repository at this point in the history
  • Loading branch information
pq authored Aug 14, 2023
1 parent a1a069c commit 7f40f11
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
sdk: ^3.0.0

dependencies:
analyzer: ^6.1.0
analyzer: ^6.2.0
args: ^2.1.0
collection: ^1.15.0
http: ">=0.13.0 <2.0.0"
Expand Down
3 changes: 2 additions & 1 deletion test/rules/hash_and_equals_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ extension type E(Object o) {
}
''', [
// No lint.
// todo(pq): specify compilation error when it's reported.
error(
CompileTimeErrorCode.EXTENSION_TYPE_DECLARES_MEMBER_OF_OBJECT, 45, 2),
]);
}
}
2 changes: 1 addition & 1 deletion test/rules/library_private_types_in_public_api_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ extension type E(Object o) {
}
''', [
// No lint.
// todo(pq): add compilation error once reported
error(CompileTimeErrorCode.EXTENSION_TYPE_DECLARES_INSTANCE_FIELD, 47, 1),
]);
}

Expand Down
4 changes: 2 additions & 2 deletions test/rules/prefer_final_fields_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ extension type E(Object o) {
int _i = 0;
}
''', [
error(WarningCode.UNUSED_FIELD, 35, 2),
// No Lint.
// todo(pq): add compilation error once reported
error(CompileTimeErrorCode.EXTENSION_TYPE_DECLARES_INSTANCE_FIELD, 35, 2),
error(WarningCode.UNUSED_FIELD, 35, 2),
]);
}

Expand Down
2 changes: 1 addition & 1 deletion test/rules/public_member_api_docs_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extension type E(int i) {
}
''', [
// No lint.
// todo(pq): add compilation error once reported
error(CompileTimeErrorCode.EXTENSION_TYPE_DECLARES_INSTANCE_FIELD, 46, 1),
]);
}

Expand Down
2 changes: 1 addition & 1 deletion test/rules/sort_unnamed_constructors_first_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ extension type E(Object o) {
}
''', [
// No lint.
// todo(pq): Add `duplicate_constructor` diagnostic when it is reported.
error(CompileTimeErrorCode.DUPLICATE_CONSTRUCTOR_DEFAULT, 46, 1),
]);
}
}
2 changes: 1 addition & 1 deletion test/rules/unnecessary_constructor_name_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ extension type E(int i) {
}
''', [
// No lint.
// Specify `duplicate_constructor` diagnostic once reported.
error(CompileTimeErrorCode.DUPLICATE_CONSTRUCTOR_DEFAULT, 28, 5),
]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ extension type E(int i) {
int? _i;
}
''', [
error(WarningCode.UNUSED_FIELD, 33, 2),
// No lint.
// todo(pq): report invalid field diagnostic when it's reported.
error(CompileTimeErrorCode.EXTENSION_TYPE_DECLARES_INSTANCE_FIELD, 33, 2),
error(WarningCode.UNUSED_FIELD, 33, 2),
]);
}

Expand Down

0 comments on commit 7f40f11

Please sign in to comment.