Skip to content

Commit 1180818

Browse files
committed
Apply formatting
1 parent 0d7f05f commit 1180818

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
@@ -276,12 +276,12 @@ object Build {
276276

277277
val baseOptions = overrideOptions.orElse(sharedOptions)
278278

279-
val inputs0 = if (inputs.mayAppendHash) {
279+
val inputs0 = if (inputs.mayAppendHash)
280280
updateInputs(
281281
inputs,
282282
overrideOptions.orElse(options) // update hash in inputs with options coming from the CLI or cross-building, not from the sources
283283
)
284-
} else inputs
284+
else inputs
285285

286286
val scopedSources = value(crossSources.scopedSources(baseOptions))
287287

@@ -567,7 +567,7 @@ object Build {
567567
buildTests: Boolean,
568568
partial: Option[Boolean],
569569
actionableDiagnostics: Option[Boolean],
570-
withProjectName: Boolean = false,
570+
withProjectName: Boolean = false
571571
)(using ScalaCliInvokeData): Either[BuildException, Builds] = either {
572572
val buildClient = BloopBuildClient.create(
573573
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)