-
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
Tune Scala compiler warnings #344
Conversation
@armanbilge as you created #343 this one may not be actual any more. |
I just glanced and I like your work here! #343 will take a while to land so I'm very happy to have this working now, it's definitely an improvement. If it works well in Cats and Cats Effect then maybe we can backport to 0.4.x line.
What do you mean by this? |
This PR was tested against the latest
Apparently, this match is not exhaustive indeed: Therefore it could be either provided with a default case or marked as |
I mean, for example consider the issue that you ran into recently:
So this warning gets triggered by In fact, similar considerations are applicable for |
Got it, thanks for those examples, that's very helpful. cc @DavidGregory084 are these worth adjusting in sbt-tpolecat? @satorg your changes look good here, I'm going to merge and cut a new milestone. thank you so much! |
Sorry, I didn't spot your @ @armanbilge.
I'm not sure about disabling a warning globally because of the risk of a false positive. Can we adjust these on a case-by-case basis instead? Definitely open to discussing this though - perhaps we should raise an issue on sbt-tpolecat? |
@DavidGregory084 no problem, thanks for chiming in.
Awesome, this is exactly what I was wondering. So not sure why it was annoying for us. |
The intent is to keep as many warnings as possible while still preserving backward compatibility between Scala 2.12 and 2.13 series (which is not always possible though).
For more details see a discussion in typelevel/cats-effect#3104.