Skip to content

Commit 5fcbb80

Browse files
authored
Apply trailing-comma lint (#2054)
1 parent 5bd2138 commit 5fcbb80

File tree

115 files changed

+6479
-3720
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+6479
-3720
lines changed

dwds/analysis_options.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ analyzer:
1616
linter:
1717
rules:
1818
- always_use_package_imports
19+
- avoid_void_async
1920
- directives_ordering
2021
- prefer_final_locals
22+
- require_trailing_commas
2123
- unawaited_futures
22-
- avoid_void_async
2324
- unnecessary_lambdas

dwds/debug_extension/tool/copy_builder.dart

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ class _CopyBuilder extends Builder {
3030
}
3131

3232
final outputAsset = allowedOutputs.first;
33-
await _copyBinaryFile(buildStep,
34-
inputAsset: inputAsset, outputAsset: outputAsset);
33+
await _copyBinaryFile(
34+
buildStep,
35+
inputAsset: inputAsset,
36+
outputAsset: outputAsset,
37+
);
3538
}
3639

3740
Future<void> _copyBinaryFile(
@@ -40,6 +43,8 @@ class _CopyBuilder extends Builder {
4043
required AssetId outputAsset,
4144
}) {
4245
return buildStep.writeAsBytes(
43-
outputAsset, buildStep.readAsBytes(inputAsset));
46+
outputAsset,
47+
buildStep.readAsBytes(inputAsset),
48+
);
4449
}
4550
}

dwds/debug_extension/tool/update_dev_files.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ Future<void> _updateDevtoolsJs() async {
7878
}
7979

8080
Future<void> _transformDevFile(
81-
File devFile, List<String> Function(String) transformLine) async {
81+
File devFile,
82+
List<String> Function(String) transformLine,
83+
) async {
8284
final lines = devFile.readAsLinesSync();
8385
final newLines = <String>[];
8486
for (final line in lines) {

0 commit comments

Comments
 (0)