linter 1.2.1

Change-Id: I4d2ccc0bcc4128d60d76ea5119594d946fec35c3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192483
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
This commit is contained in:
pq 2021-03-23 15:01:16 +00:00 committed by commit-bot@chromium.org
parent ccb8643e0c
commit 706758a142
3 changed files with 8 additions and 4 deletions

View file

@ -24,8 +24,12 @@
#### Linter
Updated the Linter to `1.1.0`, which includes:
Updated the Linter to `1.2.1`, which includes:
- improvements to `iterable_contains_unrelated_type` to better support `List`
content checks.
- fixes to `camel_case_types` and `prefer_mixin` to support non-function
type aliases.
- fixed `prefer_mixin` to properly make exceptions for `dart.collection`
legacy mixins.
- new lint: `use_build_context_synchronously` (experimental).

2
DEPS
View file

@ -119,7 +119,7 @@ vars = {
"intl_tag": "0.17.0-nullsafety",
"jinja2_rev": "2222b31554f03e62600cd7e383376a7c187967a1",
"json_rpc_2_rev": "b8dfe403fd8528fd14399dee3a6527b55802dd4d",
"linter_tag": "1.1.0",
"linter_tag": "1.2.1",
"logging_rev": "e2f633b543ef89c54688554b15ca3d7e425b86a2",
"markupsafe_rev": "8f45f5cfa0009d2a70589bcda0349b8cb2b72783",
"markdown_rev": "9c4beaac96d8f008078e00b027915f81b665d2de",

View file

@ -1886,8 +1886,8 @@ class Wrong<T> {
expectedEndOffset: 14 /* parsing ends at synthetic ')' */);
FormalParameterList list = parser.parseFormalParameterList();
expectNotNullIfNoErrors(list);
listener.errors
.contains(expectedError(ParserErrorCode.EXPECTED_TOKEN, 14, 1));
listener
.assertErrors([expectedError(ScannerErrorCode.EXPECTED_TOKEN, 14, 1)]);
}
void test_missingConstFinalVarOrType_static() {