Skip to content

Commit db74b8f

Browse files
committed
Apply scalafix
1 parent 5f68558 commit db74b8f

File tree

3 files changed

+22
-17
lines changed

3 files changed

+22
-17
lines changed

modules/build/src/main/scala/scala/build/GeneratedSource.scala

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@ package scala.build
22

33
import scala.build.internal.WrapperParams
44

5-
/** Represents a source that's not originally in the user's workspace, yet it's a part of the project.
6-
* It can either be synthetically generated by Scala CLI, e.g. BuildInfo or just modified, e.g. script wrappers
7-
*
8-
* @param generated - path to the file created by Scala CLI
9-
* @param reportingPath - the origin of the source:
10-
* - Left(String): there's no path that corresponds to the source it may be a snippet or a gist etc.
11-
* - Right(os.Path): this source has been generated based on a file at this path
12-
* @param wrapperParamsOpt - if the generated source is a script wrapper then the params are present here
13-
*/
5+
/** Represents a source that's not originally in the user's workspace, yet it's a part of the
6+
* project. It can either be synthetically generated by Scala CLI, e.g. BuildInfo or just modified,
7+
* e.g. script wrappers
8+
*
9+
* @param generated
10+
* \- path to the file created by Scala CLI
11+
* @param reportingPath
12+
* \- the origin of the source:
13+
* - Left(String): there's no path that corresponds to the source it may be a snippet or a gist
14+
* etc.
15+
* - Right(os.Path): this source has been generated based on a file at this path
16+
* @param wrapperParamsOpt
17+
* \- if the generated source is a script wrapper then the params are present here
18+
*/
1419
final case class GeneratedSource(
1520
generated: os.Path,
1621
reportingPath: Either[String, os.Path],

modules/build/src/main/scala/scala/build/bsp/BspImpl.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ final class BspImpl(
5252
)(using ScalaCliInvokeData) extends Bsp {
5353

5454
import BspImpl.{PreBuildData, PreBuildProject, buildTargetIdToEvent, responseError}
55-
55+
5656
private val shownGlobalMessages =
5757
new java.util.concurrent.ConcurrentHashMap[String, Unit]()
58-
private var actualLocalClient: BspClient = _
58+
private var actualLocalClient: BspClient = _
5959
private var localClient: b.BuildClient with BloopBuildClient = _
60-
private val bloopSession = new BloopSession.Reference
60+
private val bloopSession = new BloopSession.Reference
6161

6262
/** Sends the buildTarget/didChange BSP notification to the BSP client, indicating that the build
6363
* targets defined in the current session have changed.
@@ -454,7 +454,7 @@ final class BspImpl(
454454
* @param initialInputs
455455
* the initial input sources passed upon initializing the BSP connection (which are subject to
456456
* change on subsequent workspace/reload requests)
457-
*/
457+
*/
458458
override def run(initialInputs: Inputs, initialBspOptions: BspReloadableOptions): Future[Unit] = {
459459
val logger = initialBspOptions.logger
460460
val verbosity = initialBspOptions.verbosity
@@ -471,9 +471,9 @@ final class BspImpl(
471471
with b.JvmBuildServer
472472
with ScalaScriptBuildServer
473473
with HasGeneratedSources = new BuildServerProxy(
474-
() => bloopSession.get().bspServer,
475-
() => onReload()
476-
)
474+
() => bloopSession.get().bspServer,
475+
() => onReload()
476+
)
477477

478478
val localServer: b.BuildServer with b.ScalaBuildServer with b.JavaBuildServer
479479
with b.JvmBuildServer with ScalaScriptBuildServer =

modules/build/src/main/scala/scala/build/bsp/HasGeneratedSources.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ object HasGeneratedSources {
2525
sources
2626
.flatMap { g =>
2727
g.reportingPath match {
28-
case Left(_) => Nil
28+
case Left(_) => Nil
2929
case Right(_) => Seq(g.generated.toNIO.toUri.toASCIIString -> g)
3030
}
3131
}

0 commit comments

Comments
 (0)