valuesWithReason

This factory method can be used by rule authors to specify one or many configuration values along with an explanation for each value. For example:

@Configuration("imports which should not be used")
private val imports: ValuesWithReason by config(
valuesWithReason("org.junit.Test" to "Do not use Junit4. Use org.junit.jupiter.api.Test instead.")
)

Note that the config property delegate only supports the factory methods when defining ValuesWithReason.


This factory method can be used by rule authors to specify one or many configuration values along with an explanation for each value.

Note that the config property delegate only supports the factory methods when defining ValuesWithReason.