Skip to content

Commit

Permalink
Merge pull request #381 from cucumber/renovate/scalafmt-3.x
Browse files Browse the repository at this point in the history
chore(deps): update dependency scalafmt to v3.8.4
  • Loading branch information
gaeljw authored Jan 13, 2025
2 parents c54611a + 0db199f commit 2954290
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 47 deletions.
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.3
version = 3.8.4

preset=default

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ object Implicits {
* `.asMaps[K,V](classOf[K], classOf[V])` but returned as Scala collection
* types without `null` values.
*
* See also `asScalaRawMaps[T]` if you don't need `Option`s (for instance
* See also `asScalaRawMaps[T]` if you don't need `Option` s (for instance
* if you are using a DataTableType).
*
* @tparam K
Expand Down Expand Up @@ -104,7 +104,7 @@ object Implicits {
* `.asLists[T](classOf[T])` but returned as Scala collection types without
* `null` values.
*
* See also `asScalaRawLists[T]` if you don't need `Option`s (for instance
* See also `asScalaRawLists[T]` if you don't need `Option` s (for instance
* if you are using a DataTableType).
*
* @tparam T
Expand Down Expand Up @@ -150,7 +150,7 @@ object Implicits {
* of `.asList[T](classOf[T])` but returned as Scala collection types
* without `null` values.
*
* See also `asScalaRawList[T]` if you don't need `Option`s (for instance
* See also `asScalaRawList[T]` if you don't need `Option` s (for instance
* if you are using a DataTableType).
*
* @tparam T
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.scala.DefaultScalaModule

/** <p>This trait register a `DefaultDataTableEntryTransformer` using Jackson
* `ObjectMapper`.</p>
* `ObjectMapper`. </p>
*
* <p>The `[empty]` string is used as default empty string replacement. You can
* override it if you need to.</p>
Expand Down
122 changes: 80 additions & 42 deletions cucumber-scala/src/main/scala/io/cucumber/scala/Stepable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,29 @@ trait Stepable[T] {

object Stepable {

implicit def stepable9[T[
_,
_,
_,
_,
_,
_,
_,
_,
_
], X1: Stepable, X2: Stepable, X3: Stepable, X4: Stepable, X5: Stepable, X6: Stepable, X7: Stepable, X8: Stepable, X9: Stepable](
implicit ct: ClassTag[T[X1, X2, X3, X4, X5, X6, X7, X8, X9]]
implicit def stepable9[
T[
_,
_,
_,
_,
_,
_,
_,
_,
_
],
X1: Stepable,
X2: Stepable,
X3: Stepable,
X4: Stepable,
X5: Stepable,
X6: Stepable,
X7: Stepable,
X8: Stepable,
X9: Stepable
](implicit
ct: ClassTag[T[X1, X2, X3, X4, X5, X6, X7, X8, X9]]
): Stepable[T[X1, X2, X3, X4, X5, X6, X7, X8, X9]] =
new Stepable[T[X1, X2, X3, X4, X5, X6, X7, X8, X9]] {
def asJavaType: JavaType =
Expand All @@ -45,17 +56,27 @@ object Stepable {
)
}

implicit def stepable8[T[
_,
_,
_,
_,
_,
_,
_,
_
], X1: Stepable, X2: Stepable, X3: Stepable, X4: Stepable, X5: Stepable, X6: Stepable, X7: Stepable, X8: Stepable](
implicit ct: ClassTag[T[X1, X2, X3, X4, X5, X6, X7, X8]]
implicit def stepable8[
T[
_,
_,
_,
_,
_,
_,
_,
_
],
X1: Stepable,
X2: Stepable,
X3: Stepable,
X4: Stepable,
X5: Stepable,
X6: Stepable,
X7: Stepable,
X8: Stepable
](implicit
ct: ClassTag[T[X1, X2, X3, X4, X5, X6, X7, X8]]
): Stepable[T[X1, X2, X3, X4, X5, X6, X7, X8]] =
new Stepable[T[X1, X2, X3, X4, X5, X6, X7, X8]] {
def asJavaType: JavaType =
Expand All @@ -74,16 +95,25 @@ object Stepable {
)
}

implicit def stepable7[T[
_,
_,
_,
_,
_,
_,
_
], X1: Stepable, X2: Stepable, X3: Stepable, X4: Stepable, X5: Stepable, X6: Stepable, X7: Stepable](
implicit ct: ClassTag[T[X1, X2, X3, X4, X5, X6, X7]]
implicit def stepable7[
T[
_,
_,
_,
_,
_,
_,
_
],
X1: Stepable,
X2: Stepable,
X3: Stepable,
X4: Stepable,
X5: Stepable,
X6: Stepable,
X7: Stepable
](implicit
ct: ClassTag[T[X1, X2, X3, X4, X5, X6, X7]]
): Stepable[T[X1, X2, X3, X4, X5, X6, X7]] =
new Stepable[T[X1, X2, X3, X4, X5, X6, X7]] {
def asJavaType: JavaType =
Expand All @@ -101,15 +131,23 @@ object Stepable {
)
}

implicit def stepable6[T[
_,
_,
_,
_,
_,
_
], X1: Stepable, X2: Stepable, X3: Stepable, X4: Stepable, X5: Stepable, X6: Stepable](
implicit ct: ClassTag[T[X1, X2, X3, X4, X5, X6]]
implicit def stepable6[
T[
_,
_,
_,
_,
_,
_
],
X1: Stepable,
X2: Stepable,
X3: Stepable,
X4: Stepable,
X5: Stepable,
X6: Stepable
](implicit
ct: ClassTag[T[X1, X2, X3, X4, X5, X6]]
): Stepable[T[X1, X2, X3, X4, X5, X6]] =
new Stepable[T[X1, X2, X3, X4, X5, X6]] {
def asJavaType: JavaType =
Expand Down

0 comments on commit 2954290

Please sign in to comment.