6502-opcodes/project/LintingPlugin.scala
2023-05-12 08:03:42 -04:00

20 lines
585 B
Scala

import sbt.Keys._
import sbt._
import scalafix.sbt.ScalafixPlugin.autoImport._
object LintingPlugin extends AutoPlugin {
override def trigger =
allRequirements
override val globalSettings =
addCommandAlias("fmt", "; scalafmtSbt; scalafmtAll") ++
addCommandAlias("fix", "scalafixAll")
override val buildSettings =
Seq(
scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.6.0",
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
)
}