You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scalafmt sbt plugin web site describes some useful settings here — for example scalafmtFilter. However it doesn't say how to actually set these settings, and doing that seems to be somewhat non-obvious. For example, you might naively think .scalafmt.conf wouldn't be a bad place to try, but apparently it is (a bad place to try).
It would be helpful if the web site documentation provided an example of your recommended approach to configuring some, if not all, of the listed settings.
It took a while to find that I could add
scalafmtFilter := "diff-dirty"
… to build.sbt, but even this raised continuous complaints until modified to the arcane-looking
… if this is indeed the canonical way to achieve this setting, then well and good, but it might save others time and confusion if something similar appeared in the settings documentation.
Thanks very much for your work.
The text was updated successfully, but these errors were encountered:
@ConradHughes please feel free to send in a pr with these changes. i am not sure we have any experts on usingsbt as the nuance of .withRank(...) is lost on me.
i have also transferred this issue to the sbt plugin repo. you may have noticed the issue template for the original repository was focused on formatting problems and directed any sbt requests to this repo instead.
The scalafmt sbt plugin web site describes some useful settings here — for example
scalafmtFilter
. However it doesn't say how to actually set these settings, and doing that seems to be somewhat non-obvious. For example, you might naively think.scalafmt.conf
wouldn't be a bad place to try, but apparently it is (a bad place to try).It would be helpful if the web site documentation provided an example of your recommended approach to configuring some, if not all, of the listed settings.
It took a while to find that I could add
… to
build.sbt
, but even this raised continuous complaints until modified to the arcane-looking… if this is indeed the canonical way to achieve this setting, then well and good, but it might save others time and confusion if something similar appeared in the settings documentation.
Thanks very much for your work.
The text was updated successfully, but these errors were encountered: