removeUnusedImports does nothing
- Lingua principale
- Java
- Stelle
- 5.6k
- Fork
- 559
- Merge medio
- 1g 14h
- PR unite (30g)
- 43
Descrizione
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`
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- build-system, tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100