Skip to content

Commit

Permalink
update commas (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Jun 28, 2023
1 parent a1da087 commit 6a8ec22
Show file tree
Hide file tree
Showing 19 changed files with 168 additions and 168 deletions.
2 changes: 1 addition & 1 deletion mono_repo/lib/src/ci_shared.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ List<String> scriptLines(String scriptPath) => [
'It appears you are using Windows, and may not have access to chmod.',
'If you are using git, the following will emulate the Unix permissions '
'change:',
' git update-index --add --chmod=+x $scriptPath'
' git update-index --add --chmod=+x $scriptPath',
],
];

Expand Down
4 changes: 2 additions & 2 deletions mono_repo/lib/src/commands/github/action_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ Job _coverageCompletionJob(RootConfig rootConfig) => Job(
withContent: {
// https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
'github-token': r'${{ secrets.GITHUB_TOKEN }}',
'parallel-finished': true
'parallel-finished': true,
},
versionOverrides: rootConfig.existingActionVersions,
)
),
],
);

Expand Down
2 changes: 1 addition & 1 deletion mono_repo/lib/src/commands/github/generate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class _GeneratedDependabotConfig {

config['updates'] = [
...config['updates'] as List? ?? <dynamic>[],
...packageUpdates
...packageUpdates,
];
result['.github/dependabot.yml'] = '''
$createdWith
Expand Down
6 changes: 3 additions & 3 deletions mono_repo/lib/src/commands/github/github_yaml.dart
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,13 @@ Step _cacheEntries(
'pub-cache-hosted',
if (additionalCacheKeys != null) ...[
for (var entry in additionalCacheKeys.entries)
'${entry.key}:${entry.value}'
]
'${entry.key}:${entry.value}',
],
];

final restoreKeys = [
for (var i = cacheKeyParts.length; i > 0; i--)
_maxLength(cacheKeyParts.take(i).join(';'))
_maxLength(cacheKeyParts.take(i).join(';')),
];

// Just caching the `hosted` directory because caching git dependencies or
Expand Down
2 changes: 1 addition & 1 deletion mono_repo/lib/src/commands/readme_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ String readme(
'[${pkg.pubspec.name}](${pkg.relativePath}/)',
pkg.pubspec.description?.trim() ?? '',
pkg.pubspec.pubBadge,
]
],
];

final widths = [1, 1, 1];
Expand Down
10 changes: 5 additions & 5 deletions mono_repo/lib/src/github_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ class GitHubConfig {
'name': workflowName,
if (on != null) 'on': on,
'defaults': {
'run': {'shell': 'bash'}
'run': {'shell': 'bash'},
},
'env': {'PUB_ENVIRONMENT': 'bot.github', ...?env},
// Declare default permissions as read only.
'permissions': 'read-all'
'permissions': 'read-all',
};
}

Expand Down Expand Up @@ -152,8 +152,8 @@ Map<String, dynamic> _parseOn(Map<String, dynamic>? on, String? cron) {
return {
..._defaultOn,
'schedule': [
{'cron': cron}
]
{'cron': cron},
],
};
}
}
Expand All @@ -174,7 +174,7 @@ const _defaultOn = {
'branches': [
'main',
'master',
]
],
},
// A `null` value here means all pull requests are processed by this workflow.
'pull_request': null,
Expand Down
2 changes: 1 addition & 1 deletion mono_repo/lib/src/raw_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RawConfig {
this.cache,
}) : stages = stages ??
[
RawStage('unit_test', ['test'])
RawStage('unit_test', ['test']),
] {
if (sdks != null) {
sortNormalizeVerifySdksList(
Expand Down
2 changes: 1 addition & 1 deletion mono_repo/lib/src/task_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class _AnalyzeTask extends TaskType {
@override
List<String> commandValue(PackageFlavor flavor, String? args) => [
flavor == PackageFlavor.dart ? 'dart analyze' : 'flutter analyze',
if (args != null) args
if (args != null) args,
];

@override
Expand Down
2 changes: 1 addition & 1 deletion mono_repo/lib/src/yaml.dart
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ const _escapeMap = {
'\f': r'\f', // 0C - form feed
'\r': r'\r', // 0D - carriage return
'\x7F': r'\x7F', // delete
r'\': r'\\' // backslash
r'\': r'\\', // backslash
};

final _escapeMapRegexp = _escapeMap.keys.map(_getHexLiteral).join();
Expand Down
8 changes: 4 additions & 4 deletions mono_repo/test/check_comand_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ name: no_mono_repo_file
dependencies:
build: any
implied_any:
''')
'''),
]).create();

await d.dir('foo', [
Expand All @@ -117,7 +117,7 @@ name: foo
dependencies:
build: any
implied_any:
''')
'''),
]).create();

await d.dir('bar', [
Expand All @@ -131,7 +131,7 @@ dependencies:
url: https://github.com/dart-lang/build.git
path: build
ref: hacking
''')
'''),
]).create();

await d.dir('baz', [
Expand Down Expand Up @@ -180,6 +180,6 @@ flutter:
- asset: fonts/Schyler-Italic.ttf
style: italic
weight: 700
''')
'''),
]).create();
}
Loading

0 comments on commit 6a8ec22

Please sign in to comment.