6502-opcodes/project/LintingPlugin.scala
2020-09-04 01:18:34 -04:00

19 lines
522 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 =
Seq(
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.4.0",
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
)
}