Skip to content

Commit 830ab30

Browse files
committed
Apply formatting
1 parent 52fe31c commit 830ab30

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

modules/build/src/main/scala/scala/build/BloopBuildClient.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ trait BloopBuildClient extends bsp4j.BuildClient {
1515
object BloopBuildClient {
1616
def create(
1717
projectNameOpt: Option[ProjectName],
18-
logger : Logger,
18+
logger: Logger,
1919
keepDiagnostics: Boolean
2020
): BloopBuildClient =
2121
new ConsoleBloopBuildClient(

modules/build/src/main/scala/scala/build/Build.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,12 @@ object Build {
281281

282282
val baseOptions = overrideOptions.orElse(sharedOptions)
283283

284-
val inputs0 = if (inputs.mayAppendHash) {
284+
val inputs0 = if (inputs.mayAppendHash)
285285
updateInputs(
286286
inputs,
287287
overrideOptions.orElse(options) // update hash in inputs with options coming from the CLI or cross-building, not from the sources
288288
)
289-
} else inputs
289+
else inputs
290290

291291
val scopedSources = value(crossSources.scopedSources(baseOptions))
292292

@@ -572,7 +572,7 @@ object Build {
572572
buildTests: Boolean,
573573
partial: Option[Boolean],
574574
actionableDiagnostics: Option[Boolean],
575-
withProjectName: Boolean = false,
575+
withProjectName: Boolean = false
576576
)(using ScalaCliInvokeData): Either[BuildException, Builds] = either {
577577
val buildClient = BloopBuildClient.create(
578578
Option.when(withProjectName)(inputs.projectName),

modules/build/src/main/scala/scala/build/internal/markdown/MarkdownCodeWrapper.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ object MarkdownCodeWrapper {
123123
else System.lineSeparator()
124124
val nextScopeIndex = if index == 0 || fence.resetScope then scopeIndex + 1 else scopeIndex
125125
val newAcc = acc + (System.lineSeparator() * (fence.startLine - line - 1)) // padding
126-
.:++(classOpener) // new class opening (if applicable)
127-
.:++(fence.body) // snippet body
126+
.:++(classOpener) // new class opening (if applicable)
127+
.:++(fence.body) // snippet body
128128
.:++(System.lineSeparator()) // padding in place of closing backticks
129129
generateMainScalaLines(
130130
snippets = snippets,
@@ -157,7 +157,7 @@ object MarkdownCodeWrapper {
157157
else {
158158
val fence: MarkdownCodeBlock = snippets(index)
159159
val newAcc = acc + (System.lineSeparator() * (fence.startLine - line)) // padding
160-
.:++(fence.body) // snippet body
160+
.:++(fence.body) // snippet body
161161
.:++(System.lineSeparator()) // padding in place of closing backticks
162162
generateRawScalaLines(snippets, index + 1, fence.endLine + 1, newAcc)
163163
}

modules/cli/src/main/scala/scala/cli/commands/run/Run.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import java.io.File
88
import java.util.Locale
99
import java.util.concurrent.CompletableFuture
1010
import java.util.concurrent.atomic.AtomicReference
11+
1112
import scala.build.EitherCps.{either, value}
1213
import scala.build.*
1314
import scala.build.errors.{BuildException, InputsException}

modules/integration/src/test/scala/scala/cli/integration/compose/ComposeRunDefinitions.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ trait ComposeRunDefinitions { _: RunTestDefinitions =>
2525
)
2626

2727
inputs.fromRoot { root =>
28-
val called = os.proc(TestUtil.cli, extraOptions, "--power", "core", Constants.moduleConfigFileName)
29-
.call(cwd = root, stderr = os.Pipe)
28+
val called =
29+
os.proc(TestUtil.cli, extraOptions, "--power", "core", Constants.moduleConfigFileName)
30+
.call(cwd = root, stderr = os.Pipe)
3031
expect(called.out.trim() ==
3132
"""util
3233
|util2""".stripMargin)

0 commit comments

Comments
 (0)