INRIA/spoon

Spotless for imports

Aberta

#5.741 aberto em 6 de abr. de 2024

 (8 comentários) (1 reação) (0 responsável)Java (383 forks)github user discovery
discussiongood first issue

Métricas do repositório

Stars
 (1.933 estrelas)
Métricas de merge de PR
 (Mesclagem média 19d 11h) (49 fundiu PRs em 30d)

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.

Guia do colaborador