Skip to content

Commit 6a8ec22

Browse files
authored
update commas (#455)
1 parent a1da087 commit 6a8ec22

19 files changed

+168
-168
lines changed

mono_repo/lib/src/ci_shared.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ List<String> scriptLines(String scriptPath) => [
135135
'It appears you are using Windows, and may not have access to chmod.',
136136
'If you are using git, the following will emulate the Unix permissions '
137137
'change:',
138-
' git update-index --add --chmod=+x $scriptPath'
138+
' git update-index --add --chmod=+x $scriptPath',
139139
],
140140
];
141141

mono_repo/lib/src/commands/github/action_info.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ Job _coverageCompletionJob(RootConfig rootConfig) => Job(
8585
withContent: {
8686
// https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
8787
'github-token': r'${{ secrets.GITHUB_TOKEN }}',
88-
'parallel-finished': true
88+
'parallel-finished': true,
8989
},
9090
versionOverrides: rootConfig.existingActionVersions,
91-
)
91+
),
9292
],
9393
);
9494

mono_repo/lib/src/commands/github/generate.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class _GeneratedDependabotConfig {
7373

7474
config['updates'] = [
7575
...config['updates'] as List? ?? <dynamic>[],
76-
...packageUpdates
76+
...packageUpdates,
7777
];
7878
result['.github/dependabot.yml'] = '''
7979
$createdWith

mono_repo/lib/src/commands/github/github_yaml.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,13 @@ Step _cacheEntries(
481481
'pub-cache-hosted',
482482
if (additionalCacheKeys != null) ...[
483483
for (var entry in additionalCacheKeys.entries)
484-
'${entry.key}:${entry.value}'
485-
]
484+
'${entry.key}:${entry.value}',
485+
],
486486
];
487487

488488
final restoreKeys = [
489489
for (var i = cacheKeyParts.length; i > 0; i--)
490-
_maxLength(cacheKeyParts.take(i).join(';'))
490+
_maxLength(cacheKeyParts.take(i).join(';')),
491491
];
492492

493493
// Just caching the `hosted` directory because caching git dependencies or

mono_repo/lib/src/commands/readme_command.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ String readme(
5252
'[${pkg.pubspec.name}](${pkg.relativePath}/)',
5353
pkg.pubspec.description?.trim() ?? '',
5454
pkg.pubspec.pubBadge,
55-
]
55+
],
5656
];
5757

5858
final widths = [1, 1, 1];

mono_repo/lib/src/github_config.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ class GitHubConfig {
113113
'name': workflowName,
114114
if (on != null) 'on': on,
115115
'defaults': {
116-
'run': {'shell': 'bash'}
116+
'run': {'shell': 'bash'},
117117
},
118118
'env': {'PUB_ENVIRONMENT': 'bot.github', ...?env},
119119
// Declare default permissions as read only.
120-
'permissions': 'read-all'
120+
'permissions': 'read-all',
121121
};
122122
}
123123

@@ -152,8 +152,8 @@ Map<String, dynamic> _parseOn(Map<String, dynamic>? on, String? cron) {
152152
return {
153153
..._defaultOn,
154154
'schedule': [
155-
{'cron': cron}
156-
]
155+
{'cron': cron},
156+
],
157157
};
158158
}
159159
}
@@ -174,7 +174,7 @@ const _defaultOn = {
174174
'branches': [
175175
'main',
176176
'master',
177-
]
177+
],
178178
},
179179
// A `null` value here means all pull requests are processed by this workflow.
180180
'pull_request': null,

mono_repo/lib/src/raw_config.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RawConfig {
3131
this.cache,
3232
}) : stages = stages ??
3333
[
34-
RawStage('unit_test', ['test'])
34+
RawStage('unit_test', ['test']),
3535
] {
3636
if (sdks != null) {
3737
sortNormalizeVerifySdksList(

mono_repo/lib/src/task_type.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class _AnalyzeTask extends TaskType {
9090
@override
9191
List<String> commandValue(PackageFlavor flavor, String? args) => [
9292
flavor == PackageFlavor.dart ? 'dart analyze' : 'flutter analyze',
93-
if (args != null) args
93+
if (args != null) args,
9494
];
9595

9696
@override

mono_repo/lib/src/yaml.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ const _escapeMap = {
294294
'\f': r'\f', // 0C - form feed
295295
'\r': r'\r', // 0D - carriage return
296296
'\x7F': r'\x7F', // delete
297-
r'\': r'\\' // backslash
297+
r'\': r'\\', // backslash
298298
};
299299

300300
final _escapeMapRegexp = _escapeMap.keys.map(_getHexLiteral).join();

mono_repo/test/check_comand_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ name: no_mono_repo_file
106106
dependencies:
107107
build: any
108108
implied_any:
109-
''')
109+
'''),
110110
]).create();
111111

112112
await d.dir('foo', [
@@ -117,7 +117,7 @@ name: foo
117117
dependencies:
118118
build: any
119119
implied_any:
120-
''')
120+
'''),
121121
]).create();
122122

123123
await d.dir('bar', [
@@ -131,7 +131,7 @@ dependencies:
131131
url: https://github.com/dart-lang/build.git
132132
path: build
133133
ref: hacking
134-
''')
134+
'''),
135135
]).create();
136136

137137
await d.dir('baz', [
@@ -180,6 +180,6 @@ flutter:
180180
- asset: fonts/Schyler-Italic.ttf
181181
style: italic
182182
weight: 700
183-
''')
183+
'''),
184184
]).create();
185185
}

0 commit comments

Comments
 (0)