Skip to content

Commit

Permalink
Merge pull request #1632 from rvacaru/revert/1562-better-error-msgs
Browse files Browse the repository at this point in the history
Revert "better error for external rules ran with old scalafix-cli version"
  • Loading branch information
bjaglin authored Jul 15, 2022
2 parents 352bad1 + df0ee69 commit 759f864
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 94 deletions.
4 changes: 3 additions & 1 deletion project/Mima.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ object Mima {
ProblemFilters.exclude[MissingClassProblem]("scalafix.testkit.SyntacticRuleSuite$"),
ProblemFilters.exclude[Problem]("scalafix.testkit.SyntacticRuleSuite"),
ProblemFilters.exclude[ReversedMissingMethodProblem]("scalafix.interfaces.ScalafixArguments.withSemanticdbTargetroots"),
ProblemFilters.exclude[IncompatibleMethTypeProblem]("scalafix.testkit.RuleTest.fromPath") // private[scalafix]
ProblemFilters.exclude[IncompatibleMethTypeProblem]("scalafix.testkit.RuleTest.fromPath"), // private[scalafix]
ProblemFilters.exclude[MissingClassProblem]("metaconfig.generic.package"),
ProblemFilters.exclude[MissingClassProblem]("metaconfig.generic.package$")
)
}
}

This file was deleted.

21 changes: 0 additions & 21 deletions scalafix-core/src/main/scala-2.13/metaconfig/generic/package.scala

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package scalafix.internal.config
import metaconfig.ConfDecoder
import metaconfig.generic
import metaconfig.generic.Surface
import scalafix.internal.util.MetaconfigCompatMacros
import scalafix.patch.Patch
import scalafix.patch.Patch.internal._

Expand All @@ -18,7 +17,7 @@ case class ConfigRulePatches(

object ConfigRulePatches {
implicit val surface: Surface[ConfigRulePatches] =
MetaconfigCompatMacros.deriveSurfaceOrig[ConfigRulePatches]
generic.deriveSurface[ConfigRulePatches]
val default: ConfigRulePatches = ConfigRulePatches()
implicit val configRuleDecoder: ConfDecoder[ConfigRulePatches] =
generic.deriveDecoder[ConfigRulePatches](default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ package scalafix.internal.config
import metaconfig.ConfDecoder
import metaconfig.generic
import metaconfig.generic.Surface
import scalafix.internal.util.MetaconfigCompatMacros

case class DebugConfig(
printSymbols: Boolean = false
)
object DebugConfig {
implicit val surface: Surface[DebugConfig] =
MetaconfigCompatMacros.deriveSurfaceOrig[DebugConfig]
generic.deriveSurface[DebugConfig]
val default: DebugConfig = DebugConfig()
implicit val decoder: ConfDecoder[DebugConfig] =
generic.deriveDecoder[DebugConfig](default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package scalafix.internal.config
import metaconfig.ConfDecoder
import metaconfig.generic
import metaconfig.generic.Surface
import scalafix.internal.util.MetaconfigCompatMacros
import scalafix.lint.LintSeverity

case class LintConfig(
Expand All @@ -22,8 +21,7 @@ case class LintConfig(
}

object LintConfig {
implicit val surface: Surface[LintConfig] =
MetaconfigCompatMacros.deriveSurfaceOrig[LintConfig]
implicit val surface: Surface[LintConfig] = generic.deriveSurface[LintConfig]
lazy val default: LintConfig = LintConfig()
implicit val decoder: ConfDecoder[LintConfig] =
generic.deriveDecoder[LintConfig](default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import metaconfig._
import metaconfig.generic.Surface
import scalafix.Versions
import scalafix.internal.config.ScalafixConfig._
import scalafix.internal.util.MetaconfigCompatMacros

case class ScalafixConfig(
version: String = Versions.version,
Expand Down Expand Up @@ -39,7 +38,7 @@ object ScalafixConfig {
def decoder(default: ScalafixConfig): ConfDecoder[ScalafixConfig] =
generic.deriveDecoder[ScalafixConfig](default)
implicit lazy val surface: Surface[ScalafixConfig] =
MetaconfigCompatMacros.deriveSurfaceOrig[ScalafixConfig]
generic.deriveSurface[ScalafixConfig]
implicit lazy val ScalafixConfigDecoder: ConfDecoder[ScalafixConfig] =
decoder(default)

Expand Down

This file was deleted.

0 comments on commit 759f864

Please sign in to comment.