From acf433ade738fa32d7de71e0b4d123fa42116761 Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Sat, 13 Jan 2024 11:15:17 +0900 Subject: [PATCH] wip --- rules/src/main/scala/fix/DiscardSingleConfig.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/src/main/scala/fix/DiscardSingleConfig.scala b/rules/src/main/scala/fix/DiscardSingleConfig.scala index eabaf4f..52cae11 100644 --- a/rules/src/main/scala/fix/DiscardSingleConfig.scala +++ b/rules/src/main/scala/fix/DiscardSingleConfig.scala @@ -29,7 +29,7 @@ object DiscardSingleConfig { implicit val surface: Surface[DiscardSingleConfig] = metaconfig.generic.deriveSurface[DiscardSingleConfig] - private implicit val lintSeverityDecoderInstance: ConfDecoder[scalafix.lint.LintSeverity] = { conf => + private implicit val lintSeverityDecoderInstance: ConfDecoder[LintSeverity] = { conf => conf.as[String].map(_.toUpperCase(Locale.ROOT)).map { case "ERROR" => LintSeverity.Error