removeUnusedImports does nothing
- Vorherrschende Sprache
- Java
- Sterne
- 5.6k
- Forks
- 559
- Ø Merge
- 1 T. 14 Std.
- Gemergte PRs (30 T.)
- 43
Beschreibung
I have a [demo project](https://github.com/spartanhooah/smartbar-backoffice) 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](https://github.com/spartanhooah/smartbar-backoffice/blob/master/build.gradle.kts#L48), 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`
Beitragsleitfaden
Rechercherichtung
Start with the linked demo project's build.gradle.kts configuration and reproduce the behavior using the Gradle wrapper, Spotless 7.2.1, and the default palantirJavaFormat. Compare spotlessApply results and --info output against the configured removeUnusedImports step. Done means the unused imports in the generated OpenAPI stubs are removed without errors.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- build-system, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 55/100