Skip to content

Commit

Permalink
chore(plugins): delete wartremover
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Apr 18, 2024
1 parent c337c4c commit 698b751
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 23 deletions.
3 changes: 0 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ lazy val root = (project in file("."))
.settings(
libraryDependencies ++= Dependencies.dependencies
)
.settings(
Compile / compile / wartremoverWarnings ++= Wartremover.rules
)
.settings(
assembly / mainClass := Some("net.yoshinorin.qualtet.BootStrap")
)
Expand Down
15 changes: 0 additions & 15 deletions project/Wartremover.scala

This file was deleted.

1 change: 0 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.8")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.9")
addSbtPlugin("io.spray" % "sbt-revolver" % "0.10.0")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.2.0")
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "3.1.6")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.3")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.12.0")
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ object ApplicationConfig {
private val httpEndpoints: HttpEndpointsConfig =
HttpEndpointsConfig(system = HttpSystemEndpointConfig(metadata = HttpSystemEndpointMetadata(config.getBoolean("http.endpoints.system.metadata.enabled"))))

@SuppressWarnings(Array("org.wartremover.warts.AsInstanceOf"))
private val corsAllowOrigins: List[String] = config.getList("cors.allow-origins").unwrapped().asInstanceOf[ArrayList[String]].asScala.toList

private val jwtIss: String = config.getString("jwt.iss")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ class SearchService[F[_]: Monad](
words.flatMap(w => sentence.position(w).map(x => x.expand(8, 24, sentence.length)))
}

@SuppressWarnings(Array("org.wartremover.warts.IterableOps"))
@tailrec
private def calcSubStrRanges(idxes: Seq[Points], acc: Seq[Points] = Nil): Seq[Points] = {
idxes.headOption match {
Expand All @@ -94,7 +93,6 @@ class SearchService[F[_]: Monad](
}

@tailrec
@SuppressWarnings(Array("org.wartremover.warts.SeqApply"))
private def substrRecursively(sentence: String, idxes: Seq[Points], current: Int = 0, acc: String = ""): String = {
if (idxes.sizeIs > current) {
val currentIdx = idxes(current)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import doobie.util.query.Query0

object SearchQuery {
// https://tpolecat.github.io/doobie/docs/08-Fragments.html
@SuppressWarnings(Array("org.wartremover.warts.IterableOps"))
def search(query: List[String]): Read[(Int, ResponseSearch)] ?=> Query0[(Int, ResponseSearch)] = {
// TODO: LIMIT should be configurable
// TODO: ORDER BY asc, title...etc
Expand Down

0 comments on commit 698b751

Please sign in to comment.