Skip to content

Commit

Permalink
Fix scalacenter#452, use modern scala dialect
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg committed Nov 24, 2017
1 parent 081592b commit f40723a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package internal.config
import java.io.OutputStream
import java.io.PrintStream
import scala.meta._
import scala.meta.dialects.Scala211
import scala.meta.dialects.Scala212
import scala.meta.parsers.Parse
import metaconfig._

Expand All @@ -15,7 +15,7 @@ case class ScalafixConfig(
fatalWarnings: Boolean = true,
reporter: ScalafixReporter = ScalafixReporter.default,
patches: ConfigRulePatches = ConfigRulePatches.default,
dialect: Dialect = Scala211,
dialect: Dialect = Scala212,
lint: LintConfig = LintConfig.default
) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ trait ScalafixMetaconfigReaders {
}
implicit lazy val dialectReader: ConfDecoder[Dialect] = {
import scala.meta.dialects._
ReaderUtil.oneOf[Dialect](Scala211, Sbt0137, Dotty, Paradise211)
ReaderUtil.oneOf[Dialect](
Scala211,
Scala212,
Sbt0137,
Sbt1,
Dotty,
Paradise211,
Paradise212
)
}

object UriRuleString {
Expand Down

0 comments on commit f40723a

Please sign in to comment.