Closed bjaglin closed 1 week ago
In the short term would a note about adding the scalafixScalaBinaryVersion
to build.sbt
in ExplicitResultTypes
documentation be of any use?
Eg.
The ExplicitResultTypes rule needs to run with the same Scala binary version as the one used to compile target sources. Please add the following
scalafixScalaBinaryVersion
to your build.sbt file:scalafixScalaBinaryVersion := scalaBinaryVersion.value //supported versions are 2.11, 2.12, 2.13
I stumbled across this issue recently and would have found some documentation about configuring scalafixScalaBinaryVersion
at the location of the rule configuration helpful.
In the short term would a note about adding the scalafixScalaBinaryVersion to build.sbt in ExplicitResultTypes documentation be of any use?
Feel free to open a PR to update the docs. Remember this page is about scalafix, so your message should mention that this hint is for sbt only.
I am not familiar with community clients, but it looks like the scala binary version is not configurable for the mill and the maven ones (to be confirmed):
Feel free to open a PR to update the docs. Remember this page is about scalafix, so your message should mention that this hint is for sbt only.
Sure. The installation page only has explicit config for SBT, so I was going to do something similar to that.
I will mention that it's only for SBT.
For ExplicitResultTypes to work out of the box, it would better to set by default
Current blockers: