@@ -69,10 +69,7 @@ class CIJobEntry {
6969Map <String , List <CIJobEntry >> groupCIJobEntries (List <CIJobEntry > jobEntries) =>
7070 groupBy <CIJobEntry , String >(
7171 jobEntries,
72- (e) => [
73- ...e.job.groupByKeys,
74- e.commands,
75- ].join (':::' ),
72+ (e) => [...e.job.groupByKeys, e.commands].join (':::' ),
7673 );
7774
7875void validateRootConfig (RootConfig rootConfig) {
@@ -83,17 +80,19 @@ void validateRootConfig(RootConfig rootConfig) {
8380 continue ;
8481 }
8582
86- final disallowedExplicitVersions = config.jobs
87- .map ((tj) => tj.explicitSdkVersion)
88- .whereType <Version >()
89- .toSet ()
90- .where ((v) => ! sdkConstraint.allows (v))
91- .toList ()
92- ..sort ();
83+ final disallowedExplicitVersions =
84+ config.jobs
85+ .map ((tj) => tj.explicitSdkVersion)
86+ .whereType <Version >()
87+ .toSet ()
88+ .where ((v) => ! sdkConstraint.allows (v))
89+ .toList ()
90+ ..sort ();
9391
9492 if (disallowedExplicitVersions.isNotEmpty) {
95- final disallowedString =
96- disallowedExplicitVersions.map ((v) => '`$v `' ).join (', ' );
93+ final disallowedString = disallowedExplicitVersions
94+ .map ((v) => '`$v `' )
95+ .join (', ' );
9796 print (
9897 yellow.wrap (
9998 ' There are jobs defined that are not compatible with '
@@ -129,15 +128,15 @@ void writeFile(
129128
130129@visibleForTesting
131130List <String > scriptLines (String scriptPath) => [
132- 'Make sure to mark `$scriptPath ` as executable.' ,
133- ' chmod +x $scriptPath ' ,
134- if (Platform .isWindows) ...[
135- 'It appears you are using Windows, and may not have access to chmod.' ,
136- 'If you are using git, the following will emulate the Unix permissions '
137- 'change:' ,
138- ' git update-index --add --chmod=+x $scriptPath ' ,
139- ],
140- ];
131+ 'Make sure to mark `$scriptPath ` as executable.' ,
132+ ' chmod +x $scriptPath ' ,
133+ if (Platform .isWindows) ...[
134+ 'It appears you are using Windows, and may not have access to chmod.' ,
135+ 'If you are using git, the following will emulate the Unix permissions '
136+ 'change:' ,
137+ ' git update-index --add --chmod=+x $scriptPath ' ,
138+ ],
139+ ];
141140
142141/// Gives a map of command to unique task key for all [configs] .
143142Map <String , String > extractCommands (Iterable <PackageConfig > configs) {
@@ -241,7 +240,8 @@ List<String> calculateOrderedStages(
241240
242241 throw UserException (
243242 'Error parsing mono_repo.yaml' ,
244- details: 'One or more stage was referenced in `mono_repo.yaml` that do '
243+ details:
244+ 'One or more stage was referenced in `mono_repo.yaml` that do '
245245 'not exist in any `$monoPkgFileName ` files: $items .' ,
246246 );
247247 }
@@ -252,9 +252,7 @@ List<String> calculateOrderedStages(
252252 // as a secondary sort. This is an intuitive secondary sort order as it
253253 // follows the order given in configuration files.
254254 final keys = edges.keys.toList ();
255- final edgeIndexes = {
256- for (var i = 0 ; i < keys.length; i++ ) keys[i]: i,
257- };
255+ final edgeIndexes = {for (var i = 0 ; i < keys.length; i++ ) keys[i]: i};
258256
259257 // Orders by dependencies first, and detect cycles (which aren't allowed).
260258 // Our edges here are actually reverse edges already, so a topological sort
0 commit comments