6502-opcodes/project/LintingPlugin.scala

19 lines
523 B
Scala
Raw Normal View History

2022-02-14 23:07:29 +00:00
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")
2022-11-02 20:41:23 +00:00
override val buildSettings =
Seq(
scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.5.0",
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
2022-11-02 20:50:34 +00:00
)
2022-02-14 23:07:29 +00:00
}