Skip to content

Commit b2f9aba

Browse files
build(deps): update scalafmt-core from 3.9.6 to 3.9.7 (#1773)
* build(deps): update scalafmt-core from 3.9.6 to 3.9.7 * Reformat with scalafmt 3.9.7 Executed command: scalafmt --non-interactive * Add 'Reformat with scalafmt 3.9.7' to .git-blame-ignore-revs
1 parent b8145f0 commit b2f9aba

17 files changed

Lines changed: 25 additions & 22 deletions

File tree

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66

77
# Scala Steward: Reformat with scalafmt 3.8.5
88
1bd8ff94908cc3ce3f979a773dcb02429bac1a4c
9+
10+
# Scala Steward: Reformat with scalafmt 3.9.7
11+
ac9f11c562113c4dcad28bf513b0e57622780eb9

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.9.6
1+
version = 3.9.7
22
project.git = true
33
lineEndings = unix
44
runner.dialect = scala213source3

modules/core/src/main/scala/stryker4s/config/codec/CirisConfigDecoders.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ trait CirisConfigDecoders {
8080
case (key, Thresholds(high, _, _)) if isNotPercentage(high) => notPercentageError(high, key)
8181
case (key, Thresholds(_, low, _)) if isNotPercentage(low) => notPercentageError(low, key)
8282
case (key, Thresholds(_, _, break)) if isNotPercentage(break) => notPercentageError(break, key)
83-
case (key, Thresholds(high, low, _)) if high < low =>
83+
case (key, Thresholds(high, low, _)) if high < low =>
8484
ConfigError
8585
.decode("thresholds.high", key, high)
8686
.and(

modules/core/src/main/scala/stryker4s/config/source/CliConfigSource.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CliConfigSource[F[_]](args: Seq[String]) extends ConfigSource[F] with Ciri
2323
val parsed = OParser.runParser(parser, args, none, parserSetup)
2424

2525
parsed match {
26-
case (Some(Some(value)), _) => ConfigValue.loaded(ConfigKey(name.value), value)
26+
case (Some(Some(value)), _) => ConfigValue.loaded(ConfigKey(name.value), value)
2727
case (_, errs) if errs.nonEmpty =>
2828
errs
2929
.map {

modules/core/src/main/scala/stryker4s/extension/DurationExtensions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object DurationExtensions {
2828
timeStrings match {
2929
case Chain() => "0 seconds"
3030
case Chain(a) => a
31-
case _ =>
31+
case _ =>
3232
val (strings, last) = timeStrings.initLast.get
3333
strings.mkString_(", ") + " and " + last
3434
}

modules/core/src/main/scala/stryker4s/extension/FileExtensions.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ object FileExtensions {
1616
final def relativePath(implicit config: Config): Path = relativePath(config.baseDir)
1717

1818
final def relativePath(base: Path) = (base.isAbsolute, path.isAbsolute) match {
19-
case (true, false) => base.relativize(path.absolute)
20-
case (false, true) => base.absolute.relativize(path)
21-
case (true, true) => base.relativize(path)
19+
case (true, false) => base.relativize(path.absolute)
20+
case (false, true) => base.absolute.relativize(path)
21+
case (true, true) => base.relativize(path)
2222
case (false, false) =>
2323
Path(path.toString.stripPrefix(base.toString + File.separator))
2424
}

modules/core/src/main/scala/stryker4s/mutants/findmutants/MutantMatcher.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class MutantMatcherImpl()(implicit config: Config) extends MutantMatcher {
169169

170170
mutatedTopStatement match {
171171
case t: Term => MutatedCode(t, metadata)
172-
case t =>
172+
case t =>
173173
throw new RuntimeException(
174174
s"Could not transform '$original' in ${placeableTree.tree} (${metadata.showLocation}). Expected a Term, but was a ${t.getClass().getSimpleName}"
175175
)

modules/core/src/main/scala/stryker4s/mutants/tree/MutantInstrumenter.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class MutantInstrumenter(options: InstrumenterOptions)(implicit log: Logger) {
5858
val newTree = Try(context.source.transformOnce(instrumentWithMutants(mutantMap))) match {
5959
case Success(tree) => tree
6060
case Failure(e: Stryker4sException) => throw e
61-
case Failure(e) =>
61+
case Failure(e) =>
6262
log.error(s"Failed to instrument mutants in `${context.path}`.", e)
6363
throw new UnableToBuildPatternMatchException(context.path)
6464
}
@@ -115,7 +115,7 @@ class MutantInstrumenter(options: InstrumenterOptions)(implicit log: Logger) {
115115
/** Extracts the mutant id from a case statement
116116
*/
117117
private def extractMutantId(pat: Pat) = pat match {
118-
case Lit.Int(value) => MutantId(value)
118+
case Lit.Int(value) => MutantId(value)
119119
case Pat.Extract.After_4_6_0(Term.Name("Some"), Pat.ArgClause(List(Lit.String(value)))) =>
120120
MutantId(value.toInt)
121121
case _ => throw new IllegalArgumentException(s"Could not extract mutant id from '${pat.syntax}'")

modules/core/src/main/scala/stryker4s/report/ConsoleReporter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class ConsoleReporter()(implicit config: Config, log: Logger) extends Reporter {
7575
case _ if metrics.mutationScore.isNaN() => log.info(scoreString)
7676
case SuccessStatus => log.info(scoreString)
7777
case WarningStatus => log.warn(scoreString)
78-
case DangerStatus =>
78+
case DangerStatus =>
7979
log.error(s"Mutation score dangerously low!")
8080
log.error(scoreString)
8181
case ErrorStatus =>

modules/core/src/main/scala/stryker4s/run/Stryker4sRunner.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ abstract class Stryker4sRunner(implicit log: Logger) {
5656

5757
private def resolveReporters()(implicit config: Config): List[Reporter] =
5858
config.reporters.toList.map {
59-
case Console => new ConsoleReporter()
60-
case Html => new HtmlReporter(new DiskFileIO(), new DesktopFileIO())
61-
case Json => new JsonReporter(new DiskFileIO())
59+
case Console => new ConsoleReporter()
60+
case Html => new HtmlReporter(new DiskFileIO(), new DesktopFileIO())
61+
case Json => new JsonReporter(new DiskFileIO())
6262
case Dashboard =>
6363
implicit val httpBackend: Resource[IO, Backend[IO]] =
6464
// Catch if the user runs the dashboard on Java <11

0 commit comments

Comments
 (0)