-
Notifications
You must be signed in to change notification settings - Fork 1.1k
WUnused: Ignore unused params of non-private methods that are members of non-final classlikes #17185
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
Comments
It's worse than that.
|
Scala 2 tries to guess whether the RHS is trivial, as a gauge of whether it qualifies as a serious implementation or a placeholder or a stub. There is an open ticket as to whether I've proposed a Otherwise, as was originally judged when the feature was proposed, a lint for unused parameters is uselessly noisy. I think that was Jason's comment, if it needed to be articulated. Ideally, just in those cases where it looks like a param is not used to calculate a result, the user must add |
I think we should follow Jason and accept that some warnings simply don't make sense. |
For now (3.3.0 release), I think we should proceed with not reporting the unused parameters for non-private defs at all. |
Compiler version
3.3.0-RC2
The bug
We should not report unused params in methods that may be overridden, as it's often for the sake of the implementers to use these arguments.
The text was updated successfully, but these errors were encountered: