Skip to content

Commit

Permalink
Merge pull request #2012 from bjaglin/unusedattributes
Browse files Browse the repository at this point in the history
remove unused attributes
  • Loading branch information
bjaglin authored Jun 26, 2024
2 parents a97e862 + 29806d2 commit 5f68172
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ import scala.meta._

import metaconfig._
import metaconfig.generic.Surface
import scalafix.Versions
import scalafix.internal.config.ScalafixConfig._

case class ScalafixConfig(
version: String = Versions.version,
debug: DebugConfig = DebugConfig(),
groupImportsByPrefix: Boolean = true,
fatalWarnings: Boolean = true,
reporter: ScalafixReporter = ScalafixReporter.default,
patches: ConfigRulePatches = ConfigRulePatches.default,
scalaVersion: ScalaVersion = ScalaVersion.scala2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class ScalafixConfigSuite extends munit.FunSuite {
}
}
check(
"version",
"version = abba",
ScalafixConfig(version = "abba")
"groupImportsByPrefix",
"groupImportsByPrefix = true",
ScalafixConfig(groupImportsByPrefix = true)
)
}

0 comments on commit 5f68172

Please sign in to comment.