bump to linter 1.25.0

Change-Id: Ie709139029d1f58cef4807708ff054acb0fba6cb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247363
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
pq 2022-06-07 17:59:29 +00:00 committed by Commit Bot
parent 3e10d8c833
commit a362115c60
4 changed files with 22 additions and 15 deletions

View file

@ -118,28 +118,33 @@ them, you must set the lower bound on the SDK constraint for your package to
#### Linter #### Linter
Updated the Linter to `1.24.0`, which includes changes that Updated the Linter to `1.25.0`, which includes changes that
- fixes `prefer_final_parameters` to support super parameters. - add new lint: `discarded_futures`.
- adds new lint: `unnecessary_to_list_in_spreads`. - improve message and highlight range for `no_duplicate_case_values`
- fixes `unawaited_futures` to handle string interpolated - improve performance for `lines_longer_than_80_chars`,
`prefer_const_constructors_in_immutables`, and
`prefer_initializing_formals`.
- fix `prefer_final_parameters` to support super parameters.
- add new lint: `unnecessary_to_list_in_spreads`.
- fix `unawaited_futures` to handle string interpolated
futures. futures.
- updates `use_colored_box` to not flag nullable colors, - update `use_colored_box` to not flag nullable colors,
- adds new lint: - add new lint:
`unnecessary_null_aware_operator_on_extension_on_nullable`. `unnecessary_null_aware_operator_on_extension_on_nullable`.
- fixes `no_leading_underscores_for_local_identifiers` - fix `no_leading_underscores_for_local_identifiers`
to lint local function declarations. to lint local function declarations.
- fixes `avoid_init_to_null` to correctly handle super - fix `avoid_init_to_null` to correctly handle super
initializing defaults that are non-null. initializing defaults that are non-null.
- updates `no_leading_underscores_for_local_identifiers` - update `no_leading_underscores_for_local_identifiers`
to allow identifiers with just underscores. to allow identifiers with just underscores.
- fixes `flutter_style_todos` to support usernames that - fix `flutter_style_todos` to support usernames that
start with a digit. start with a digit.
- updates `require_trailing_commas` to handle functions - update `require_trailing_commas` to handle functions
in asserts and multi-line strings. in asserts and multi-line strings.
- updates `unsafe_html` to allow assignments to - update `unsafe_html` to allow assignments to
`img.src`. `img.src`.
- fixes `unnecessary_null_checks` to properly handle map - fix `unnecessary_null_checks` to properly handle map
literal entries. literal entries.
#### Pub #### Pub

2
DEPS
View file

@ -120,7 +120,7 @@ vars = {
"intl_rev": "9145f308f1458f37630a1ffce3b7d3b471ebbc56", "intl_rev": "9145f308f1458f37630a1ffce3b7d3b471ebbc56",
"jinja2_rev": "2222b31554f03e62600cd7e383376a7c187967a1", "jinja2_rev": "2222b31554f03e62600cd7e383376a7c187967a1",
"json_rpc_2_rev": "2de9a1f9821807fa2c85fd48e2f70b9cbcddcb67", "json_rpc_2_rev": "2de9a1f9821807fa2c85fd48e2f70b9cbcddcb67",
"linter_rev": "a8529c6692922b45bc287543b355c90d7b1286d3", # 1.24.0 "linter_rev": "1ddc70948d94f2449fec69a95e3ceb7b6b6c8348", # 1.25.0
"lints_rev": "8294e5648ab49474541527e2911e72e4c5aefe55", "lints_rev": "8294e5648ab49474541527e2911e72e4c5aefe55",
"logging_rev": "f6979e3bc3b6e1847a08335b7eb6304e18986195", "logging_rev": "f6979e3bc3b6e1847a08335b7eb6304e18986195",
"markdown_rev": "e3f4bd28c9e61b522f75f291d4d6cfcfeccd83ee", # 5.0.0 "markdown_rev": "e3f4bd28c9e61b522f75f291d4d6cfcfeccd83ee", # 5.0.0

View file

@ -25,7 +25,7 @@ class RemoveDuplicateCase extends CorrectionProducer {
@override @override
Future<void> compute(ChangeBuilder builder) async { Future<void> compute(ChangeBuilder builder) async {
var node = coveredNode; var node = coveredNode?.parent;
if (node is! SwitchCase) { if (node is! SwitchCase) {
return; return;
} }

View file

@ -1653,6 +1653,8 @@ LintCode.diagnostic_describe_all_properties:
status: hasFix status: hasFix
LintCode.directives_ordering: LintCode.directives_ordering:
status: hasFix status: hasFix
LintCode.discarded_futures:
status: needsEvaluation
LintCode.do_not_use_environment: LintCode.do_not_use_environment:
status: needsEvaluation status: needsEvaluation
LintCode.empty_catches: LintCode.empty_catches: