add missing trailing commas in list/set/map literals (#102585)

This commit is contained in:
Alexandre Ardhuin
2022-04-27 09:15:35 +02:00
committed by GitHub
parent 0b80f08cf0
commit 07f1c20474
271 changed files with 1236 additions and 1141 deletions

View File

@@ -638,7 +638,7 @@ Future<void> verifyNoBadImportsInFlutter(String workingDirectory) async {
'These are the exported packages:',
...packages.map<String>((String path) => ' lib/$path.dart'),
'These are the directories:',
...directories.map<String>((String path) => ' lib/src/$path/')
...directories.map<String>((String path) => ' lib/src/$path/'),
].join('\n'));
}
// Verify that the imports are well-ordered.
@@ -1585,7 +1585,7 @@ Future<void> _checkConsumerDependencies() async {
'pub',
'deps',
'--json',
'--directory=${path.join(flutterRoot, 'packages', package)}'
'--directory=${path.join(flutterRoot, 'packages', package)}',
]);
if (result.exitCode != 0) {
print(result.stdout as Object);

View File

@@ -239,7 +239,7 @@ Future<void> runWebServiceWorkerTest({
...<String, int>{
'manifest.json': 1,
'favicon.ico': 1,
}
},
});
expect(reportedVersion, '1');
reportedVersion = null;
@@ -313,7 +313,7 @@ Future<void> runWebServiceWorkerTest({
...<String, int>{
'manifest.json': 1,
'favicon.ico': 1,
}
},
});
expect(reportedVersion, '3');
@@ -366,7 +366,7 @@ Future<void> runWebServiceWorkerTest({
...<String, int>{
'manifest.json': 1,
'favicon.ico': 1,
}
},
});
expect(reportedVersion, '4');

View File

@@ -1268,7 +1268,7 @@ Future<void> _runFlutterPluginsTests() async {
'core.longPaths=true',
'clone',
'https://github.com/flutter/plugins.git',
'.'
'.',
],
workingDirectory: checkout.path,
);
@@ -1329,7 +1329,7 @@ Future<void> _runSkpGeneratorTests() async {
'core.longPaths=true',
'clone',
'https://github.com/flutter/tests.git',
'.'
'.',
],
workingDirectory: checkout.path,
);

View File

@@ -48,7 +48,7 @@ void main() {
command: <String>['echo', 'test',],
stdout: 'output',
stderr: 'error',
)
),
]);
final ProcessRunner processRunner = ProcessRunner(
subprocessOutput: false, platform: platform, processManager: fakeProcessManager);
@@ -62,7 +62,7 @@ void main() {
stdout: 'output',
stderr: 'error',
exitCode: -1,
)
),
]);
final ProcessRunner processRunner = ProcessRunner(
subprocessOutput: false, platform: platform, processManager: fakeProcessManager);