6502-opcodes/project/LintingPlugin.scala
Mark Canlas d9fedd52dd fmt
2022-12-01 20:44:59 -05:00

19 lines
581 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.5.0",
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
)
}