From 29806d27b36c8a2c1ab7333fbaf08980cc81d0a9 Mon Sep 17 00:00:00 2001 From: Brice Jaglin Date: Wed, 26 Jun 2024 15:31:33 +0200 Subject: [PATCH] remove unused attributes --- .../scala/scalafix/internal/config/ScalafixConfig.scala | 4 ---- .../scala/scalafix/tests/config/ScalafixConfigSuite.scala | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/scalafix-core/src/main/scala/scalafix/internal/config/ScalafixConfig.scala b/scalafix-core/src/main/scala/scalafix/internal/config/ScalafixConfig.scala index 791ee17dd..4eef68641 100644 --- a/scalafix-core/src/main/scala/scalafix/internal/config/ScalafixConfig.scala +++ b/scalafix-core/src/main/scala/scalafix/internal/config/ScalafixConfig.scala @@ -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, diff --git a/scalafix-tests/unit/src/test/scala/scalafix/tests/config/ScalafixConfigSuite.scala b/scalafix-tests/unit/src/test/scala/scalafix/tests/config/ScalafixConfigSuite.scala index d0cadce43..3981a0928 100644 --- a/scalafix-tests/unit/src/test/scala/scalafix/tests/config/ScalafixConfigSuite.scala +++ b/scalafix-tests/unit/src/test/scala/scalafix/tests/config/ScalafixConfigSuite.scala @@ -14,8 +14,8 @@ class ScalafixConfigSuite extends munit.FunSuite { } } check( - "version", - "version = abba", - ScalafixConfig(version = "abba") + "groupImportsByPrefix", + "groupImportsByPrefix = true", + ScalafixConfig(groupImportsByPrefix = true) ) }