Skip to content
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

Update scalafmt-core to 3.7.15 #202

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.2.2
1c7df8c740764927fd3962f34081dc1d0840e43f

# Scala Steward: Reformat with scalafmt 3.7.15
48e3c4c15c800e1f0614eb667ff5f40fa97a76a7
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.15
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)
}
Loading