-Wunused:imports should specify origin
of diagnostic (fully-qualified selector string representation)
#21807
Labels
origin
of diagnostic (fully-qualified selector string representation)
#21807
Compiler version
3.5.2
Minimized code
Scala 2 allows suppressing pesky "unused imports" by
-Wconf:origin=p.m:s
.That is handy not only to work around false positives but to permit certain imports to go unused rather than deleting and restoring them incidentally. For example, one may wish to
import core.Contexts.*
everywhere, even if unused; or,for its occasional utility.
Output
The configuration is parsed but not matched.
Expectation
I see the guy promised to add it (see the ticket) but here's another ticket to remind him. Adding origin was this PR and the lint effort he mentions is this other PR. Apparently, he just forgot, because he just tried it to work around this issue and it doesn't work yet.
Maybe also add a
cat=
category for linting, if it's not too much trouble. Or at least error IDs, etc, as has been requested elsewhere.The text was updated successfully, but these errors were encountered: