Skip to content

OrganizeImports.removeUnused not running #2269

@alejandrohdezma

Description

@alejandrohdezma

Hello!

After upgrading our project at $WORK to Scala 3.3.6 we wanted to enable OrganizeImports.removeUnused given the new support for unused import warning in the 3.3.x line. We added -Wunused:all, -Xfatal-warnings and -Wconf:id=E198:info but the project doesn't seem to pick up removeUnused. It does pick up all of the other OrganizeImports fields. We don't see any error regarding the lack of "unused" metadata as we saw with earlier versions.

I've created a repro repository here: https://github.com/alejandrohdezma/scalafix-remove-unused-repro

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions