ducktape 0.2.2
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
- [Issue#142] config linting by @arainko in #159
- Update munit to 1.0.0 by @scala-steward in #168
- Add 'Mode#locally' by @arainko in #169
Full Changelog: v0.2.1...v0.2.2