add missing trailing commas in list/set/map literals (#102585)
This commit is contained in:
committed by
GitHub
parent
0b80f08cf0
commit
07f1c20474
@@ -30,7 +30,7 @@ Future<void> main() async {
|
||||
'io.flutter.devicelab',
|
||||
'--template',
|
||||
'module',
|
||||
'hello_module'
|
||||
'hello_module',
|
||||
],
|
||||
);
|
||||
|
||||
@@ -410,7 +410,7 @@ Future<void> _testBuildIosFramework(Directory projectDir, { bool isModule = fals
|
||||
'ios-framework',
|
||||
'--cocoapods',
|
||||
'--force', // Allow podspec creation on master.
|
||||
'--output=$cocoapodsOutputDirectoryName'
|
||||
'--output=$cocoapodsOutputDirectoryName',
|
||||
],
|
||||
);
|
||||
});
|
||||
|
||||
@@ -80,7 +80,7 @@ Future<TaskResult> _doTest() async {
|
||||
'am',
|
||||
'start',
|
||||
'-n',
|
||||
'$_bundleName/$_bundleName.$_activityName'
|
||||
'$_bundleName/$_bundleName.$_activityName',
|
||||
]);
|
||||
await Future<void>.delayed(const Duration(seconds: 10));
|
||||
final Map<String, dynamic> memoryStats =
|
||||
@@ -93,7 +93,7 @@ Future<TaskResult> _doTest() async {
|
||||
ListStatistics(totalMemorySamples);
|
||||
|
||||
final Map<String, dynamic> results = <String, dynamic>{
|
||||
...totalMemoryStatistics.asMap('totalMemory')
|
||||
...totalMemoryStatistics.asMap('totalMemory'),
|
||||
};
|
||||
result = TaskResult.success(results,
|
||||
benchmarkScoreKeys: results.keys.toList());
|
||||
|
||||
@@ -90,7 +90,7 @@ class AaaPlugin: FlutterPlugin, MethodCallHandler {
|
||||
options: <String>[
|
||||
'apk',
|
||||
'--debug',
|
||||
'--target-platform=android-arm'
|
||||
'--target-platform=android-arm',
|
||||
],
|
||||
);
|
||||
});
|
||||
|
||||
@@ -22,7 +22,7 @@ Future<void> main() async {
|
||||
options: <String>[
|
||||
'apk',
|
||||
'--debug',
|
||||
'--target-platform=android-arm'
|
||||
'--target-platform=android-arm',
|
||||
],
|
||||
);
|
||||
});
|
||||
@@ -54,7 +54,7 @@ Future<void> main() async {
|
||||
options: <String>[
|
||||
'apk',
|
||||
'--debug',
|
||||
'--target-platform=android-x86'
|
||||
'--target-platform=android-x86',
|
||||
],
|
||||
);
|
||||
});
|
||||
@@ -85,7 +85,7 @@ Future<void> main() async {
|
||||
options: <String>[
|
||||
'apk',
|
||||
'--debug',
|
||||
'--target-platform=android-x64'
|
||||
'--target-platform=android-x64',
|
||||
],
|
||||
);
|
||||
});
|
||||
@@ -115,7 +115,7 @@ Future<void> main() async {
|
||||
options: <String>[
|
||||
'apk',
|
||||
'--release',
|
||||
'--target-platform=android-arm'
|
||||
'--target-platform=android-arm',
|
||||
],
|
||||
);
|
||||
});
|
||||
@@ -143,7 +143,7 @@ Future<void> main() async {
|
||||
options: <String>[
|
||||
'apk',
|
||||
'--release',
|
||||
'--target-platform=android-arm64'
|
||||
'--target-platform=android-arm64',
|
||||
],
|
||||
);
|
||||
});
|
||||
|
||||
@@ -55,7 +55,7 @@ Future<void> main() async {
|
||||
if (!Platform.isWindows) {
|
||||
await exec('chmod', <String>[
|
||||
'444',
|
||||
readonlyTxtAssetFile.path
|
||||
readonlyTxtAssetFile.path,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ Future<void> main() async {
|
||||
if (!Platform.isWindows) {
|
||||
await exec('chmod', <String>[
|
||||
'444',
|
||||
readonlyTxtAssetFile.path
|
||||
readonlyTxtAssetFile.path,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -425,7 +425,7 @@ end
|
||||
'-archivePath',
|
||||
objectiveCBuildArchiveDirectory.path,
|
||||
'COMPILER_INDEX_STORE_ENABLE=NO',
|
||||
'archive'
|
||||
'archive',
|
||||
],
|
||||
environment: <String, String> {
|
||||
'FLUTTER_ANALYTICS_LOG_FILE': objectiveCAnalyticsOutputFile.path,
|
||||
|
||||
@@ -248,7 +248,7 @@ Future<void> main() async {
|
||||
'build',
|
||||
options: <String>[
|
||||
'ios',
|
||||
'--no-codesign'
|
||||
'--no-codesign',
|
||||
],
|
||||
// TODO(jmagman): Make Objective-C applications handle Swift libraries https://github.com/flutter/flutter/issues/16049
|
||||
canFail: true
|
||||
@@ -272,7 +272,7 @@ Future<void> main() async {
|
||||
'build',
|
||||
options: <String>[
|
||||
'ios',
|
||||
'--no-codesign'
|
||||
'--no-codesign',
|
||||
],
|
||||
);
|
||||
});
|
||||
@@ -305,7 +305,7 @@ Future<void> main() async {
|
||||
'build',
|
||||
options: <String>[
|
||||
'ios',
|
||||
'--no-codesign'
|
||||
'--no-codesign',
|
||||
],
|
||||
);
|
||||
});
|
||||
@@ -326,7 +326,7 @@ Future<void> main() async {
|
||||
'build',
|
||||
options: <String>[
|
||||
'ios',
|
||||
'--no-codesign'
|
||||
'--no-codesign',
|
||||
],
|
||||
);
|
||||
});
|
||||
@@ -390,7 +390,7 @@ Future<void> main() async {
|
||||
'build',
|
||||
options: <String>[
|
||||
'ios',
|
||||
'--no-codesign'
|
||||
'--no-codesign',
|
||||
],
|
||||
);
|
||||
});
|
||||
|
||||
@@ -50,7 +50,7 @@ class ABTest {
|
||||
final Map<String, dynamic> resultMap = results as Map<String, dynamic>;
|
||||
return <String, List<double>> {
|
||||
for (String key in resultMap.keys)
|
||||
key: (resultMap[key] as List<dynamic>).cast<double>()
|
||||
key: (resultMap[key] as List<dynamic>).cast<double>(),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -153,13 +153,13 @@ class ABTest {
|
||||
'Score',
|
||||
'Average A', '(noise)',
|
||||
'Average B', '(noise)',
|
||||
'Speed-up'
|
||||
'Speed-up',
|
||||
];
|
||||
final List<FieldJustification> alignments = <FieldJustification>[
|
||||
FieldJustification.LEFT,
|
||||
FieldJustification.RIGHT, FieldJustification.LEFT,
|
||||
FieldJustification.RIGHT, FieldJustification.LEFT,
|
||||
FieldJustification.CENTER
|
||||
FieldJustification.CENTER,
|
||||
];
|
||||
|
||||
final List<int> lengths = List<int>.filled(6, 0);
|
||||
|
||||
@@ -131,7 +131,7 @@ class GalleryTransitionTest {
|
||||
if (transitionDurationFile != null)
|
||||
'$testOutputDirectory/$transitionDurationFile.json',
|
||||
if (timelineTraceFile != null)
|
||||
'$testOutputDirectory/$timelineTraceFile.json'
|
||||
'$testOutputDirectory/$timelineTraceFile.json',
|
||||
],
|
||||
benchmarkScoreKeys: <String>[
|
||||
if (transitionDurationFile != null)
|
||||
|
||||
@@ -29,7 +29,7 @@ TaskFunction runTask(adb.DeviceOperatingSystem operatingSystem) {
|
||||
'ios,android',
|
||||
'--no-overwrite',
|
||||
'-v',
|
||||
'.'
|
||||
'.',
|
||||
];
|
||||
print('\nExecuting: $flutterExe $createArgs $appDir');
|
||||
await utils.eval(flutterExe, createArgs);
|
||||
|
||||
@@ -82,7 +82,7 @@ void main() {
|
||||
'device_type': 'Moto G Play',
|
||||
'device_version': 'android-25',
|
||||
'host_type': 'linux',
|
||||
'host_version': 'debian-10.11'
|
||||
'host_version': 'debian-10.11',
|
||||
};
|
||||
final List<MetricPoint> metricPoints = parse(results, tags, 'task abc');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user