Skip to content

Commit

Permalink
Added Scalafix
Browse files Browse the repository at this point in the history
  • Loading branch information
mjftw committed Jun 27, 2021
1 parent 7138cfa commit 96ac206
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .scalafix.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rules = [
DisableSyntax,
RemoveUnused,
NoValInForComprehension,
LeakingImplicitClassVal,
NoAutoTupling
]
6 changes: 6 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ lazy val root = (project in file("."))
name := "scache",
version := "0.1.0",
scalaVersion := "2.13.4",
scalafixOnCompile := true,
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalacOptions := Seq(
"-Ywarn-unused"
),
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % CatsEffectVersion,
"org.typelevel" %% "cats-effect-laws" % CatsEffectVersion,
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.29")
4 changes: 0 additions & 4 deletions src/main/scala/org/github/mjftw/scache/Cache.scala
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
package org.github.mjftw.scache

import org.github.mjftw.scache.debug.DebugHelper

import cats.implicits._
import scala.concurrent.duration.FiniteDuration
import cats.effect.concurrent.Ref
import cats.effect.{Sync, Fiber, Concurrent, Timer}
import cats.kernel.Monoid
import cats.Functor

trait Cache[F[_], K, V] {
def put(key: K, value: V): F[Unit]
Expand Down

0 comments on commit 96ac206

Please sign in to comment.