mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-11-04 17:06:11 +00:00
21 lines
558 B
Scala
21 lines
558 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 projectSettings =
|
|
inThisBuild(
|
|
Seq(
|
|
scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.5.0",
|
|
semanticdbEnabled := true,
|
|
semanticdbVersion := scalafixSemanticdb.revision
|
|
)
|
|
)
|
|
}
|