Skip to content

Commit 2c59aea

Browse files
[autofix.ci] apply automated fixes
1 parent c524e89 commit 2c59aea

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

libs/javalib/src/mill/javalib/JavaModule.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,8 @@ trait BomModule extends JavaModule {
18851885
}
18861886
}
18871887

1888-
trait JvmPreCompiledModule extends JavaModule with mill.api.PreCompiledModule[JavaModule, BomModule] {
1888+
trait JvmPreCompiledModule extends JavaModule
1889+
with mill.api.PreCompiledModule[JavaModule, BomModule] {
18891890
private val javaModuleClassTag = scala.reflect.classTag[JavaModule]
18901891
private val bomModuleClassTag = scala.reflect.classTag[BomModule]
18911892

libs/kotlinlib/src/mill/kotlinlib/KotlinModule.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,7 @@ trait KotlinModule extends JavaModule with KotlinModuleApi { outer =>
524524
object KotlinModule {
525525
class PreCompiled(val preCompiledConfig: mill.api.PreCompiled.Config)(implicit
526526
ctx: mill.api.ModuleCtx
527-
)
528-
extends KotlinModule
527+
) extends KotlinModule
529528
with mill.javalib.JvmPreCompiledModule {
530529
inline def kotlinVersion: T[String] = ${ mill.api.Task.notImplementedImpl[T[String]] }
531530
}

libs/scalalib/src/mill/scalalib/ScalaModule.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,7 @@ trait ScalaModule extends JavaModule with TestModule.ScalaModuleBase
745745
object ScalaModule {
746746
class PreCompiled(val preCompiledConfig: mill.api.PreCompiled.Config)(implicit
747747
ctx: mill.api.ModuleCtx
748-
)
749-
extends ScalaModule
748+
) extends ScalaModule
750749
with mill.javalib.JvmPreCompiledModule {
751750
inline def scalaVersion: T[String] = ${ mill.api.Task.notImplementedImpl[T[String]] }
752751
}

runner/meta/src/mill/meta/CodeGen.scala

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ object CodeGen {
3838
else Seq("mill.javalib.", "mill.scalalib.", "mill.kotlinlib.", "mill.").map(_ + name)
3939

4040
candidates
41-
.find(c => try { Class.forName(c + "$PreCompiled"); true } catch { case _: ClassNotFoundException => false })
41+
.find(c =>
42+
try { Class.forName(c + "$PreCompiled"); true }
43+
catch { case _: ClassNotFoundException => false }
44+
)
4245
.map(_ + ".PreCompiled")
4346
}
4447

@@ -138,7 +141,7 @@ object CodeGen {
138141
val parentDir = scriptPath / os.up / os.up
139142
scriptSources.exists(parent =>
140143
parent.last.endsWith(".yaml") &&
141-
parent / os.up == parentDir
144+
parent / os.up == parentDir
142145
)
143146
}
144147

@@ -154,7 +157,9 @@ object CodeGen {
154157
hasYamlParent(scriptPath) &&
155158
parsedYamlHeaderData
156159
.get(scriptPath)
157-
.exists(data => findPreCompiledClass(data.`extends`.value.value.map(_.value)).isDefined) &&
160+
.exists(data =>
161+
findPreCompiledClass(data.`extends`.value.value.map(_.value)).isDefined
162+
) &&
158163
childScriptPaths(scriptPath).forall { case (_, childPath) =>
159164
childPath.last.endsWith(".yaml") && rec(childPath)
160165
}

0 commit comments

Comments
 (0)