Skip to content

Commit

Permalink
Merge pull request #1461 from scalacenter/update/sbt-scalafix-0.13.0
Browse files Browse the repository at this point in the history
Update sbt-scalafix to 0.13.0
  • Loading branch information
adpi2 authored Jan 8, 2025
2 parents a036d8d + 97bb7f4 commit 027e70d
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .scalafix.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rules = [
# ExplicitResultTypes,
ExplicitResultTypes,
OrganizeImports,
# RemoveUnused
RemoveUnused
]

ExplicitResultTypes {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package scaladex.core.api

import scaladex.core.model.Project.*
import scaladex.core.model.*
import scaladex.core.model.Project.*

case class ProjectResponse(
organization: Organization,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package scaladex.core.model

import scaladex.core.util.Parsers

import fastparse.NoWhitespace.*
import fastparse.*
import fastparse.NoWhitespace.*

final case class BinaryVersion(platform: Platform, language: Language):
def isValid: Boolean = platform.isValid && language.isValid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ case class MillPlugin(version: Version) extends Platform:
case _ => false

object MillPlugin:
val `0.10` = MillPlugin(Version(0, 10))
val `0.10`: MillPlugin = MillPlugin(Version(0, 10))

given ordering: Ordering[MillPlugin] = Ordering.by(p => p.asInstanceOf[Platform])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package scaladex.core.model

import scaladex.core.util.Parsers.*

import fastparse.NoWhitespace.*
import fastparse.*
import fastparse.NoWhitespace.*

sealed trait Version extends Ordered[Version]:
def value: String
Expand Down
22 changes: 11 additions & 11 deletions modules/core/shared/src/test/scala/scaladex/core/test/Values.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ package scaladex.core.test
import java.time.Instant
import java.time.temporal.ChronoUnit

import scaladex.core.model.*
import scaladex.core.model.Artifact.*
import scaladex.core.model.ArtifactDependency.Scope
import scaladex.core.model.Project.Settings
import scaladex.core.model.*
import scaladex.core.model.search.ProjectDocument

object Values:
val now: Instant = Instant.now().truncatedTo(ChronoUnit.MILLIS)
val ok: GithubStatus = GithubStatus.Ok(now)
val unknown: GithubStatus = GithubStatus.Unknown(now)

val `2.6.1` = Version(2, 6, 1)
val `2.6.1`: Version = Version(2, 6, 1)
val `4`: Version = Version(4)
val `2.5.0` = Version(2, 5, 0)
val `7.0.0` = Version(7, 0, 0)
val `7.1.0` = Version(7, 1, 0)
val `7.2.0-PREVIEW.1` = Version("7.2.0-PREVIEW.1")
val `7.2.0-PREVIEW.2` = Version("7.2.0-PREVIEW.2")
val `7.2.0` = Version(7, 2, 0)
val `7.3.0` = Version(7, 3, 0)
val `2.5.0`: Version = Version(2, 5, 0)
val `7.0.0`: Version = Version(7, 0, 0)
val `7.1.0`: Version = Version(7, 1, 0)
val `7.2.0-PREVIEW.1`: Version = Version("7.2.0-PREVIEW.1")
val `7.2.0-PREVIEW.2`: Version = Version("7.2.0-PREVIEW.2")
val `7.2.0`: Version = Version(7, 2, 0)
val `7.3.0`: Version = Version(7, 3, 0)

val `_2.13`: BinaryVersion = BinaryVersion(Jvm, Scala.`2.13`)
val `_3`: BinaryVersion = BinaryVersion(Jvm, Scala.`3`)
val `_sjs1_3`: BinaryVersion = BinaryVersion(ScalaJs.`1.x`, Scala.`3`)
val `_sjs0.6_2.13` = BinaryVersion(ScalaJs.`0.6`, Scala.`2.13`)
val `_native0.4_2.13` = BinaryVersion(ScalaNative.`0.4`, Scala.`2.13`)
val `_sjs0.6_2.13`: BinaryVersion = BinaryVersion(ScalaJs.`0.6`, Scala.`2.13`)
val `_native0.4_2.13`: BinaryVersion = BinaryVersion(ScalaNative.`0.4`, Scala.`2.13`)

private def contributor(login: String): GithubContributor =
GithubContributor(login, "", Url(""), 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import scala.util.matching.Regex
import scaladex.core.model.Project
import scaladex.infra.DataPaths

import org.json4s.*
import org.json4s.JsonAST.JField
import org.json4s.JsonAST.JObject
import org.json4s.JsonAST.JString
import org.json4s.*
import org.json4s.native.Serialization

class GithubRepoExtractor(paths: DataPaths):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package scaladex.infra.sql

import java.time.Instant

import scaladex.core.model.Artifact.*
import scaladex.core.model.*
import scaladex.core.model.Artifact.*
import scaladex.infra.sql.DoobieMappings.given
import scaladex.infra.sql.DoobieUtils.*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import java.util.UUID

import scala.util.Try

import scaladex.core.model.Project.*
import scaladex.core.model.*
import scaladex.core.model.Project.*
import scaladex.core.util.Secret
import scaladex.infra.Codecs.given

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import java.util.concurrent.Executors

import scala.concurrent.ExecutionContext

import scaladex.core.model.ArtifactDependency.Scope
import scaladex.core.model.*
import scaladex.core.model.ArtifactDependency.Scope
import scaladex.core.util.ScalaExtensions.*
import scaladex.core.util.Secret

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import com.typesafe.scalalogging.LazyLogging
import io.circe.Json
import org.apache.pekko.actor.ActorSystem
import org.apache.pekko.http.scaladsl.*
import org.apache.pekko.http.scaladsl.model.*
import org.apache.pekko.http.scaladsl.model.HttpMethods.POST
import org.apache.pekko.http.scaladsl.model.Uri.*
import org.apache.pekko.http.scaladsl.model.*
import org.apache.pekko.http.scaladsl.model.headers.*
import org.apache.pekko.http.scaladsl.unmarshalling.Unmarshal

Expand Down
2 changes: 1 addition & 1 deletion modules/server/src/main/scala/scaladex/server/Server.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import doobie.util.ExecutionContexts
import org.apache.pekko.actor.ActorSystem
import org.apache.pekko.http.scaladsl.*
import org.apache.pekko.http.scaladsl.model.StatusCodes
import org.apache.pekko.http.scaladsl.server.Directives.*
import org.apache.pekko.http.scaladsl.server.*
import org.apache.pekko.http.scaladsl.server.Directives.*

object Server extends LazyLogging:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import com.softwaremill.pekkohttpsession.SingleValueSessionSerializer
import com.softwaremill.pekkohttpsession.javadsl.InMemoryRefreshTokenStorage
import com.typesafe.scalalogging.LazyLogging
import org.apache.pekko.actor.ActorSystem
import org.apache.pekko.http.scaladsl.model.*
import org.apache.pekko.http.scaladsl.model.StatusCodes.TemporaryRedirect
import org.apache.pekko.http.scaladsl.model.Uri.Query
import org.apache.pekko.http.scaladsl.model.*
import org.apache.pekko.http.scaladsl.model.headers.Referer
import org.apache.pekko.http.scaladsl.server.Directive1
import org.apache.pekko.http.scaladsl.server.Directives.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import scaladex.core.model.Version.PreferStable
import scaladex.core.service.WebDatabase

import org.apache.pekko.http.scaladsl.model.StatusCodes.*
import org.apache.pekko.http.scaladsl.model.headers.CacheDirectives.*
import org.apache.pekko.http.scaladsl.model.headers.*
import org.apache.pekko.http.scaladsl.model.headers.CacheDirectives.*
import org.apache.pekko.http.scaladsl.server.Directives.*
import org.apache.pekko.http.scaladsl.server.RequestContext
import org.apache.pekko.http.scaladsl.server.Route
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import scaladex.view.html.notfound
import scaladex.view.project.html

import com.typesafe.scalalogging.LazyLogging
import org.apache.pekko.http.scaladsl.model.Uri.*
import org.apache.pekko.http.scaladsl.model.*
import org.apache.pekko.http.scaladsl.server.Directives.*
import org.apache.pekko.http.scaladsl.model.Uri.*
import org.apache.pekko.http.scaladsl.server.*
import org.apache.pekko.http.scaladsl.server.Directives.*

class ProjectPages(
env: Env,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import scaladex.server.TwirlSupport.given
import scaladex.view.search.html.searchresult

import org.apache.pekko.http.scaladsl.model.Uri.*
import org.apache.pekko.http.scaladsl.server.Directives.*
import org.apache.pekko.http.scaladsl.server.*
import org.apache.pekko.http.scaladsl.server.Directives.*

class SearchPages(env: Env, searchEngine: SearchEngine)(
using ExecutionContext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package scaladex.server.service

import java.time.Instant

import scaladex.core.model.ArtifactDependency.Scope
import scaladex.core.model.*
import scaladex.core.model.ArtifactDependency.Scope
import scaladex.data.cleanup.*
import scaladex.data.maven.ArtifactModel
import scaladex.data.maven.Dependency
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ addSbtPlugin("io.github.irundaia" % "sbt-sassify" % "1.5.2")
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.10.4")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.17.0")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.13.0")

libraryDependencies ++= Seq(
"org.testcontainers" % "postgresql" % "1.20.4",
Expand Down

0 comments on commit 027e70d

Please sign in to comment.