Skip to content

Commit c319b56

Browse files
chore: update scalafmt config
1 parent 5bc49fb commit c319b56

5 files changed

Lines changed: 11 additions & 12 deletions

File tree

.scalafmt.conf

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ newlines.topLevelStatementBlankLines = [
1919

2020
onTestFailure = "To fix this, run './bin/scalafmt' from the project root directory"
2121

22-
# Mill plugin integration-test fixtures are verbatim Mill projects, not project sources
2322
project.excludePaths = [
24-
"glob:**/modules/mill/src/mill-test/**",
2523
"glob:**/target/**",
2624
"glob:**/src_managed/*"
2725
]
@@ -30,13 +28,13 @@ fileOverride {
3028
"glob:**/core/src/test/resources/scalaFiles/scala3File.scala" {
3129
runner.dialect = Scala3
3230
}
33-
"glob:**/src/*/scala-3/**.scala" {
31+
"glob:**/src/*/scala-3/**" {
3432
runner.dialect = Scala3
3533
}
36-
"glob:**/modules/mill/src/**.scala" {
34+
"glob:**/modules/{mill,commandRunner}/src/**" {
3735
runner.dialect = Scala3
3836
}
39-
"glob:**/maven/src/**.scala" {
37+
"glob:**/maven/src/**" {
4038
runner.dialect = Scala3
4139
}
4240
}

bin/scalafmt

-15 Bytes
Binary file not shown.

modules/commandRunner/src/main/scala/stryker4s/log/Slf4jLogger.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ class Slf4jLogger() extends Logger {
2727
onWarn: => Unit,
2828
onError: => Unit
2929
): Unit = level match {
30-
case Level.Debug => if (slf4jLogger.isDebugEnabled()) onDebug
31-
case Level.Info => if (slf4jLogger.isInfoEnabled()) onInfo
32-
case Level.Warn => if (slf4jLogger.isWarnEnabled()) onWarn
33-
case Level.Error => if (slf4jLogger.isErrorEnabled()) onError
30+
case Level.Debug => if slf4jLogger.isDebugEnabled() then onDebug
31+
case Level.Info => if slf4jLogger.isInfoEnabled() then onInfo
32+
case Level.Warn => if slf4jLogger.isWarnEnabled() then onWarn
33+
case Level.Error => if slf4jLogger.isErrorEnabled() then onError
3434
}
3535

3636
}

modules/commandRunner/src/test/scala/stryker4s/testutil/stubs/TestProcessRunner.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class TestProcessRunner(initialTestRunSuccess: Boolean, testRunExitCode: Try[Int
2525
override def apply(command: Command, workingDir: Path, envVar: (String, String)*)(implicit
2626
config: Config
2727
): IO[Try[Int]] = {
28-
if (envVar.isEmpty) {
29-
IO.pure(Success(if (initialTestRunSuccess) 0 else 1))
28+
if envVar.isEmpty then {
29+
IO.pure(Success(if initialTestRunSuccess then 0 else 1))
3030
} else {
3131
val _ = timesCalled.next()
3232
IO.pure(testRunExitCode(envVar.map(_._2).head.toInt))

modules/mill/src/mill-test/mutate/build.mill

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
//| mvnDeps:
22
//| - io.stryker-mutator::mill-stryker4s::@STRYKER4S_VERSION@
33
package build
4+
45
import mill.*, scalalib.*
56
import stryker4s.mill.Stryker4sModule
67

7-
object foo extends ScalaModule, Stryker4sModule {
8+
object foo extends ScalaModule with Stryker4sModule {
89
def scalaVersion = "3.3.8"
910

1011
// Sanity-check that build-tool config overrides are picked up. The sample scores ~66%, so a

0 commit comments

Comments
 (0)