6502-opcodes/project/LintingPlugin.scala

20 lines
585 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 {
2023-05-12 12:03:42 +00:00
override def trigger =
allRequirements
2022-02-14 23:07:29 +00:00
override val globalSettings =
addCommandAlias("fmt", "; scalafmtSbt; scalafmtAll") ++
addCommandAlias("fix", "scalafixAll")
2022-11-02 20:41:23 +00:00
override val buildSettings =
Seq(
2023-05-12 12:03:42 +00:00
scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.6.0",
2022-12-02 01:44:59 +00:00
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
2022-11-02 20:50:34 +00:00
)
2022-02-14 23:07:29 +00:00
}