Skip to content

Update scalafmt-core to 3.8.2 #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Scala Steward: Reformat with scalafmt 3.7.17
98879bf22a5e11b4adf2047825c9efa0b9a22428

# Scala Steward: Reformat with scalafmt 3.8.2
89bb910d54760f8c08069de7983d6965fb1bf637
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.7.17"
version = "3.8.2"

runner.dialect=scala213source3

Expand Down
13 changes: 8 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
"org.typelevel" %%% "cats-effect" % Version.catsEffect,
"com.eed3si9n.expecty" %%% "expecty" % Version.expecty,
// https://github.com/portable-scala/portable-scala-reflect/issues/23
"org.portable-scala" %%% "portable-scala-reflect" % Version.portableReflect cross CrossVersion.for3Use2_13,
"org.portable-scala" %%% "portable-scala-reflect" % Version
.portableReflect cross CrossVersion.for3Use2_13,
"org.typelevel" %% "scalac-compat-annotation" % Version.scalacCompatAnnotation,
"org.scalameta" %%% "munit-diff" % Version.munitDiff
),
Expand All @@ -85,8 +86,9 @@ lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
lazy val coreJVM = core.jvm
.settings(
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-stubs" % Version.scalajsStubs % "provided" cross CrossVersion.for3Use2_13,
"junit" % "junit" % Version.junit % Optional,
"org.scala-js" %%% "scalajs-stubs" % Version
.scalajsStubs % "provided" cross CrossVersion.for3Use2_13,
"junit" % "junit" % Version.junit % Optional,
if (scalaVersion.value.startsWith("3."))
"org.scala-lang" % "scala-reflect" % scala213
else
Expand All @@ -107,8 +109,9 @@ lazy val framework = crossProject(JVMPlatform, JSPlatform, NativePlatform)
lazy val frameworkJVM = framework.jvm
.settings(
libraryDependencies ++= Seq(
"org.scala-sbt" % "test-interface" % Version.testInterface,
"org.scala-js" %%% "scalajs-stubs" % Version.scalajsStubs % "provided" cross CrossVersion.for3Use2_13
"org.scala-sbt" % "test-interface" % Version.testInterface,
"org.scala-js" %%% "scalajs-stubs" % Version
.scalajsStubs % "provided" cross CrossVersion.for3Use2_13
)
)

Expand Down
3 changes: 2 additions & 1 deletion modules/core/shared/src/main/scala/weaver/Formatter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ object Formatter {
val newLine = '\n'
builder.append(formatResultStatus(name, result, outcome.duration))

if ((mode == Verbose && outcome.status.isFailed) || (mode == Summary && !outcome.status.isFailed))
if ((mode == Verbose && outcome.status
.isFailed) || (mode == Summary && !outcome.status.isFailed))
result.formatted.foreach { resultInfo =>
builder.append(EOL)
builder.append(resultInfo)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ object DogFoodTests extends IOSuite {

val expected =
s"""
|- erroring with a long message: ${Meta.ErroringWithLongPayload.smiles} 0ms
|- erroring with a long message: ${Meta.ErroringWithLongPayload
.smiles} 0ms
| Meta$$CustomException: surfaced error
|
| DogFoodTests.scala:15 my.package.MyClass#MyMethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ trait Checkers {
s"""Property test failed on try $ith with seed $seed and input $input.
|You can reproduce this by adding the following override to your suite:
|
|override def checkConfig = super.checkConfig.withInitialSeed($seed.toOption)""".stripMargin)
|override def checkConfig = super.checkConfig.withInitialSeed($seed.toOption)"""
.stripMargin)
.and(exp)
copy(failure = Some(failure))
} else this
Expand Down