scalafix icon indicating copy to clipboard operation
scalafix copied to clipboard

RemovedUnused not working if -Wconf:any:warning-verbose

Open jeffrey-aguilera opened this issue 5 years ago • 1 comments
trafficstars

-Wconf: options were added in Scala 2.13.2. warning-verbose includes category and location in logging output, which is apparently being parsed to find the unused imports.

jeffrey-aguilera avatar Jun 26 '20 05:06 jeffrey-aguilera

Thanks for the report! For the record, https://github.com/scalacenter/scalafix/pull/1163 recently reduced false negatives when checking against scalacOptions in RemoveUnused.

Regarding the usage of -Wconf: from my understanding it's only a way to filter/change the logging level of compiler warnings, but it does not enable them as such. Could you post an example of code / scalacOptions for which you would expect RemoveUnused to run?

bjaglin avatar Jul 01 '20 13:07 bjaglin

@jeffrey-aguilera are you still running into that? thanks!

bjaglin avatar Jun 04 '23 21:06 bjaglin