Skip to content

Commit

Permalink
Configure scalafix
Browse files Browse the repository at this point in the history
  • Loading branch information
H1rono committed Feb 23, 2024
1 parent 0cd9023 commit b48e6dd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .scalafix.conf
@@ -0,0 +1,8 @@
rules = [
NoAutoTupling,
DisableSyntax,
NoValInForComprehension,
RedundantSyntax,
RemoveUnused,
ProcedureSyntax
]
7 changes: 6 additions & 1 deletion build.sbt
Expand Up @@ -8,7 +8,12 @@ ThisBuild / organizationName := "h1rono"
lazy val root = (project in file("."))
.settings(
name := "bot-tartaglia",
libraryDependencies += munit % Test
// deps
libraryDependencies += munit % Test,
// configurations required by scalafix
semanticdbEnabled := true, // enable SemanticDB
semanticdbVersion := scalafixSemanticdb.revision, // only required for Scala 2.x
scalacOptions += "-Ywarn-unused-import" // Scala 2.x only, required by `RemoveUnused`
)

// See https://www.scala-sbt.org/1.x/docs/Using-Sonatype.html for instructions on how to publish to Sonatype.
3 changes: 2 additions & 1 deletion project/plugins.sbt
@@ -1 +1,2 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1")

0 comments on commit b48e6dd

Please sign in to comment.