Open bmarker opened 1 year ago
It looks like it's looking for a prefix to me : https://github.com/scalacenter/scalafix/blob/691a4f013bf92410ae3d29a21058fafb41817044/scalafix-rules/src/main/scala/scalafix/internal/rule/RemoveUnused.scala#L32
I also don't get a warning that the option is not set. However, nothing gets auto-fixed either.
I'm using -Xfatal-warnings
and -Wconf:cat=unused:info
. I wonder if it's the -Wconf
that's specific to unused
and not unused:imports
.
I'm using
-Xfatal-warnings
and-Wconf:cat=unused:info
. I wonder if it's the-Wconf
that's specific tounused
and notunused:imports
.
Could you provide a repro?
RemoveUnused
and theremoveUnused
option forOrganizedImports
don't seem to recognize the-Ywarn-unused:imports
and similar options.I had these from
tpolecat
:But I still had to add
-Ywarn-unused
to get removing unused imports working.I don't know if there's a check for the
scalacOptions
that could be adjusted or if it's more about how the rules work.