diffplug / diffplug/spotless

RemoveUnusedImports does not work

Open
#2,471 4 comments 6 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.