RemoveUnusedImports does not work
- 主要言語
- Java
- スター
- 5.6k
- フォーク
- 559
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 43
説明
Not sure this is related to https://github.com/diffplug/spotless/issues/1819#issuecomment-2830878265, so opening a new issue here.
The `removeUnusedImports` is not working, with the setup
```
com.diffplug.spotless
spotless-maven-plugin
2.44.4
2.63.0
PALANTIR
true
```
on Maven 3.9.9 and JDK 21.
There is no error in the console but unused imports are not removed at the end of the run.
コントリビューションガイド
調査の方向性
まず、Maven 3.9.9 と JDK 21 上で spotless-maven-plugin 2.44.4 を使って報告された Maven セットアップを再現し、Java の removeUnusedImports ステップに焦点を当てます。未使用の import を削除せずに実行が完了するかを確認し、その結果を使って関連する Maven プラグインのエントリポイントまたはテストを特定します。報告された未使用の import が削除されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100