-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: move sbt-scalafmt
to the TypelevelKernelPlugin
#247
Comments
Well, not every project :) e.g. https://github.com/typelevel/shapeless-3 and maybe some others I forget. Also, there are projects outside Typelevel that use the plugin but don't like using scalafmt, such as @davenverse and tpolecat-verse. Is your proposal just that we add the dependency, or that we also add the CI integration? The I think the long-term goal should be that all Typelevel projects use |
Analogically that client is getting |
Btw |
That was my point - to not use the most powered plugin because I need a little thing (formatting) from it. And it seems possible to move down the formatting plugin within the Typelevel plugins hierarchy. |
Right, b/c there are some things in the powered plugin that you do not like? :) The problem is, there are people who also don't like formatting, and I think it's important for sbt-typelevel to be useful to them as well. Nobody agrees on anything! :) What I think could make this easier is to extract an Btw, FTR I would really like to solve this. I just don't know how. |
Ok, I have an idea how to fix this :) We can use sbt "reflection" in the sbt-typelevel-ci plugin to check if the scalafmt, header, and mima plugins are enabled in the build. If they are, we can add the steps to CI automatically. Note this means we won't actually add these dependencies; they will still have to be added somewhere else. However, if they are present, then CI will configure itself automatically. |
I think that
sbt-scalafmt
is the base plugin for every Typelevel project. So I opine it's natural to move it to the most upstreamTypevel*
plugin (I guess it's theTypelevelKernelPlugin
). WDYT?The text was updated successfully, but these errors were encountered: