-
Notifications
You must be signed in to change notification settings - Fork 6
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 linter for any discarded value #32
Comments
Do you think this is something we could upstream to scalafix itself? I've been staring at your general linters in http4s wondering if they might take them too. |
Good point! The "redundant final object" rule has already been upstreamed and scalafix itself seems to be more actively maintained than it was a while back. |
I saw that! Nice work on it :) yes, they've been responsive to my ideas to upstream some stuff from our build here too. |
If someone points me to a repo that demonstrates a gotcha, I will test |
I think this is obsolete now that |
I suggest adding a linter that will warn for any discarded value, regardless of its type. This would both catch unused effectful code that's not concrete
IO
- it would need to be disabled for blocks of side-effecting code, but I see this as an extra advantage since side-effecting code would have to be explicitly marked as such.The text was updated successfully, but these errors were encountered: