diff --git a/.scalafix.conf b/.scalafix.conf index cd86c522..cd86de77 100644 --- a/.scalafix.conf +++ b/.scalafix.conf @@ -30,3 +30,4 @@ OrganizeImports.importSelectorsOrder = Ascii OrganizeImports.importsOrder = Ascii OrganizeImports.preset = INTELLIJ_2020_3 OrganizeImports.removeUnused = false +OrganizeImports.targetDialect = Scala3 diff --git a/project/plugins.sbt b/project/plugins.sbt index 6f8101cf..37805baf 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,5 +1,5 @@ val assemblyVersion = "2.2.0" -val scalafixVersion = "0.11.1" +val scalafixVersion = "0.12.0" val scalafmtVersion = "2.5.2" val wartremoverVersion = "3.1.6" diff --git a/src/main/scala/com/clairvoyant/restonomer/authentication/RestonomerAuthentication.scala b/src/main/scala/com/clairvoyant/restonomer/authentication/RestonomerAuthentication.scala index 5f426a0a..d61f6711 100644 --- a/src/main/scala/com/clairvoyant/restonomer/authentication/RestonomerAuthentication.scala +++ b/src/main/scala/com/clairvoyant/restonomer/authentication/RestonomerAuthentication.scala @@ -4,8 +4,8 @@ import com.amazonaws.DefaultRequest import com.amazonaws.auth.internal.SignerConstants.* import com.amazonaws.auth.{AWS4Signer, BasicAWSCredentials} import com.amazonaws.http.HttpMethodName -import com.clairvoyant.restonomer.common.APIKeyPlaceholders.* import com.clairvoyant.restonomer.common.* +import com.clairvoyant.restonomer.common.APIKeyPlaceholders.* import com.clairvoyant.restonomer.exception.RestonomerException import com.clairvoyant.restonomer.sttpBackend import com.jayway.jsonpath.JsonPath diff --git a/src/main/scala/com/clairvoyant/restonomer/config/RestonomerContextLoader.scala b/src/main/scala/com/clairvoyant/restonomer/config/RestonomerContextLoader.scala index 4bb8be21..8349f965 100644 --- a/src/main/scala/com/clairvoyant/restonomer/config/RestonomerContextLoader.scala +++ b/src/main/scala/com/clairvoyant/restonomer/config/RestonomerContextLoader.scala @@ -1,13 +1,10 @@ package com.clairvoyant.restonomer.config -import com.clairvoyant.restonomer.exception.RestonomerException import zio.* import zio.config.typesafe.* -import java.io.File -import scala.annotation.tailrec import scala.io.Source -import scala.util.{Failure, Success, Try, Using} +import scala.util.{Failure, Success, Using} trait RestonomerContextLoader {