INRIA/spoon

Spotless for imports

Offen

#5.741 geöffnet am 06.04.2024

 (8 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Java (383 Forks)github user discovery
discussiongood first issue

Repository-Metriken

Stars
 (1.933 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 19T 11h) (49 gemergte PRs in 30 T)

Beschreibung

Currently, our import ordering in spoon is a bit messy. This leads to an unpleasant time with IntelliJ trying to sort the imports in a more normal order. Why don't we use spotless-maven-plugin to sort all our imports in a fixed sorting? This also helps to reduce diffs in the future for PRs. The benefit compared to checkstyle is that we can do the sorting automatic. See https://github.com/diffplug/spotless/tree/main/plugin-maven#java for an example.

Contributor Guide