linter 1.26.0

Change-Id: I0a20fd9f26933908f6c40cb1019fca45b9a88299
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250949
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
This commit is contained in:
pq 2022-07-11 20:00:21 +00:00 committed by Commit Bot
parent 4e75f872a8
commit 3efd79b4b5
4 changed files with 24 additions and 2 deletions

View file

@ -57,6 +57,27 @@ the new implementation carries a few subtle changes in behavior:
collected earlier than they were before
(see issue [#36983](https://github.com/dart-lang/sdk/issues/36983) for details).
### Tools
#### Dart command line
#### Linter
Updated the Linter to `1.26.0`, which includes changes that
- add new lint: `combinators_ordering`.
- fix `use_colored_box` and `use_decorated_box` to not over-report on containers without
a child.
- fix `unnecessary_parenthesis` false positives on a map-or-set literal at the start of
an expression statement.
- fix `prefer_final_locals` false positives reporting on fields.
- fix `unnecessary_overrides` to allow overrides on `@Protected`members.
- fix `avoid_multiple_declarations_per_line` false positives in `for` statements.
- fix `prefer_final_locals` false positives on declaration lists with at least one
non-final variable.
- fix`use_build_context_synchronously` to handle `await`s in `if` conditions.
## 2.18.0
### Language

2
DEPS
View file

@ -122,7 +122,7 @@ vars = {
"intl_rev": "e9b573679de5e703d89a242b9dca331c772979ef",
"jinja2_rev": "2222b31554f03e62600cd7e383376a7c187967a1",
"json_rpc_2_rev": "805e6536dd961d66f6b8cd46d8f3e61774f957c9",
"linter_rev": "1ddc70948d94f2449fec69a95e3ceb7b6b6c8348", # manually rev'd
"linter_rev": "b4afc10055f3009478da1eac1827f9fef42c3759", # 1.26.0
"lints_rev": "8294e5648ab49474541527e2911e72e4c5aefe55",
"logging_rev": "f6979e3bc3b6e1847a08335b7eb6304e18986195",
"markdown_rev": "e3f4bd28c9e61b522f75f291d4d6cfcfeccd83ee", # b/236358256

View file

@ -1628,6 +1628,8 @@ LintCode.cast_nullable_to_non_nullable:
status: needsEvaluation
LintCode.close_sinks:
status: needsEvaluation
LintCode.combinators_ordering:
status: needsEvaluation
LintCode.comment_references:
status: needsEvaluation
LintCode.conditional_uri_does_not_exist:

View file

@ -339,7 +339,6 @@ linter:
expect(error.location.file, testFile.path);
expect(error.severity, AnalysisErrorSeverity.INFO);
expect(error.type, AnalysisErrorType.LINT);
expect(error.message, lint.description);
}
Future<void> test_notInAnalysisRoot() async {