Skip to content

Instantly share code, notes, and snippets.

@pettyjamesm
pettyjamesm / ScalafmtIncrementalPlugin.scala
Created December 25, 2016 03:02 — forked from olafurpg/AutomateScalafmtPlugin.scala
Experiment to add reformatOnCompile settings to scalafmt sbt >v0.5
package org.scalafmt.sbt
import sbt.Keys._
import sbt._
import sbt.{IntegrationTest => It}
object ScalafmtIncrementalPlugin extends AutoPlugin {
override def requires: Plugins = ScalafmtPlugin
override def trigger: PluginTrigger = allRequirements
object autoImport {