@@ -193,8 +193,7 @@ Future<bool> performReleaseChecks(ProductCommand cmd) async {
193193 cmd.isDevChannel ? 'master' : "release_${cmd .releaseMajor }" ;
194194 var result = name == expectedName;
195195 if (! result) {
196- result =
197- name.startsWith ("release_${cmd .releaseMajor }" ) &&
196+ result = name.startsWith ("release_${cmd .releaseMajor }" ) &&
198197 name.lastIndexOf (RegExp (r"\.[0-9]" )) == name.length - 2 ;
199198 }
200199 if (result) {
@@ -319,15 +318,13 @@ class GradleBuildCommand extends ProductCommand {
319318 argParser.addOption (
320319 'only-version' ,
321320 abbr: 'o' ,
322- help:
323- 'Only build the specified IntelliJ version; useful for sharding '
321+ help: 'Only build the specified IntelliJ version; useful for sharding '
324322 'builds on CI systems.' ,
325323 );
326324 argParser.addFlag (
327325 'unpack' ,
328326 abbr: 'u' ,
329- help:
330- 'Unpack the artifact files during provisioning, '
327+ help: 'Unpack the artifact files during provisioning, '
331328 'even if the cache appears fresh.\n '
332329 'This flag is ignored if --release is given.' ,
333330 defaultsTo: false ,
@@ -341,8 +338,7 @@ class GradleBuildCommand extends ProductCommand {
341338 }
342339
343340 @override
344- String get description =>
345- 'Build a deployable version of the Flutter plugin, '
341+ String get description => 'Build a deployable version of the Flutter plugin, '
346342 'compiled against the specified artifacts.' ;
347343
348344 @override
@@ -598,13 +594,12 @@ class GenerateCommand extends ProductCommand {
598594
599595 void generateLiveTemplates () {
600596 // Find all the live templates.
601- final templateFragments =
602- Directory (p.join ('resources' , 'liveTemplates' ))
603- .listSync ()
604- .whereType <File >()
605- .where ((file) => p.extension (file.path) == '.txt' )
606- .cast <File >()
607- .toList ();
597+ final templateFragments = Directory (p.join ('resources' , 'liveTemplates' ))
598+ .listSync ()
599+ .whereType <File >()
600+ .where ((file) => p.extension (file.path) == '.txt' )
601+ .cast <File >()
602+ .toList ();
608603 final templateFile = File (
609604 p.join ('resources' , 'liveTemplates' , 'flutter_miscellaneous.xml' ),
610605 );
@@ -632,8 +627,7 @@ class GenerateCommand extends ProductCommand {
632627 // content from the template $name.txt file.
633628 final matchString = match.group (1 );
634629 final matchStart = contents.indexOf (matchString! );
635- contents =
636- contents.substring (0 , matchStart) +
630+ contents = contents.substring (0 , matchStart) +
637631 replaceContents +
638632 contents.substring (matchStart + matchString.length);
639633 }
@@ -746,10 +740,9 @@ abstract class ProductCommand extends Command<int> {
746740 }
747741
748742 String releasesFilePath (BuildSpec spec) {
749- var subDir =
750- isReleaseMode
751- ? 'release_$releaseMajor '
752- : (spec.channel == "stable" ? 'release_master' : 'release_dev' );
743+ var subDir = isReleaseMode
744+ ? 'release_$releaseMajor '
745+ : (spec.channel == "stable" ? 'release_master' : 'release_dev' );
753746 var filePath = p.join (
754747 rootPath,
755748 'releases' ,
@@ -875,10 +868,9 @@ class RenamePackageCommand extends ProductCommand {
875868 baseDir = p.join (baseDir, 'flutter-studio/src' );
876869 }
877870 oldName = argResults.option ('package' )! ;
878- newName =
879- argResults.wasParsed ('new-name' )
880- ? argResults.option ('new-name' )!
881- : oldName + argResults.option ('append' )! ;
871+ newName = argResults.wasParsed ('new-name' )
872+ ? argResults.option ('new-name' )!
873+ : oldName + argResults.option ('append' )! ;
882874 if (oldName == newName) {
883875 log ('Nothing to do; new name is same as old name' );
884876 return 1 ;
0 commit comments