-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add sbt-tpolecat
to prevent common bug patterns
#110
Conversation
Hello @froth, thanks for your contribution. |
@TonioGela timing indeed :) no worries, I can redo this change onto your code once merged. I am not sure about We could add |
Thanks!
Good point. I still prefer to add sbt-tpolecat as it adds a lot of sane defaults, so what we can do is add it and do one of the following:
|
I think the underlying question is: what is the intended audience of this template. People wanting to try ce out or people bootstrapping production code(with CI, etc). As always the answer is "both", but I personally lean more towards the "trying out" usecase (my personal experience is that in $WORK related projects most people build their own templates anyways). Therefore I think that verbose mode and comment is a good compromise. |
For this case there's scala-cli and the typelevel/toolkit
Okay, let's follow this path momentarily. I will try to ask more people what they think about this possibly new default before merging, as it may be really opinionated. Once the PR is ready (this one or a new one that you may want to open), we can share the link in Discord and discuss it a bit before making any decision. |
That sounds like a good solution. |
7e6c10d
to
5f9535d
Compare
- And fix some warnings
5f9535d
to
4d3c6bc
Compare
@TonioGela updated the PR |
My two cents, just add sbt-tpolecat, it makes the management of all those flags pretty easy and Scala version resistant. Also, in general, most of the flags are useful for writing good CE apps. Note however that, I am biased since I always use the plugin and I have never ever bothered to use the "development" mode. |
So, a lot of opinions have been expressed on Discord, and it seems that the leading opinion is prompting the user whether to add fatal-warnings or not with sbt-tpolecat always included. |
@TonioGela can do so. I think g8 wants a default for the option. I would use "without fatal" if that is ok |
I think the "vox populi" is in favor of keeping them enabled :) |
@TonioGela can do so. I think g8 wants a default for the option. I would use "without fatal" as default, ok? |
Yeah it seems folks would prefer without fatal for newcomers. Also, does the template generate a |
Yes, let's add a README and a note, lgtm |
Thanks for the feedback :) I added a paragraph to the README and made fatal warnings configurabel. |
-Wnonunit-statement
to prevent common bug patternssbt-tpolecat
to prevent common bug patterns
See also: typelevel/cats-effect#4054
also update sbt to run with newer JVMs(sbt/sbt#7235)