Skip to content

Commit

Permalink
adding scalafmt version 1.2 to the list of known versions so no warni…
Browse files Browse the repository at this point in the history
…ng is emitted
  • Loading branch information
Joey Cozza committed Sep 14, 2017
1 parent 3d5c1a2 commit 3742bf6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ object ScalafmtCorePlugin extends AutoPlugin {
libraryDependencies in Scalafmt := {
val (scalaBinaryVersion, fmtVersion) = "(\\d+.){0,1}\\d+".r.findPrefixOf(scalafmtVersion.value) match {
case Some("0.6") => ("2.11", "0.6")
case Some("0.7" | "1.0" | "1.1") => ("2.12", "1.0")
case Some("0.7" | "1.0" | "1.1"| "1.2") => ("2.12", "1.0")
case _ =>
println(s"Warning: Unknown Scalafmt version ${scalafmtVersion.value}; using 1.0 interface")
("2.12", "1.0")
Expand Down

0 comments on commit 3742bf6

Please sign in to comment.