All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fix.UseNamedParametersConfig.scala Maven / Gradle / Ivy

The newest version!
package fix

import metaconfig.ConfDecoder
import metaconfig.annotation.Description
import metaconfig.generic.Surface

final case class UseNamedParametersConfig(
  @Description(
    "Only perform the rewrite for method calls " +
      "with number of parameters equal or greater than this value"
  )
  minParams: Int,
  @Description("Skip variable names with a single letter or followed by a sequence of numbers")
  skipSingleAlphabet: Boolean
)

object UseNamedParametersConfig {
  val default: UseNamedParametersConfig = UseNamedParametersConfig(minParams = 3, skipSingleAlphabet = false)

  implicit val surface: Surface[UseNamedParametersConfig] =
    metaconfig.generic.deriveSurface[UseNamedParametersConfig]
  implicit val decoder: ConfDecoder[UseNamedParametersConfig] =
    metaconfig.generic.deriveDecoder(default)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy