6502-opcodes/project/LintingPlugin.scala
2021-01-21 13:36:59 -05:00

21 lines
543 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", "scalafmtAll") ++
addCommandAlias("fix", "scalafixAll")
override val projectSettings =
inThisBuild(
Seq(
scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.4.4",
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
)
)
}