bump linter to 0.1.118

Change-Id: Id8277810091fbc3431131cb4182532c335d82773
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/157476
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
pq 2020-08-06 23:11:09 +00:00 committed by Phil Quitslund
parent eaf94c5897
commit a2fdeaaa53
3 changed files with 12 additions and 38 deletions

View file

@ -99,8 +99,18 @@
#### Linter
Updated the Linter to `0.1.117`, which includes:
Updated the Linter to `0.1.118`, which includes:
* New lint: `unnecessary_nullable_for_final_variable_declarations`.
* Fixed NPE in `prefer_asserts_in_initializer_lists`.
* Fixed range error in `unnecessary_string_escapes`.
* `unsafe_html` updated to support unique error codes.
* Updates to `diagnostic_describe_all_properties` to check for `Diagnosticable`s (not `DiagnosticableMixin`s).
* New lint: `use_late`.
* Fixed `unnecessary_lambdas` to respect deferred imports.
* Updated `public_member_api_docs` to check mixins.
* Updated `unnecessary_statements` to skip `as` expressions.
* Fixed `prefer_relative_imports` to work with path dependencies.
* New lint: `do_not_use_environment`.
* New lint: `exhaustive_cases`.
* New lint: `no_default_cases` (experimental).

2
DEPS
View file

@ -113,7 +113,7 @@ vars = {
"intl_tag": "0.16.1",
"jinja2_rev": "2222b31554f03e62600cd7e383376a7c187967a1",
"json_rpc_2_rev": "d589e635d8ccb7cda6a804bd571f88abbabab146",
"linter_tag": "0.1.117",
"linter_tag": "0.1.118",
"logging_rev": "9561ba016ae607747ae69b846c0e10958ca58ed4",
"markupsafe_rev": "8f45f5cfa0009d2a70589bcda0349b8cb2b72783",
"markdown_rev": "acaddfe74217f62498b5cf0cf5429efa6a700be3",

View file

@ -55,23 +55,6 @@ class A {
''');
}
Future<void> test_methodInvocation_twoCharactersOperator() async {
await resolveTestUnit('''
class A {
void foo() {
this?.foo();
}
}
''');
await assertHasFix('''
class A {
void foo() {
foo();
}
}
''');
}
Future<void> test_propertyAccess_oneCharacterOperator() async {
await resolveTestUnit('''
class A {
@ -88,25 +71,6 @@ class A {
x = 2;
}
}
''');
}
Future<void> test_propertyAccess_twoCharactersOperator() async {
await resolveTestUnit('''
class A {
int x;
void foo() {
this?.x = 2;
}
}
''');
await assertHasFix('''
class A {
int x;
void foo() {
x = 2;
}
}
''');
}
}