Skip to content

Commit

Permalink
Merge pull request #205 from softwaremill/update/scalafmt-core-3.7.17
Browse files Browse the repository at this point in the history
Update scalafmt-core to 3.7.17
  • Loading branch information
adamw authored Sep 2, 2024
2 parents 43e2345 + ffde4e0 commit 2afef4a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
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.2.2
1c7df8c740764927fd3962f34081dc1d0840e43f

# Scala Steward: Reformat with scalafmt 3.7.17
f3e9d962fa8ceb0db3cec08bac9e4d05635f0908
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.3
version = 3.7.17
maxColumn = 120
runner.dialect = scala3
fileOverride {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ class LiteralTypeTest extends AnyFlatSpec with Matchers {
Test1["foo"]("foo").modify["foo"](_.f).setTo("bar")
""")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ModifyEachWhereTest extends AnyFlatSpec with Matchers {

Seq(Foo("asdf"))
.modify(_.eachWhere(_.field != lang2).field)
.setTo(lang2) should be (Seq(Foo("hey")))
.setTo(lang2) should be(Seq(Foo("hey")))
}

it should "not modify an optional case class field if it is none regardless of the condition" in {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,12 @@ object TestData {
case class Address(street: Option[Street])
case class Person(addresses: List[Address])

val person = Person(List(
Address(Some(Street("1 Functional Rd."))),
Address(Some(Street("2 Imperative Dr.")))
))
val person = Person(
List(
Address(Some(Street("1 Functional Rd."))),
Address(Some(Street("2 Imperative Dr.")))
)
)

case class Foo(field: String)
}

0 comments on commit 2afef4a

Please sign in to comment.