Skip to content

Commit

Permalink
s/canFormat/canFix/
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg committed Dec 8, 2017
1 parent 26be6fa commit e9b2b0a
Showing 1 changed file with 2 additions and 2 deletions.
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 @@ -233,7 +233,7 @@ object ScalafixPlugin extends AutoPlugin {
sources <- unmanagedSources.all(filter).value
source <- sources
if source.exists()
if canFormat(source)
if canFix(source)
} yield source
val options: Seq[String] = List("--classpath", classpath) ++ extraOptions
scalafixTaskImpl(
Expand Down Expand Up @@ -294,7 +294,7 @@ object ScalafixPlugin extends AutoPlugin {
}
}

def canFormat(file: File): Boolean = {
private def canFix(file: File): Boolean = {
val path = file.getPath
path.endsWith(".scala") ||
path.endsWith(".sbt")
Expand Down

0 comments on commit e9b2b0a

Please sign in to comment.