Skip to content

Commit

Permalink
Merge pull request #1993 from bjaglin/scalafixScalaBinaryVersion
Browse files Browse the repository at this point in the history
remove references to sbt-only, deprecated key
  • Loading branch information
bjaglin committed May 1, 2024
2 parents 33b30fe + b4c5b07 commit f354dae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -60,8 +60,7 @@ class RuleCompiler(
val lastError =
"Error compiling rule(s) from source using Scala 3 compiler; " +
"to use the Scala 2.x compiler instead, use the corresponding " +
"scalafix-cli artifact or force scalafixScalaBinaryVersion " +
"to 2.x in your build tool"
"scalafix-cli artifact"
val errors = (reporter.allErrors.map(_.message) :+ lastError)
ConfError.apply(errors.map(ConfError.message)).map(_.notOk).get
}
Expand Down
Expand Up @@ -71,7 +71,7 @@ final class ExplicitResultTypes(
) {
Configured.error(
s"The ExplicitResultTypes rule needs to run with the same Scala binary version as the one used to compile target sources ($inputBinaryScalaVersion). " +
s"To fix this problem, either remove ExplicitResultTypes from .scalafix.conf or make sure the scalafixScalaBinaryVersion setting key matches $inputBinaryScalaVersion."
s"To fix this problem, either remove ExplicitResultTypes from .scalafix.conf or make sure Scalafix is loaded with $inputBinaryScalaVersion."
)
} else {
config.conf // Support deprecated explicitReturnTypes config
Expand Down

0 comments on commit f354dae

Please sign in to comment.