Skip to content

Commit

Permalink
Update scalafmt-core to 3.8.6 (#252)
Browse files Browse the repository at this point in the history
* Update scalafmt-core to 3.8.6

* Reformat with scalafmt 3.8.6

Executed command: scalafmt --non-interactive

* Add 'Reformat with scalafmt 3.8.6' to .git-blame-ignore-revs
  • Loading branch information
scala-steward authored Jan 27, 2025
1 parent f8939ec commit 8dd918c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ f1072e4ce0c0188c237e2aaac9eefd0491af29e7

# Scala Steward: Reformat with scalafmt 3.8.5
14162022a8faeee49ba04ea875b67d4119f79425

# Scala Steward: Reformat with scalafmt 3.8.6
d54c550427cada1ce2ccbb699a404eb80bcfc046
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.8.5"
version = "3.8.6"
runner.dialect = "scala212"
style = defaultWithAlign
maxColumn = 120
Expand Down
6 changes: 2 additions & 4 deletions src/test/scala/autoversion/model/BumpOrderingSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,17 @@ class BumpOrderingSpec extends AnyFlatSpec with Matchers with ScalaCheckDrivenPr
private val bumpGen: Gen[Bump] = Gen.oneOf(Bump.Major, Bump.Minor, Bump.Bugfix)
private val bumpListGen = Gen.nonEmptyListOf(bumpGen)

it should "always prioritize a major bump" in {
it should "always prioritize a major bump" in
forAll(bumpListGen) { bumps =>
if (bumps.contains(Bump.Major))
bumps.max shouldBe Bump.Major
}
}

it should "prioritize a minor bump if there is no major bump" in {
it should "prioritize a minor bump if there is no major bump" in
forAll(bumpListGen) { bumps =>
if (!bumps.contains(Bump.Major) && bumps.contains(Bump.Minor))
bumps.max shouldBe Bump.Minor
}
}

it should "prioritize a bugfix bump if there is no other kinds of bump" in
forAll(bumpListGen) { bumps =>
Expand Down

0 comments on commit 8dd918c

Please sign in to comment.