Skip to content

Commit ca52c30

Browse files
pqCommit Queue
authored andcommitted
linter 1.29.0
Downstream fixes: * flutter/flutter#113794 * flutter/plugins#6669 * flutter/engine#37321 * dart-archive/linter#3775 * dart-archive/linter#3776 * cl/482614222 * cl/482654980 * cl/482744309 * cl/485129394 * cl/485139323 * ... Upstream: * #50263 Change-Id: I259cb0c28464b1e513d9a1931b7c680a2a04a0a4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/264961 Commit-Queue: Phil Quitslund <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 289aa50 commit ca52c30

File tree

5 files changed

+51
-19
lines changed

5 files changed

+51
-19
lines changed

CHANGELOG.md

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,48 @@
161161

162162
#### Linter
163163

164-
Updated the Linter to `1.28.0`, which includes changes that
165-
164+
Updated the Linter to `1.29.0`, which includes changes that
165+
166+
- add new lint: `dangling_library_doc_comments`.
167+
- fix `no_leading_underscores_for_local_identifiers` to not report super formals
168+
as local variables.
169+
- fix `unnecessary_overrides` false negatives.
170+
- fix `cancel_subscriptions` for nullable fields.
171+
- add new lint: `collection_methods_unrelated_type`.
172+
- update `library_names` to support unnamed libraries.
173+
- fix `unnecessary_parenthesis` support for as-expressions.
174+
- fix `use_build_context_synchronously` to check for context property accesses.
175+
- fix false positive in `comment_references`.
176+
- improved unrelated type checks to handle enums and cascades.
177+
- fix `unnecessary_brace_in_string_interps` for `this` expressions .
178+
- update `use_build_context_synchronously` for `BuildContext.mounted`.
179+
- improve `flutter_style_todos` to handle more cases.
180+
- fix `use_build_context_synchronously` to check for `BuildContext`s in named
181+
expressions.
182+
- fix `exhaustive_cases` to check parenthesized expressions
183+
- improves performance for:
184+
- `avoid_null_checks_in_equality_operators`.
185+
- `join_return_with_statement`.
186+
- `recursive_getters`.
187+
- `unnecessary_lambdas`.
188+
- `diagnostic_describe_all_properties`.
189+
- `prefer_foreach`.
190+
- `avoid_escaping_inner_quotes`.
191+
- `cascade_invocations`.
192+
- `tighten_type_of_initializing_formals`.
193+
- `prefer_interpolation_to_compose_strings`.
194+
- `prefer_constructors_over_static_methods`.
195+
- `avoid_returning_null`.
196+
- `parameter_assignments`.
197+
- `prefer_constructors_over_static_methods`.
198+
- `prefer_interpolation_to_compose_strings`.
199+
- `avoid_returning_null`.
200+
- `avoid_returning_this`.
201+
- `flutter_style_todos`.
202+
- `avoid_positional_boolean_parameters`.
203+
- `prefer_const_constructors`.
204+
- add new lint: `implicit_call_tearoffs`.
205+
- add new lint: `unnecessary_library_directive`.
166206
- update `avoid_redundant_argument_values` to work with enum declarations.
167207
- improve performance for `prefer_contains`.
168208
- add new lint: `unreachable_from_main`.

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ vars = {
136136
"intl_rev": "442193ccd19a8e36a07fcc3b3cac0e58c6f9c542",
137137
"jinja2_rev": "2222b31554f03e62600cd7e383376a7c187967a1",
138138
"json_rpc_2_rev": "805e6536dd961d66f6b8cd46d8f3e61774f957c9",
139-
"linter_rev": "f2c55484e8ebda0aec8c2fea637b3bd5b17258ca", # 1.28.0
139+
"linter_rev": "657fa6d60373c144777ddb3ca0ab6ee7805ea2b3", # 1.29.0
140140
"lints_rev": "16bdefe1df529262a6596f79e91003ddbdbd3890",
141141
"logging_rev": "f322480fb9d9e83e677c08db6d09067059f7ff74",
142142
"markdown_rev": "9ff4a9f1d37c763f827084ba28a3d0bfec6b5d67",

pkg/analysis_server/lib/src/services/correction/error_fix_status.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,6 +1767,8 @@ LintCode.cast_nullable_to_non_nullable:
17671767
status: needsEvaluation
17681768
LintCode.close_sinks:
17691769
status: needsEvaluation
1770+
LintCode.collection_methods_unrelated_type:
1771+
status: needsEvaluation
17701772
LintCode.combinators_ordering:
17711773
status: hasFix
17721774
LintCode.comment_references:
@@ -1779,6 +1781,8 @@ LintCode.control_flow_in_finally:
17791781
status: needsEvaluation
17801782
LintCode.curly_braces_in_flow_control_structures:
17811783
status: hasFix
1784+
LintCode.dangling_library_doc_comments:
1785+
status: needsEvaluation
17821786
LintCode.depend_on_referenced_packages:
17831787
status: needsFix
17841788
LintCode.deprecated_consistency:
@@ -1809,6 +1813,8 @@ LintCode.hash_and_equals:
18091813
status: hasFix
18101814
LintCode.implementation_imports:
18111815
status: needsEvaluation
1816+
LintCode.implicit_call_tearoffs:
1817+
status: needsEvaluation
18121818
LintCode.invariant_booleans:
18131819
status: needsEvaluation
18141820
LintCode.iterable_contains_unrelated_type:
@@ -2014,6 +2020,8 @@ LintCode.unnecessary_lambdas:
20142020
status: hasFix
20152021
LintCode.unnecessary_late:
20162022
status: hasFix
2023+
LintCode.unnecessary_library_directive:
2024+
status: needsEvaluation
20172025
LintCode.unnecessary_new:
20182026
status: hasFix
20192027
LintCode.unnecessary_null_aware_assignments:

pkg/analysis_server/test/src/services/correction/fix/remove_method_declaration_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ class B extends A {
9797
''');
9898
}
9999

100-
@FailingTest(issue: 'https://github.com/dart-lang/linter/issues/1997')
101100
Future<void> test_method_generic() async {
102101
await resolveTestCode('''
103102
class A<T> {
@@ -123,7 +122,6 @@ class B extends A<int> {
123122
''');
124123
}
125124

126-
@FailingTest(issue: 'https://github.com/dart-lang/linter/issues/1997')
127125
Future<void> test_method_nullSafety_optIn_fromOptOut() async {
128126
createAnalysisOptionsFile(lints: [lintCode]);
129127
newFile('$testPackageLibPath/a.dart', r'''

pkg/analysis_server/test/src/services/correction/fix/rename_method_parameter_test.dart

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,6 @@ class RenameMethodParameterTest extends FixProcessorLintTest {
2323
@override
2424
String get lintCode => LintNames.avoid_renaming_method_parameters;
2525

26-
Future<void> test_conflict_parameters() async {
27-
await resolveTestCode('''
28-
class A {
29-
void m(a, b) {}
30-
}
31-
class B extends A {
32-
void m(b, a) {
33-
}
34-
}
35-
''');
36-
await assertNoFix(
37-
errorFilter: (error) => error.message.contains("parameter 'a'"));
38-
}
39-
4026
Future<void> test_local_variable() async {
4127
await resolveTestCode('''
4228
class A {

0 commit comments

Comments
 (0)