Skip to content

Commit acfcc17

Browse files
Update scalafmt-cli_2.13, scalafmt-core to 3.8.2 (#2966)
* Update scalafmt-cli_2.13, scalafmt-core to 3.8.2 * Reformat with scalafmt 3.8.2 Executed command: scalafmt --non-interactive * Add 'Reformat with scalafmt 3.8.2' to .git-blame-ignore-revs * Adjust reference docs --------- Co-authored-by: Piotr Chabelski <[email protected]>
1 parent f0555ea commit acfcc17

File tree

25 files changed

+65
-36
lines changed

25 files changed

+65
-36
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Scala Steward: Reformat with scalafmt 3.7.3
22
34ae72e8cf5878dccb44ac3f864cbf4892f18354
3+
4+
# Scala Steward: Reformat with scalafmt 3.8.2
5+
6d2639650f6e0b941840b995cc30b7de7afff5a0

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.7.17"
1+
version = "3.8.2"
22

33
align.preset = more
44
maxColumn = 100

build.sc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,8 @@ trait Core extends ScalaCliCrossSbtModule
426426
| def semanticDbPluginModuleName = "semanticdb-scalac"
427427
| def semanticDbPluginVersion = "${Deps.scalametaTrees.dep.version}"
428428
|
429-
| def semanticDbJavacPluginOrganization = "${Deps.semanticDbJavac.dep.module.organization.value}"
429+
| def semanticDbJavacPluginOrganization = "${Deps.semanticDbJavac.dep.module.organization
430+
.value}"
430431
| def semanticDbJavacPluginModuleName = "${Deps.semanticDbJavac.dep.module.name.value}"
431432
| def semanticDbJavacPluginVersion = "${Deps.semanticDbJavac.dep.version}"
432433
|
@@ -714,7 +715,8 @@ trait Build extends ScalaCliCrossSbtModule
714715
| def toolkitName = "${Deps.toolkit.dep.module.name.value}"
715716
| def toolkitTestName = "${Deps.toolkitTest.dep.module.name.value}"
716717
| def toolkitVersion = "${Deps.toolkitTest.dep.version}"
717-
| def typelevelToolkitOrganization = "${Deps.typelevelToolkit.dep.module.organization.value}"
718+
| def typelevelToolkitOrganization = "${Deps.typelevelToolkit.dep.module.organization
719+
.value}"
718720
| def typelevelToolkitVersion = "${Deps.typelevelToolkit.dep.version}"
719721
|
720722
| def defaultScalaVersion = "${Scala.defaultUser}"
@@ -1018,7 +1020,8 @@ trait CliIntegration extends SbtModule with ScalaCliPublishModule with HasTests
10181020
| def toolkitVersionForNative05 = "${Deps.toolkitVersionForNative05}"
10191021
| def toolkiMaxScalaNative = "${Deps.Versions.maxScalaNativeForToolkit}"
10201022
| def typelevelToolkitVersion = "${Deps.typelevelToolkitVersion}"
1021-
| def typelevelToolkitMaxScalaNative = "${Deps.Versions.maxScalaNativeForTypelevelToolkit}"
1023+
| def typelevelToolkitMaxScalaNative = "${Deps.Versions
1024+
.maxScalaNativeForTypelevelToolkit}"
10221025
|
10231026
| def ghOrg = "$ghOrg"
10241027
| def ghName = "$ghName"

modules/build/src/main/scala/scala/build/Bloop.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ object Bloop {
4343

4444
val buildTarget = buildTargetOpt.getOrElse {
4545
throw new Exception(
46-
s"Expected to find project '$projectName' in build targets (only got ${results.getTargets.asScala.map("'" + _.getDisplayName + "'").mkString(", ")})"
46+
s"Expected to find project '$projectName' in build targets (only got ${results.getTargets
47+
.asScala.map("'" + _.getDisplayName + "'").mkString(", ")})"
4748
)
4849
}
4950

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,8 @@ final class BspImpl(
591591
bloopSession.get().remoteServer.jvmVersion.exists(_.value < projectJavaHome.version)
592592
) {
593593
reloadableOptions.logger.log(
594-
s"Bloop JVM version too low, current ${bloopSession.get().remoteServer.jvmVersion.get.value} expected ${projectJavaHome.version}, restarting server"
594+
s"Bloop JVM version too low, current ${bloopSession.get().remoteServer.jvmVersion.get
595+
.value} expected ${projectJavaHome.version}, restarting server"
595596
)
596597
// RelodableOptions don't take into account buildOptions from sources
597598
val updatedReloadableOptions = reloadableOptions.copy(

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ class BspServer(
280280
capabilities.setCanDebug(true)
281281
val baseDirectory = new File(new URI(target.getBaseDirectory))
282282
if (
283-
isIntelliJ && baseDirectory.getName == Constants.workspaceDirName && baseDirectory.getParentFile != null
283+
isIntelliJ && baseDirectory.getName == Constants.workspaceDirName && baseDirectory
284+
.getParentFile != null
284285
) {
285286
val newBaseDirectory = baseDirectory.getParentFile.toPath.toUri.toASCIIString
286287
target.setBaseDirectory(newBaseDirectory)

modules/build/src/main/scala/scala/build/input/Inputs.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,8 @@ object Inputs {
400400
|Workspace path cannot contain a ${Console.BOLD}${File.pathSeparator}${Console.RESET}.
401401
|Consider moving your project to a different path.
402402
|Alternatively, you can force your workspace with the '--workspace' option:
403-
| ${Console.BOLD}$prog --workspace <alternative-workspace-path> $argsString${Console.RESET}"""
403+
| ${Console.BOLD}$prog --workspace <alternative-workspace-path> $argsString${Console
404+
.RESET}"""
404405
.stripMargin
405406
))
406407
else

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/bsp/Bsp.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ object Bsp extends ScalaCommand[BspOptions] {
198198
val withLauncherOptions = withEnvs.copy(
199199
classPathOptions = withEnvs.classPathOptions.copy(
200200
extraRepositories =
201-
(withEnvs.classPathOptions.extraRepositories ++ launcherOptions.scalaRunner.cliPredefinedRepository).distinct
201+
(withEnvs.classPathOptions.extraRepositories ++ launcherOptions.scalaRunner
202+
.cliPredefinedRepository).distinct
202203
),
203204
scalaOptions = withEnvs.scalaOptions.copy(
204205
defaultScalaVersion = launcherOptions.scalaRunner.cliUserScalaVersion

modules/cli/src/main/scala/scala/cli/commands/default/LegacyScalaOptions.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,15 @@ case class LegacyScalaOptions(
9393
s"""Deprecated option '$s' is ignored.
9494
|The compiled project files will be saved in the '.scala-build' directory in the project root folder.
9595
|If you need to produce an actual jar file, run the '$PowerString${Package.name}' sub-command as follows:
96-
| ${Console.BOLD}$progName $PowerString${Package.name} --library $filteredArgsString${Console.RESET}""".stripMargin
96+
| ${Console.BOLD}$progName $PowerString${Package
97+
.name} --library $filteredArgsString${Console.RESET}""".stripMargin
9798
)
9899
}
99100
noSaveOptionString.foreach { ns =>
100101
logger.message(
101102
s"""Deprecated option '$ns' is ignored.
102-
|A jar file is not saved unless the '$PowerString${Package.name}' sub-command is called.""".stripMargin
103+
|A jar file is not saved unless the '$PowerString${Package
104+
.name}' sub-command is called.""".stripMargin
103105
)
104106
}
105107
for {

0 commit comments

Comments
 (0)