Is there a Scala 3 compiler option to report unused imports? I tried -Wunused:all
, but nothing is reported. I believe -Xlint
did it with Scala 2, but I cannot find a Scala 3 equivalent.
1 Like
Nope. See:
1 Like
In the current state of affairs (3.2), is there a tool I can use to flag all unused imports in a project?
It’s currently being worked on at [Semester Project] Add new front-end phase for unused entities and add support for unused imports by PaulCoral · Pull Request #16157 · lampepfl/dotty · GitHub
3 Likes
2 Likes