mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-11-04 17:06:11 +00:00
19 lines
441 B
Scala
19 lines
441 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(
|
|
semanticdbEnabled := true,
|
|
semanticdbVersion := scalafixSemanticdb.revision
|
|
)
|
|
}
|