Skip to content

ducktape 0.2.2

Compare
Choose a tag to compare
@arainko arainko released this 27 May 20:28
· 181 commits to series/0.2.x since this release
b889101

This release brings back lints for configs that override each other, for example:

final case class FieldSource(additionalArg: String, str: String)

val fieldSource = FieldSource("str-sourced", "str2")

val expected = TestClassWithAdditionalString(1, "str2", "str-computed")

testClass
    .into[TestClassWithAdditionalString]
    .transform(
        Field.allMatching(fieldSource),
        Field.allMatching(fieldSource),
      )

will result in a compilation warning that looks like this:

Configs for:
  * TestClassWithAdditionalString.str
  * TestClassWithAdditionalString.additionalArg
are being overriden by Field.allMatching(fieldSource) @ AppliedBuilderSuite.scala:185:41

It also introduces Mode#locally that allows you to use a Mode in a scope of a function so that it doesn't need to be bound to a given.

What's Changed

Full Changelog: v0.2.1...v0.2.2