mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2025-01-03 23:29:35 +00:00
restore linting
This commit is contained in:
parent
985532c92e
commit
7452871e71
20
project/LintingPlugin.scala
Normal file
20
project/LintingPlugin.scala
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
||||
)
|
||||
)
|
||||
}
|
Loading…
Reference in New Issue
Block a user