INRIA/spoon

Spotless for imports

Ouverte

#5 741 ouverte le 6 avr. 2024

 (8 commentaires) (1 réaction) (0 personne assignée)Java (383 forks)github user discovery
discussiongood first issue

Métriques du dépôt

Stars
 (1 933 étoiles)
Métriques de merge PR
 (Merge moyen 19j 11h) (49 PRs mergées en 30 j)

Description

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.

Guide contributeur