Skip to content

removeUnusedImports does nothing #2582

@spartanhooah

Description

@spartanhooah

I have a demo project that I've recently started. I generated some stubs from the OpenAPI spec using the Gradle plugin for that, and the code had some unused imports. I have configured Spotless to remove unused imports here, but it's not happening. I don't see any errors when I run spotlessApply, and if I add the --info flag I don't see any mention of import in the output.

Project details:
Gradle wrapper 8.14
Spotless plugin version 7.2.1
Default version of palantirJavaFormat

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions