-
Notifications
You must be signed in to change notification settings - Fork 185
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
Remove Unused depends on -Xmaxwarns on Scala 2.13 #1264
Comments
In fact the rule RemoveUnusued depends on this parameter, but I don't know what we can do to change this behavior. |
1 - That looks like a good idea indeed to leverage scalacenter/sbt-scalafix#196, although I am not sure what's a good value? |
Actually after thinking more seriously about this, semanticdb should not depend on this to record warnings. I m working on a fix on scalemeta side. Those parameters are supposed to change the number of warning or errors printed. |
linked to scalameta/scalameta#2402 |
RemoveUnused doesn't depend on Maxwarn anymore! |
The Remove Unused Scalafix rule seems to be attached to the
-Xmaxwarns
scala compiler option.The documentation of the
-Xmaxwarns
does not seem to reflect that processing will change, only the presentation of the warnings:If the
-Xmaxwarns
is not set, it defaults to 100.It means that if the unused imports/code is not within these "printed" warnings, it will not have been processed on Scala 2.13
This is a regression from Scala 2.12.x, where this setting did not seem to affect the scalafix rule execution.
Specific versions I'm referring to: Scala 2.13.3/2.12.12
The text was updated successfully, but these errors were encountered: