spotless icon indicating copy to clipboard operation
spotless copied to clipboard

removeUnusedImports does nothing

Open spartanhooah opened this issue 4 months ago • 1 comments

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

spartanhooah avatar Aug 01 '25 18:08 spartanhooah

I have the same problem with Spotless 8.0.0

javichaques avatar Oct 02 '25 20:10 javichaques