Add missing trailing commas (#28673)
* add trailing commas on list/map/parameters * add trailing commas on Invocation with nb of arg>1 * add commas for widget containing widgets * add trailing commas if instantiation contains trailing comma * revert bad change
This commit is contained in:
committed by
GitHub
parent
046f960ae2
commit
387f885481
@@ -39,7 +39,7 @@ void main() {
|
||||
const ProcessManager _processManager = LocalProcessManager();
|
||||
final ProcessResult _proc = await _processManager.run(
|
||||
<String>[flutterBin, 'run', '-d', 'invalid-device-id'],
|
||||
workingDirectory: tempDir.path
|
||||
workingDirectory: tempDir.path,
|
||||
);
|
||||
|
||||
expect(_proc.stdout, isNot(contains('flutter has exited unexpectedly')));
|
||||
|
||||
@@ -77,7 +77,7 @@ class HotReloadProject extends Project {
|
||||
void uncommentHotReloadPrint() {
|
||||
final String newMainContents = main.replaceAll(
|
||||
'// printHotReloadWorked();',
|
||||
'printHotReloadWorked();'
|
||||
'printHotReloadWorked();',
|
||||
);
|
||||
writeFile(fs.path.join(dir.path, 'lib', 'main.dart'), newMainContents);
|
||||
}
|
||||
|
||||
@@ -502,7 +502,7 @@ class FlutterRunTestDriver extends FlutterTestDriver {
|
||||
_debugPrint('Performing ${ pause ? "paused " : "" }${ fullRestart ? "hot restart" : "hot reload" }...');
|
||||
final dynamic hotReloadResponse = await _sendRequest(
|
||||
'app.restart',
|
||||
<String, dynamic>{'appId': _currentRunningAppId, 'fullRestart': fullRestart, 'pause': pause}
|
||||
<String, dynamic>{'appId': _currentRunningAppId, 'fullRestart': fullRestart, 'pause': pause},
|
||||
);
|
||||
_debugPrint('${ fullRestart ? "Hot restart" : "Hot reload" } complete.');
|
||||
|
||||
@@ -565,7 +565,7 @@ class FlutterRunTestDriver extends FlutterTestDriver {
|
||||
final Map<String, dynamic> request = <String, dynamic>{
|
||||
'id': requestId,
|
||||
'method': method,
|
||||
'params': params
|
||||
'params': params,
|
||||
};
|
||||
final String jsonEncoded = json.encode(<Map<String, dynamic>>[request]);
|
||||
_debugPrint(jsonEncoded, topic: '=stdin=>');
|
||||
@@ -606,7 +606,7 @@ class FlutterTestTestDriver extends FlutterTestDriver {
|
||||
'test',
|
||||
'--machine',
|
||||
'-d',
|
||||
'flutter-tester'
|
||||
'flutter-tester',
|
||||
], script: testFile, withDebugger: withDebugger, pauseOnExceptions: pauseOnExceptions, pidFile: pidFile, beforeStart: beforeStart);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ Future<void> getPackages(String folder) async {
|
||||
final List<String> command = <String>[
|
||||
fs.path.join(getFlutterRoot(), 'bin', 'flutter'),
|
||||
'packages',
|
||||
'get'
|
||||
'get',
|
||||
];
|
||||
final Process process = await processManager.start(command, workingDirectory: folder);
|
||||
final StringBuffer errorOutput = StringBuffer();
|
||||
|
||||
Reference in New Issue
Block a user