bump to analyzer 6.2.0 (dart-lang/linter#4697)

This commit is contained in:
Phil Quitslund
2023-08-14 13:56:33 -07:00
committed by GitHub
parent e7519b9920
commit e276414f83
8 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -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"
+2 -1
View File
@@ -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),
]);
}
}
@@ -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),
]);
}
+2 -2
View File
@@ -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),
]);
}
+1 -1
View File
@@ -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),
]);
}
@@ -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),
]);
}
}
@@ -69,7 +69,7 @@ extension type E(int i) {
}
''', [
// No lint.
// Specify `duplicate_constructor` diagnostic once reported.
error(CompileTimeErrorCode.DUPLICATE_CONSTRUCTOR_DEFAULT, 28, 5),
]);
}
@@ -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),
]);
}