Missing trailing commas (#41473) * add missing trailing commas * add more missing trailing commas * add more and more missing trailing commas
diff --git a/packages/flutter_tools/test/general.shard/android/gradle_test.dart b/packages/flutter_tools/test/general.shard/android/gradle_test.dart index a32bc5a..f8afc24 100644 --- a/packages/flutter_tools/test/general.shard/android/gradle_test.dart +++ b/packages/flutter_tools/test/general.shard/android/gradle_test.dart
@@ -1379,8 +1379,8 @@ when(mockProcessManager.run( any, environment: anyNamed('environment'), - workingDirectory: anyNamed('workingDirectory')) - ).thenAnswer( + workingDirectory: anyNamed('workingDirectory'), + )).thenAnswer( (_) async => ProcessResult(1, 0, '', ''), ); fs.directory('build/outputs/repo').createSync(recursive: true);
diff --git a/packages/flutter_tools/test/general.shard/base/net_test.dart b/packages/flutter_tools/test/general.shard/base/net_test.dart index a2ce132..76fee72 100644 --- a/packages/flutter_tools/test/general.shard/base/net_test.dart +++ b/packages/flutter_tools/test/general.shard/base/net_test.dart
@@ -127,7 +127,7 @@ ), Platform: () => FakePlatform.fromPlatform(const LocalPlatform()) ..environment = <String, String>{ - 'FLUTTER_STORAGE_BASE_URL': 'example.invalid' + 'FLUTTER_STORAGE_BASE_URL': 'example.invalid', }, });
diff --git a/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart b/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart index a14bc8b..ff679ca 100644 --- a/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart +++ b/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart
@@ -121,7 +121,7 @@ Source.pattern('{PROJECT_DIR}/foo.dart'), ] ..outputs = const <Source>[ - Source.pattern('{BUILD_DIR}/out') + Source.pattern('{BUILD_DIR}/out'), ]; final BuildResult result = await buildSystem.build(badTarget, environment); @@ -293,7 +293,7 @@ environment.buildDir.createSync(recursive: true); expect(fooTarget.toJson(environment), <String, dynamic>{ 'inputs': <Object>[ - '/foo.dart' + '/foo.dart', ], 'outputs': <Object>[ fs.path.join(environment.buildDir.path, 'out'),
diff --git a/packages/flutter_tools/test/general.shard/commands/build_apk_test.dart b/packages/flutter_tools/test/general.shard/commands/build_apk_test.dart index 52647d9..6dfa757 100644 --- a/packages/flutter_tools/test/general.shard/commands/build_apk_test.dart +++ b/packages/flutter_tools/test/general.shard/commands/build_apk_test.dart
@@ -223,7 +223,7 @@ createMockProcess( exitCode: 1, stdout: r8StdoutWarning, - ) + ), ); });
diff --git a/packages/flutter_tools/test/general.shard/commands/build_appbundle_test.dart b/packages/flutter_tools/test/general.shard/commands/build_appbundle_test.dart index a7fbbe4..2d271dd 100644 --- a/packages/flutter_tools/test/general.shard/commands/build_appbundle_test.dart +++ b/packages/flutter_tools/test/general.shard/commands/build_appbundle_test.dart
@@ -212,7 +212,7 @@ createMockProcess( exitCode: 1, stdout: r8StdoutWarning, - ) + ), ); });
diff --git a/packages/flutter_tools/test/general.shard/commands/precache_test.dart b/packages/flutter_tools/test/general.shard/commands/precache_test.dart index 1b1fc25..128662e 100644 --- a/packages/flutter_tools/test/general.shard/commands/precache_test.dart +++ b/packages/flutter_tools/test/general.shard/commands/precache_test.dart
@@ -37,7 +37,7 @@ '--windows', '--fuchsia', '--flutter_runner', - ] + ], ); expect(artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, @@ -67,7 +67,7 @@ 'precache', '--no-ios', '--android', - ] + ], ); expect(artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, @@ -92,7 +92,7 @@ '--android_gen_snapshot', '--android_maven', '--android_internal_build', - ] + ], ); expect(artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, @@ -125,7 +125,7 @@ '--windows', '--fuchsia', '--flutter_runner', - ] + ], ); expect(artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal,
diff --git a/packages/flutter_tools/test/general.shard/compile_expression_test.dart b/packages/flutter_tools/test/general.shard/compile_expression_test.dart index 1d8b936..a77404d 100644 --- a/packages/flutter_tools/test/general.shard/compile_expression_test.dart +++ b/packages/flutter_tools/test/general.shard/compile_expression_test.dart
@@ -167,7 +167,7 @@ expect(outputExpression.errorCount, 0); lastExpressionCompleted.complete(true); }, - ) + ), ); compileResponseCompleter.complete(Future<List<int>>.value(utf8.encode(
diff --git a/packages/flutter_tools/test/general.shard/devfs_test.dart b/packages/flutter_tools/test/general.shard/devfs_test.dart index 351d6c8..a892efa 100644 --- a/packages/flutter_tools/test/general.shard/devfs_test.dart +++ b/packages/flutter_tools/test/general.shard/devfs_test.dart
@@ -415,4 +415,4 @@ class MockOddlyFailingHttpClient extends Mock implements HttpClient {} class MockHttpClientRequest extends Mock implements HttpClientRequest {} class MockHttpHeaders extends Mock implements HttpHeaders {} -class MockHttpClientResponse extends Mock implements HttpClientResponse {} \ No newline at end of file +class MockHttpClientResponse extends Mock implements HttpClientResponse {}
diff --git a/packages/flutter_tools/test/general.shard/doctor.dart b/packages/flutter_tools/test/general.shard/doctor.dart index db574e6..bd5d563 100644 --- a/packages/flutter_tools/test/general.shard/doctor.dart +++ b/packages/flutter_tools/test/general.shard/doctor.dart
@@ -27,7 +27,7 @@ FeatureFlags: () => TestFeatureFlags( isLinuxEnabled: true, isWindowsEnabled: true, - ) + ), })); test('doctor validators does not include desktop when features are enabled', () => testbed.run(() { @@ -39,7 +39,7 @@ FeatureFlags: () => TestFeatureFlags( isLinuxEnabled: false, isWindowsEnabled: false, - ) + ), })); test('doctor validators includes web when feature is enabled', () => testbed.run(() { @@ -48,7 +48,7 @@ }, overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags( isWebEnabled: true, - ) + ), })); test('doctor validators does not include web when feature is disabled', () => testbed.run(() { @@ -57,6 +57,6 @@ }, overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags( isWebEnabled: false, - ) + ), })); }
diff --git a/packages/flutter_tools/test/general.shard/ios/devices_test.dart b/packages/flutter_tools/test/general.shard/ios/devices_test.dart index 48e61f6..2e35e21 100644 --- a/packages/flutter_tools/test/general.shard/ios/devices_test.dart +++ b/packages/flutter_tools/test/general.shard/ios/devices_test.dart
@@ -127,14 +127,14 @@ mockArtifacts.getArtifactPath( Artifact.ideviceinstaller, platform: anyNamed('platform'), - ) + ), ).thenReturn(installerPath); when( mockArtifacts.getArtifactPath( Artifact.iosDeploy, platform: anyNamed('platform'), - ) + ), ).thenReturn(iosDeployPath); when(mockPortForwarder.forward(devicePort, hostPort: anyNamed('hostPort'))) @@ -411,7 +411,7 @@ mockArtifacts.getArtifactPath( Artifact.ideviceinstaller, platform: anyNamed('platform'), - ) + ), ).thenReturn(installerPath); });
diff --git a/packages/flutter_tools/test/general.shard/linux/linux_workflow_test.dart b/packages/flutter_tools/test/general.shard/linux/linux_workflow_test.dart index 8723c47..7f967b2 100644 --- a/packages/flutter_tools/test/general.shard/linux/linux_workflow_test.dart +++ b/packages/flutter_tools/test/general.shard/linux/linux_workflow_test.dart
@@ -25,7 +25,7 @@ overrides: <Type, Generator>{ Platform: () => linux, FeatureFlags: () => TestFeatureFlags(isLinuxEnabled: true), - } + }, ); });
diff --git a/packages/flutter_tools/test/general.shard/resident_runner_test.dart b/packages/flutter_tools/test/general.shard/resident_runner_test.dart index 65aafe1..b86a76a 100644 --- a/packages/flutter_tools/test/general.shard/resident_runner_test.dart +++ b/packages/flutter_tools/test/general.shard/resident_runner_test.dart
@@ -81,7 +81,7 @@ }); when(mockFlutterDevice.devFS).thenReturn(mockDevFS); when(mockFlutterDevice.views).thenReturn(<FlutterView>[ - mockFlutterView + mockFlutterView, ]); when(mockFlutterDevice.device).thenReturn(mockDevice); when(mockFlutterView.uiIsolate).thenReturn(mockIsolate);
diff --git a/packages/flutter_tools/test/general.shard/resident_web_runner_test.dart b/packages/flutter_tools/test/general.shard/resident_web_runner_test.dart index c839508..3e678d9 100644 --- a/packages/flutter_tools/test/general.shard/resident_web_runner_test.dart +++ b/packages/flutter_tools/test/general.shard/resident_web_runner_test.dart
@@ -155,7 +155,7 @@ 'type': 'Event', 'kind': 'WriteEvent', 'timestamp': 1569473488296, - 'bytes': base64.encode('THIS MESSAGE IS IMPORTANT'.codeUnits) + 'bytes': base64.encode('THIS MESSAGE IS IMPORTANT'.codeUnits), })); }); unawaited(residentWebRunner.run(
diff --git a/packages/flutter_tools/test/general.shard/web/asset_server_test.dart b/packages/flutter_tools/test/general.shard/web/asset_server_test.dart index d475f0a..c098802 100644 --- a/packages/flutter_tools/test/general.shard/web/asset_server_test.dart +++ b/packages/flutter_tools/test/general.shard/web/asset_server_test.dart
@@ -33,7 +33,7 @@ expect(response.headers, <String, String>{ 'Content-Type': 'text/html', - 'content-length': '5' + 'content-length': '5', }); expect(await response.readAsString(), 'hello'); }));
diff --git a/packages/flutter_tools/test/general.shard/web/chrome_test.dart b/packages/flutter_tools/test/general.shard/web/chrome_test.dart index de4d53a..ba6b7bb 100644 --- a/packages/flutter_tools/test/general.shard/web/chrome_test.dart +++ b/packages/flutter_tools/test/general.shard/web/chrome_test.dart
@@ -37,7 +37,7 @@ return 1234; }); when(platform.environment).thenReturn(<String, String>{ - kChromeEnvironment: 'example_chrome' + kChromeEnvironment: 'example_chrome', }); final Directory mockDirectory = MockDirectory(); when(fs.systemTempDirectory).thenReturn(mockDirectory); @@ -61,7 +61,7 @@ exitCode: Completer<int>().future, stdout: const Stream<List<int>>.empty(), stderr: Stream<List<int>>.fromIterable(<List<int>>[ - utf8.encode('\n\nDevTools listening\n\n') + utf8.encode('\n\nDevTools listening\n\n'), ]), ); });
diff --git a/packages/flutter_tools/test/general.shard/web/web_fs_test.dart b/packages/flutter_tools/test/general.shard/web/web_fs_test.dart index 475f594..e662c78 100644 --- a/packages/flutter_tools/test/general.shard/web/web_fs_test.dart +++ b/packages/flutter_tools/test/general.shard/web/web_fs_test.dart
@@ -57,8 +57,8 @@ DefaultBuildResult((DefaultBuildResultBuilder builder) { builder.target = 'web'; builder.status = BuildStatus.succeeded; - }) - ] + }), + ], ); }) )); @@ -163,8 +163,8 @@ DefaultBuildResult((DefaultBuildResultBuilder builder) { builder.target = 'web'; builder.status = BuildStatus.failed; - }) - ] + }), + ], ); }) ));
diff --git a/packages/flutter_tools/test/general.shard/web/web_validator_test.dart b/packages/flutter_tools/test/general.shard/web/web_validator_test.dart index c95972d..07ed413 100644 --- a/packages/flutter_tools/test/general.shard/web/web_validator_test.dart +++ b/packages/flutter_tools/test/general.shard/web/web_validator_test.dart
@@ -50,7 +50,7 @@ when(mockProcessManager.canRun(kMacOSExecutable)).thenReturn(false); final ValidationResult result = await webValidator.validate(); expect(result.messages, <ValidationMessage>[ - ValidationMessage.hint('CHROME_EXECUTABLE not set') + ValidationMessage.hint('CHROME_EXECUTABLE not set'), ]); expect(result.type, ValidationType.missing); }));
diff --git a/packages/flutter_tools/test/general.shard/windows/visual_studio_validator_test.dart b/packages/flutter_tools/test/general.shard/windows/visual_studio_validator_test.dart index a128bdd..4d1f880 100644 --- a/packages/flutter_tools/test/general.shard/windows/visual_studio_validator_test.dart +++ b/packages/flutter_tools/test/general.shard/windows/visual_studio_validator_test.dart
@@ -128,7 +128,7 @@ userMessages.visualStudioMissing( visualStudio.workloadDescription, visualStudio.necessaryComponentDescriptions(validator.majorVersion), - ) + ), ); expect(result.messages.contains(expectedMessage), true); expect(result.type, ValidationType.missing);
diff --git a/packages/flutter_tools/test/general.shard/windows/windows_workflow_test.dart b/packages/flutter_tools/test/general.shard/windows/windows_workflow_test.dart index 86a566b..f7bd240 100644 --- a/packages/flutter_tools/test/general.shard/windows/windows_workflow_test.dart +++ b/packages/flutter_tools/test/general.shard/windows/windows_workflow_test.dart
@@ -26,7 +26,7 @@ overrides: <Type, Generator>{ Platform: () => windows, FeatureFlags: () => TestFeatureFlags(isWindowsEnabled: true), - } + }, ); });