Skip to content

Commit ea1473e

Browse files
pqCommit Queue
authored and
Commit Queue
committed
linter 1.32.0
See: https://github.com/dart-lang/linter/issues/3848 Change-Id: I73469ce43d52c1755875a39067b267f216ebd490 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/275044 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]> Commit-Queue: Phil Quitslund <[email protected]>
1 parent a6f4fbe commit ea1473e

File tree

8 files changed

+21
-7
lines changed

8 files changed

+21
-7
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,18 @@
7878
documented at
7979
[dart.dev](https://dart.dev/guides/language/analysis-options#enabling-additional-type-checks).
8080

81+
#### Linter
82+
83+
Updates the Linter to `1.32.0`, which includes changes that
84+
85+
- update `avoid_types_as_parameter_names` to handle type variables.
86+
- update `avoid_positional_boolean_parameters` to handle typedefs.
87+
- improve `unnecessary_parenthesis` support for property accesses and method invocations.
88+
- update `avoid_redundant_argument_values` to check parameters of redirecting constructors.
89+
- improve performance for `prefer_const_literals_to_create_immutables`.
90+
- update `use_build_context_synchronously` to check context properties.
91+
- fix a false positive for `avoid_private_typedef_functions` with generalized type aliases.
92+
8193
## 2.19.0
8294

8395
### Language

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ vars = {
139139
"intl_rev": "6fb07f261dad98ed5adc6d60a37a76557b0ed6b3",
140140
"jinja2_rev": "2222b31554f03e62600cd7e383376a7c187967a1",
141141
"json_rpc_2_rev": "16fed53fbebd38edf170f58c1da1de2a325b2b98",
142-
"linter_rev": "7fe671cdadb52139295bae0abf62c014369af93a", # 1.31.0
142+
"linter_rev": "79b843349deaea4a2455cfa37cc47cbc0e472190", # 1.32.0
143143
"lints_rev": "16bdefe1df529262a6596f79e91003ddbdbd3890",
144144
"logging_rev": "0373ef85aa1dfe9e179b9fa006c45b65903787f2",
145145
"markdown_rev": "ee3f4e976efcfed87c6ec78364bc2dd3c6e717b9", # https://github.com/dart-lang/markdown/pull/494

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,9 @@ LintCode.avoid_bool_literals_in_conditional_expressions:
17071707
fixed to not contain a bool literal.
17081708
LintCode.avoid_catches_without_on_clauses:
17091709
status: needsEvaluation
1710-
LintCode.avoid_catching_errors:
1710+
LintCode.avoid_catching_errors_class:
1711+
status: needsEvaluation
1712+
LintCode.avoid_catching_errors_subclass:
17111713
status: needsEvaluation
17121714
LintCode.avoid_classes_with_only_static_members:
17131715
status: needsEvaluation

pkg/analysis_server/test/verify_tests_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void main() {
1414
var pathToAnalyze = provider.pathContext.join(packageRoot, 'analysis_server');
1515
var testDirPath = provider.pathContext.join(pathToAnalyze, 'test');
1616
_VerifyTests(testDirPath, excludedPaths: [
17-
(provider.pathContext.join(testDirPath, 'mock_packages'))
17+
provider.pathContext.join(testDirPath, 'mock_packages')
1818
]).build();
1919
}
2020

pkg/analyzer/test/src/dart/element/generic_inferrer_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class GenericFunctionInferenceTest extends AbstractTypeSystemTest {
4141
);
4242
_assertTypes(
4343
_inferCall(cast, [stringNone]),
44-
[stringNone, (iterableNone(stringNone))],
44+
[stringNone, iterableNone(stringNone)],
4545
);
4646
}
4747

pkg/analyzer_cli/test/driver_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ linter:
259259
Future<void> test_pubspec_lintsInOptions_generatedLints() async {
260260
await drive('data/linter_project/pubspec.yaml',
261261
options: 'data/linter_project/$analysisOptionsYaml');
262-
expect(bulletToDash(outSink), contains('lint - Sort pub dependencies'));
262+
expect(bulletToDash(outSink), contains('lint - Unsorted dependencies.'));
263263
}
264264

265265
YamlMap _parseOptions(String src) =>

pkg/nnbd_migration/lib/src/variables.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class Variables {
187187
/// [recordNullCheckHint].
188188
HintComment? getNullCheckHint(Source? source, Expression expression) {
189189
return (_nullCheckHints[source] ??
190-
{})[(uniqueIdentifierForSpan(expression.offset, expression.end))];
190+
{})[uniqueIdentifierForSpan(expression.offset, expression.end)];
191191
}
192192

193193
/// If the given [node] is preceded by a `/*required*/` hint, returns the

pkg/nnbd_migration/test/edit_plan_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ C<int, String>? c;
13081308
var propertyAccess = findNode.propertyAccess('?.');
13091309
checkPlan(
13101310
planner!.passThrough(propertyAccess, innerPlans: [
1311-
(planner!.replace(findNode.simple('x?.'), [AtomicEdit.insert('z')])),
1311+
planner!.replace(findNode.simple('x?.'), [AtomicEdit.insert('z')]),
13121312
planner!.removeNullAwareness(propertyAccess),
13131313
planner!.replace(findNode.simple('y'), [AtomicEdit.insert('w')])
13141314
]),

0 commit comments

Comments
 (0)