6502-opcodes/project/LintingPlugin.scala

19 lines
441 B
Scala
Raw Normal View History

2023-10-03 20:15:10 +00:00
import sbt.Keys.*
import sbt.*
import scalafix.sbt.ScalafixPlugin.autoImport.*
2022-02-14 23:07:29 +00:00
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-06-07 20:59:05 +00:00
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
2022-11-02 20:50:34 +00:00
)
2022-02-14 23:07:29 +00:00
}