diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 87cee48c8c..9f24136ab0 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,5 @@ # Scala Steward: Reformat with scalafmt 3.7.3 34ae72e8cf5878dccb44ac3f864cbf4892f18354 + +# Scala Steward: Reformat with scalafmt 3.8.2 +6d2639650f6e0b941840b995cc30b7de7afff5a0 diff --git a/.scalafmt.conf b/.scalafmt.conf index 79a9a1e13e..3f0a7550d6 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.7.17" +version = "3.8.2" align.preset = more maxColumn = 100 diff --git a/build.sc b/build.sc index 5fc222517c..8f880e220c 100644 --- a/build.sc +++ b/build.sc @@ -426,7 +426,8 @@ trait Core extends ScalaCliCrossSbtModule | def semanticDbPluginModuleName = "semanticdb-scalac" | def semanticDbPluginVersion = "${Deps.scalametaTrees.dep.version}" | - | def semanticDbJavacPluginOrganization = "${Deps.semanticDbJavac.dep.module.organization.value}" + | def semanticDbJavacPluginOrganization = "${Deps.semanticDbJavac.dep.module.organization + .value}" | def semanticDbJavacPluginModuleName = "${Deps.semanticDbJavac.dep.module.name.value}" | def semanticDbJavacPluginVersion = "${Deps.semanticDbJavac.dep.version}" | @@ -714,7 +715,8 @@ trait Build extends ScalaCliCrossSbtModule | def toolkitName = "${Deps.toolkit.dep.module.name.value}" | def toolkitTestName = "${Deps.toolkitTest.dep.module.name.value}" | def toolkitVersion = "${Deps.toolkitTest.dep.version}" - | def typelevelToolkitOrganization = "${Deps.typelevelToolkit.dep.module.organization.value}" + | def typelevelToolkitOrganization = "${Deps.typelevelToolkit.dep.module.organization + .value}" | def typelevelToolkitVersion = "${Deps.typelevelToolkit.dep.version}" | | def defaultScalaVersion = "${Scala.defaultUser}" @@ -1018,7 +1020,8 @@ trait CliIntegration extends SbtModule with ScalaCliPublishModule with HasTests | def toolkitVersionForNative05 = "${Deps.toolkitVersionForNative05}" | def toolkiMaxScalaNative = "${Deps.Versions.maxScalaNativeForToolkit}" | def typelevelToolkitVersion = "${Deps.typelevelToolkitVersion}" - | def typelevelToolkitMaxScalaNative = "${Deps.Versions.maxScalaNativeForTypelevelToolkit}" + | def typelevelToolkitMaxScalaNative = "${Deps.Versions + .maxScalaNativeForTypelevelToolkit}" | | def ghOrg = "$ghOrg" | def ghName = "$ghName" diff --git a/modules/build/src/main/scala/scala/build/Bloop.scala b/modules/build/src/main/scala/scala/build/Bloop.scala index bdf1ecca03..bdad7cf5ed 100644 --- a/modules/build/src/main/scala/scala/build/Bloop.scala +++ b/modules/build/src/main/scala/scala/build/Bloop.scala @@ -43,7 +43,8 @@ object Bloop { val buildTarget = buildTargetOpt.getOrElse { throw new Exception( - s"Expected to find project '$projectName' in build targets (only got ${results.getTargets.asScala.map("'" + _.getDisplayName + "'").mkString(", ")})" + s"Expected to find project '$projectName' in build targets (only got ${results.getTargets + .asScala.map("'" + _.getDisplayName + "'").mkString(", ")})" ) } diff --git a/modules/build/src/main/scala/scala/build/bsp/BspImpl.scala b/modules/build/src/main/scala/scala/build/bsp/BspImpl.scala index 4b5f660ba5..02aaf2dd0b 100644 --- a/modules/build/src/main/scala/scala/build/bsp/BspImpl.scala +++ b/modules/build/src/main/scala/scala/build/bsp/BspImpl.scala @@ -591,7 +591,8 @@ final class BspImpl( bloopSession.get().remoteServer.jvmVersion.exists(_.value < projectJavaHome.version) ) { reloadableOptions.logger.log( - s"Bloop JVM version too low, current ${bloopSession.get().remoteServer.jvmVersion.get.value} expected ${projectJavaHome.version}, restarting server" + s"Bloop JVM version too low, current ${bloopSession.get().remoteServer.jvmVersion.get + .value} expected ${projectJavaHome.version}, restarting server" ) // RelodableOptions don't take into account buildOptions from sources val updatedReloadableOptions = reloadableOptions.copy( diff --git a/modules/build/src/main/scala/scala/build/bsp/BspServer.scala b/modules/build/src/main/scala/scala/build/bsp/BspServer.scala index 972e69f54c..e4f2bcdd2e 100644 --- a/modules/build/src/main/scala/scala/build/bsp/BspServer.scala +++ b/modules/build/src/main/scala/scala/build/bsp/BspServer.scala @@ -280,7 +280,8 @@ class BspServer( capabilities.setCanDebug(true) val baseDirectory = new File(new URI(target.getBaseDirectory)) if ( - isIntelliJ && baseDirectory.getName == Constants.workspaceDirName && baseDirectory.getParentFile != null + isIntelliJ && baseDirectory.getName == Constants.workspaceDirName && baseDirectory + .getParentFile != null ) { val newBaseDirectory = baseDirectory.getParentFile.toPath.toUri.toASCIIString target.setBaseDirectory(newBaseDirectory) diff --git a/modules/build/src/main/scala/scala/build/input/Inputs.scala b/modules/build/src/main/scala/scala/build/input/Inputs.scala index 28e8a84b7b..ee6ab79f8e 100644 --- a/modules/build/src/main/scala/scala/build/input/Inputs.scala +++ b/modules/build/src/main/scala/scala/build/input/Inputs.scala @@ -400,7 +400,8 @@ object Inputs { |Workspace path cannot contain a ${Console.BOLD}${File.pathSeparator}${Console.RESET}. |Consider moving your project to a different path. |Alternatively, you can force your workspace with the '--workspace' option: - | ${Console.BOLD}$prog --workspace $argsString${Console.RESET}""" + | ${Console.BOLD}$prog --workspace $argsString${Console + .RESET}""" .stripMargin )) else diff --git a/modules/build/src/main/scala/scala/build/internal/markdown/MarkdownCodeWrapper.scala b/modules/build/src/main/scala/scala/build/internal/markdown/MarkdownCodeWrapper.scala index 874e242f3d..28be6ae167 100644 --- a/modules/build/src/main/scala/scala/build/internal/markdown/MarkdownCodeWrapper.scala +++ b/modules/build/src/main/scala/scala/build/internal/markdown/MarkdownCodeWrapper.scala @@ -123,8 +123,8 @@ object MarkdownCodeWrapper { else System.lineSeparator() val nextScopeIndex = if index == 0 || fence.resetScope then scopeIndex + 1 else scopeIndex val newAcc = acc + (System.lineSeparator() * (fence.startLine - line - 1)) // padding - .:++(classOpener) // new class opening (if applicable) - .:++(fence.body) // snippet body + .:++(classOpener) // new class opening (if applicable) + .:++(fence.body) // snippet body .:++(System.lineSeparator()) // padding in place of closing backticks generateMainScalaLines( snippets = snippets, @@ -157,7 +157,7 @@ object MarkdownCodeWrapper { else { val fence: MarkdownCodeBlock = snippets(index) val newAcc = acc + (System.lineSeparator() * (fence.startLine - line)) // padding - .:++(fence.body) // snippet body + .:++(fence.body) // snippet body .:++(System.lineSeparator()) // padding in place of closing backticks generateRawScalaLines(snippets, index + 1, fence.endLine + 1, newAcc) } diff --git a/modules/cli/src/main/scala/scala/cli/commands/bsp/Bsp.scala b/modules/cli/src/main/scala/scala/cli/commands/bsp/Bsp.scala index 65c3cae03b..467f94f73a 100644 --- a/modules/cli/src/main/scala/scala/cli/commands/bsp/Bsp.scala +++ b/modules/cli/src/main/scala/scala/cli/commands/bsp/Bsp.scala @@ -198,7 +198,8 @@ object Bsp extends ScalaCommand[BspOptions] { val withLauncherOptions = withEnvs.copy( classPathOptions = withEnvs.classPathOptions.copy( extraRepositories = - (withEnvs.classPathOptions.extraRepositories ++ launcherOptions.scalaRunner.cliPredefinedRepository).distinct + (withEnvs.classPathOptions.extraRepositories ++ launcherOptions.scalaRunner + .cliPredefinedRepository).distinct ), scalaOptions = withEnvs.scalaOptions.copy( defaultScalaVersion = launcherOptions.scalaRunner.cliUserScalaVersion diff --git a/modules/cli/src/main/scala/scala/cli/commands/default/LegacyScalaOptions.scala b/modules/cli/src/main/scala/scala/cli/commands/default/LegacyScalaOptions.scala index 074f0320cf..666f8723fb 100644 --- a/modules/cli/src/main/scala/scala/cli/commands/default/LegacyScalaOptions.scala +++ b/modules/cli/src/main/scala/scala/cli/commands/default/LegacyScalaOptions.scala @@ -93,13 +93,15 @@ case class LegacyScalaOptions( s"""Deprecated option '$s' is ignored. |The compiled project files will be saved in the '.scala-build' directory in the project root folder. |If you need to produce an actual jar file, run the '$PowerString${Package.name}' sub-command as follows: - | ${Console.BOLD}$progName $PowerString${Package.name} --library $filteredArgsString${Console.RESET}""".stripMargin + | ${Console.BOLD}$progName $PowerString${Package + .name} --library $filteredArgsString${Console.RESET}""".stripMargin ) } noSaveOptionString.foreach { ns => logger.message( s"""Deprecated option '$ns' is ignored. - |A jar file is not saved unless the '$PowerString${Package.name}' sub-command is called.""".stripMargin + |A jar file is not saved unless the '$PowerString${Package + .name}' sub-command is called.""".stripMargin ) } for { diff --git a/modules/cli/src/main/scala/scala/cli/commands/dependencyupdate/DependencyUpdate.scala b/modules/cli/src/main/scala/scala/cli/commands/dependencyupdate/DependencyUpdate.scala index a1bd19167d..bb05607fa8 100644 --- a/modules/cli/src/main/scala/scala/cli/commands/dependencyupdate/DependencyUpdate.scala +++ b/modules/cli/src/main/scala/scala/cli/commands/dependencyupdate/DependencyUpdate.scala @@ -96,7 +96,8 @@ object DependencyUpdate extends ScalaCommand[DependencyUpdateOptions] { os.write.over(file, appliedDiagnostics) diagnostics.foreach(diagnostic => logger.message( - s"Updated dependency ${diagnostic._2.dependencyModuleName}: ${diagnostic._2.currentVersion} -> ${diagnostic._2.newVersion}" + s"Updated dependency ${diagnostic._2.dependencyModuleName}: ${diagnostic._2 + .currentVersion} -> ${diagnostic._2.newVersion}" ) ) case (Left(file), diagnostics) => diff --git a/modules/cli/src/main/scala/scala/cli/commands/publish/Publish.scala b/modules/cli/src/main/scala/scala/cli/commands/publish/Publish.scala index e278bfcda2..46ed67744b 100644 --- a/modules/cli/src/main/scala/scala/cli/commands/publish/Publish.scala +++ b/modules/cli/src/main/scala/scala/cli/commands/publish/Publish.scala @@ -1051,14 +1051,16 @@ object Publish extends ScalaCommand[PublishOptions] with BuildCommandHelpers { try repoParams0.hooks.beforeUpload(finalFileSet, isSnapshot0).unsafeRun()(ec) catch { case NonFatal(e) - if "Failed to get .*oss\\.sonatype\\.org.*/staging/profiles \\(http status: 403,".r.unanchored.matches( - e.getMessage - ) => + if "Failed to get .*oss\\.sonatype\\.org.*/staging/profiles \\(http status: 403,".r + .unanchored.matches( + e.getMessage + ) => logger.exit(new WrongSonatypeServerError(isLegacySonatype)) case NonFatal(e) - if "Failed to get .*oss\\.sonatype\\.org.*/staging/profiles \\(http status: 401,".r.unanchored.matches( - e.getMessage - ) => + if "Failed to get .*oss\\.sonatype\\.org.*/staging/profiles \\(http status: 401,".r + .unanchored.matches( + e.getMessage + ) => logger.exit(new InvalidSonatypePublishCredentials(usernameOnlyAscii, passwordOnlyAscii)) case NonFatal(e) => throw new Exception(e) diff --git a/modules/cli/src/main/scala/scala/cli/commands/run/RunOptions.scala b/modules/cli/src/main/scala/scala/cli/commands/run/RunOptions.scala index 96a6ab3cbd..1993aecb62 100644 --- a/modules/cli/src/main/scala/scala/cli/commands/run/RunOptions.scala +++ b/modules/cli/src/main/scala/scala/cli/commands/run/RunOptions.scala @@ -34,7 +34,8 @@ object RunOptions { |${HelpMessages.acceptedInputs} | |To pass arguments to the actual application, just add them after `--`, like: - | ${Console.BOLD}${ScalaCli.progName} run Main.scala AnotherSource.scala -- first-arg second-arg${Console.RESET} + | ${Console.BOLD}${ScalaCli + .progName} run Main.scala AnotherSource.scala -- first-arg second-arg${Console.RESET} | |${HelpMessages.commandDocWebsiteReference(cmdName)}""".stripMargin } diff --git a/modules/cli/src/main/scala/scala/cli/commands/shared/HelpMessages.scala b/modules/cli/src/main/scala/scala/cli/commands/shared/HelpMessages.scala index 7c3fc8acce..d7fdea1cca 100644 --- a/modules/cli/src/main/scala/scala/cli/commands/shared/HelpMessages.scala +++ b/modules/cli/src/main/scala/scala/cli/commands/shared/HelpMessages.scala @@ -34,7 +34,8 @@ object HelpMessages { def commandFullHelpReference(commandName: String, needsPower: Boolean = false): String = { val maybePowerString = if needsPower then "--power " else "" s"""You are currently viewing the basic help for the $commandName sub-command. You can view the full help by running: - | ${Console.BOLD}${ScalaCli.progName} $maybePowerString$commandName --help-full${Console.RESET}""".stripMargin + | ${Console.BOLD}${ScalaCli.progName} $maybePowerString$commandName --help-full${Console + .RESET}""".stripMargin } def commandDocWebsiteReference(websiteSuffix: String): String = diff --git a/modules/cli/src/main/scala/scala/cli/commands/shared/SharedOptions.scala b/modules/cli/src/main/scala/scala/cli/commands/shared/SharedOptions.scala index 72acd5b411..3f3e9fb821 100644 --- a/modules/cli/src/main/scala/scala/cli/commands/shared/SharedOptions.scala +++ b/modules/cli/src/main/scala/scala/cli/commands/shared/SharedOptions.scala @@ -327,7 +327,8 @@ final case class SharedOptions( if assumedSourceJars.nonEmpty then val assumedSourceJarsString = assumedSourceJars.mkString(", ") logger.message( - s"""[${Console.YELLOW}warn${Console.RESET}] Jars with the ${ScalaCliConsole.GRAY}*-sources.jar${Console.RESET} name suffix are assumed to be source jars. + s"""[${Console.YELLOW}warn${Console.RESET}] Jars with the ${ScalaCliConsole + .GRAY}*-sources.jar${Console.RESET} name suffix are assumed to be source jars. |The following jars were assumed to be source jars and will be treated as such: $assumedSourceJarsString""".stripMargin ) val (resolvedToolkitDependency, toolkitMaxDefaultScalaNativeVersions) = diff --git a/modules/cli/src/main/scala/scala/cli/commands/shebang/ShebangOptions.scala b/modules/cli/src/main/scala/scala/cli/commands/shebang/ShebangOptions.scala index c8cd9be977..0793e35c27 100644 --- a/modules/cli/src/main/scala/scala/cli/commands/shebang/ShebangOptions.scala +++ b/modules/cli/src/main/scala/scala/cli/commands/shebang/ShebangOptions.scala @@ -31,12 +31,16 @@ object ShebangOptions { | |When relying on the `run` sub-command, inputs and $baseRunnerName options can be mixed, |while program args have to be specified after `--` - | ${Console.BOLD}$progName [command] [${baseRunnerName}_options | input]... -- [program_arguments]...${Console.RESET} + | ${Console + .BOLD}$progName [command] [${baseRunnerName}_options | input]... -- [program_arguments]...${Console + .RESET} | |However, for the `shebang` sub-command, only a single input file can be set, while all $baseRunnerName options |have to be set before the input file. |All inputs after the first are treated as program arguments, without the need for `--` - | ${Console.BOLD}$progName shebang [${baseRunnerName}_options]... input [program_arguments]...${Console.RESET} + | ${Console + .BOLD}$progName shebang [${baseRunnerName}_options]... input [program_arguments]...${Console + .RESET} | |Using this, it is possible to conveniently set up Unix shebang scripts. For example: | ${ScalaCliConsole.GRAY}#!/usr/bin/env -S $progName shebang --scala-version 2.13 diff --git a/modules/generate-reference-doc/src/main/scala/scala/cli/doc/GenerateReferenceDoc.scala b/modules/generate-reference-doc/src/main/scala/scala/cli/doc/GenerateReferenceDoc.scala index cdfac76025..8e813a00ff 100644 --- a/modules/generate-reference-doc/src/main/scala/scala/cli/doc/GenerateReferenceDoc.scala +++ b/modules/generate-reference-doc/src/main/scala/scala/cli/doc/GenerateReferenceDoc.scala @@ -161,7 +161,8 @@ object GenerateReferenceDoc extends CaseApp[InternalDocOptions] { else "" } | - |This is a summary of options that are available for each subcommand of the `${ScalaCli.baseRunnerName}` command. + |This is a summary of options that are available for each subcommand of the `${ScalaCli + .baseRunnerName}` command. | |""".stripMargin ) diff --git a/modules/integration/src/test/scala/scala/cli/integration/RunTestDefinitions.scala b/modules/integration/src/test/scala/scala/cli/integration/RunTestDefinitions.scala index 606579a980..8fce5d97e9 100644 --- a/modules/integration/src/test/scala/scala/cli/integration/RunTestDefinitions.scala +++ b/modules/integration/src/test/scala/scala/cli/integration/RunTestDefinitions.scala @@ -1097,10 +1097,12 @@ abstract class RunTestDefinitions ) } |You can run one of them by passing it with the --main-class option, e.g. - | ${Console.BOLD}${TestUtil.detectCliPath} run . $extraOptionsString --main-class ${expectedMainClassNames.head}${Console.RESET} + | ${Console.BOLD}${TestUtil.detectCliPath} run . $extraOptionsString --main-class ${expectedMainClassNames + .head}${Console.RESET} | |You can pick the main class interactively by passing the --interactive option. - | ${Console.BOLD}${TestUtil.detectCliPath} run . $extraOptionsString --interactive${Console.RESET}""".stripMargin + | ${Console.BOLD}${TestUtil + .detectCliPath} run . $extraOptionsString --interactive${Console.RESET}""".stripMargin expect(errorMessage == expectedErrorMessage) } } diff --git a/modules/integration/src/test/scala/scala/cli/integration/SemanticDbTestDefinitions.scala b/modules/integration/src/test/scala/scala/cli/integration/SemanticDbTestDefinitions.scala index 722fcd0e37..9569e1c8ed 100644 --- a/modules/integration/src/test/scala/scala/cli/integration/SemanticDbTestDefinitions.scala +++ b/modules/integration/src/test/scala/scala/cli/integration/SemanticDbTestDefinitions.scala @@ -100,7 +100,8 @@ trait SemanticDbTestDefinitions { _: CompileTestDefinitions => val semDbFile = semDbFiles.head val expectedSemanticDbPath = if (semanticDbTargetDir.isDefined) - os.rel / semanticDbTargetDir.get / "META-INF" / "semanticdb" / "foo" / s"$sourceFileName.semanticdb" + os.rel / semanticDbTargetDir + .get / "META-INF" / "semanticdb" / "foo" / s"$sourceFileName.semanticdb" else os.rel / "META-INF" / "semanticdb" / "foo" / s"$sourceFileName.semanticdb" expect(semDbFile.endsWith(expectedSemanticDbPath)) diff --git a/modules/integration/src/test/scala/scala/cli/integration/SipScalaTests.scala b/modules/integration/src/test/scala/scala/cli/integration/SipScalaTests.scala index 8e8d26f441..8915eb0e2e 100644 --- a/modules/integration/src/test/scala/scala/cli/integration/SipScalaTests.scala +++ b/modules/integration/src/test/scala/scala/cli/integration/SipScalaTests.scala @@ -695,7 +695,8 @@ class SipScalaTests extends ScalaCliSuite with SbtTestHelper with MillTestHelper "--predefined-repository", (localRepoPath / "https" / "repo1.maven.org" / "maven2").toNIO.toUri.toASCIIString, "--predefined-repository", - (localRepoPath / "https" / "scala-ci.typesafe.com" / "artifactory" / "scala-integration").toNIO.toUri.toASCIIString, + (localRepoPath / "https" / "scala-ci.typesafe.com" / "artifactory" / "scala-integration") + .toNIO.toUri.toASCIIString, "run", "simple.sc", "--with-compiler", diff --git a/modules/options/src/main/scala/scala/build/Artifacts.scala b/modules/options/src/main/scala/scala/build/Artifacts.scala index d21c159328..f15df7a91a 100644 --- a/modules/options/src/main/scala/scala/build/Artifacts.scala +++ b/modules/options/src/main/scala/scala/build/Artifacts.scala @@ -684,7 +684,8 @@ object Artifacts { resolutionError: coursier.error.ResolutionError.Simple ) = resolutionError match { case ex: ResolutionError.CantDownloadModule - if ex.module.name.value == s"${Constants.toolkitName}_2.12" || ex.module.name.value == s"${Constants.toolkitTestName}_2.12" => + if ex.module.name.value == s"${Constants.toolkitName}_2.12" || ex.module.name + .value == s"${Constants.toolkitTestName}_2.12" => val errorPositions = dependencies.collect { case Positioned(pos, dep) if ex.module == dep.module => pos diff --git a/project/deps.sc b/project/deps.sc index d73eb43367..94137cc6ec 100644 --- a/project/deps.sc +++ b/project/deps.sc @@ -170,7 +170,7 @@ object Deps { def scala3Compiler(sv: String) = ivy"org.scala-lang:scala3-compiler_3:$sv" def scalaAsync = ivy"org.scala-lang.modules::scala-async:1.0.1".exclude("*" -> "*") def scalac(sv: String) = ivy"org.scala-lang:scala-compiler:$sv" - def scalafmtCli = ivy"org.scalameta:scalafmt-cli_2.13:3.7.17" + def scalafmtCli = ivy"org.scalameta:scalafmt-cli_2.13:3.8.2" // Force using of 2.13 - is there a better way? def scalaJsEnvJsdomNodejs = ivy"org.scala-js:scalajs-env-jsdom-nodejs_2.13:1.1.0" diff --git a/website/docs/reference/cli-options.md b/website/docs/reference/cli-options.md index 88c0268a2b..bf0e362952 100644 --- a/website/docs/reference/cli-options.md +++ b/website/docs/reference/cli-options.md @@ -451,7 +451,7 @@ Pass a global dialect for scalafmt. This overrides whatever value is configured Aliases: `--fmt-version` -Pass scalafmt version before running it (3.7.17 by default). If passed, this overrides whatever value is configured in the .scalafmt.conf file. +Pass scalafmt version before running it (3.8.2 by default). If passed, this overrides whatever value is configured in the .scalafmt.conf file. ## Global suppress warning options diff --git a/website/docs/reference/scala-command/cli-options.md b/website/docs/reference/scala-command/cli-options.md index fcf5c9a05f..29f8753123 100644 --- a/website/docs/reference/scala-command/cli-options.md +++ b/website/docs/reference/scala-command/cli-options.md @@ -376,7 +376,7 @@ Aliases: `--fmt-version` `IMPLEMENTATION specific` per Scala Runner specification -Pass scalafmt version before running it (3.7.17 by default). If passed, this overrides whatever value is configured in the .scalafmt.conf file. +Pass scalafmt version before running it (3.8.2 by default). If passed, this overrides whatever value is configured in the .scalafmt.conf file. ## Global suppress warning options diff --git a/website/docs/reference/scala-command/runner-specification.md b/website/docs/reference/scala-command/runner-specification.md index e26ae8d891..85e6f827bf 100644 --- a/website/docs/reference/scala-command/runner-specification.md +++ b/website/docs/reference/scala-command/runner-specification.md @@ -3765,7 +3765,7 @@ Aliases: `--dialect` **--scalafmt-version** -Pass scalafmt version before running it (3.7.17 by default). If passed, this overrides whatever value is configured in the .scalafmt.conf file. +Pass scalafmt version before running it (3.8.2 by default). If passed, this overrides whatever value is configured in the .scalafmt.conf file. Aliases: `--fmt-version`