Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg committed Dec 21, 2016
1 parent 7c881ac commit e2f97d6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sbt.ScriptedPlugin
import sbt.ScriptedPlugin._
import sbtbuildinfo.BuildInfoKey.Entry
organization in ThisBuild := "ch.epfl.scala"
version in ThisBuild := "0.2.0"
version in ThisBuild := "0.2.1-SNAPSHOT"

lazy val crossVersions = Seq("2.11.8", "2.12.1")

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/scalafix/ScalafixConfig.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import com.typesafe.config.Config
import com.typesafe.config.ConfigFactory

case class ScalafixConfig(
rewrites: Seq[Rewrite] = Rewrite.allRewrites,
rewrites: Seq[Rewrite] = Rewrite.defaultRewrites,
parser: Parse[_ <: Tree] = Parse.parseSource,
dialect: Dialect = Scala211
)
Expand Down
2 changes: 2 additions & 0 deletions core/src/main/scala/scalafix/rewrite/Rewrite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ object Rewrite {
val syntaxRewrites: Seq[Rewrite] = Seq(ProcedureSyntax, VolatileLazyVal)
val semanticRewrites: Seq[Rewrite] = Seq(ExplicitImplicit)
val allRewrites: Seq[Rewrite] = syntaxRewrites ++ semanticRewrites
val defaultRewrites: Seq[Rewrite] =
allRewrites.filterNot(_ == VolatileLazyVal)
val name2rewrite: Map[String, Rewrite] =
allRewrites.map(x => x.toString -> x).toMap
}
4 changes: 2 additions & 2 deletions scalafix-sbt/src/main/scala/scalafix/sbt/ScalafixPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object ScalafixPlugin extends AutoPlugin with ScalafixKeys {
.settings(
description :=
"""Serves as a caching layer for extracting the jar location of the
|scalafix-nsc compiler plugin. If the dependecy was added to all
|scalafix-nsc compiler plugin. If the dependency was added to all
|projects, the (slow) update task will be re-run for every project.""".stripMargin,
scalaVersion := version,
libraryDependencies ++= Seq(
Expand All @@ -62,7 +62,7 @@ object ScalafixPlugin extends AutoPlugin with ScalafixKeys {
}

override def globalSettings: Seq[Def.Setting[_]] = Seq(
scalafixConfig := None
scalafixConfig := Option(file(".scalafix.conf")).filter(_.isFile)
)
override def projectSettings: Seq[Def.Setting[_]] =
Seq(
Expand Down

0 comments on commit e2f97d6

Please sign in to comment.