diffplug / diffplug/spotless

Ignore line-wrapping-only changes

Aperta
#817 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Java
Stelle
5.6k
Fork
559
Merge medio
1g 13h
PR unite (30g)
34

Descrizione

While using spotless for Android, we run in to an issue where Android Studio line wrapping is overridden with spotless. There is no API exposed for changing this so that we can synchronize Android studio line wrapping with Spotless line wrapping.
The formatting of java code is being set to `googleJavaFormat(1.8).aosp()` and having a customizable line wrapping would help with unwanted git changes issues.
`java {
target '**/*.java'
targetExclude '**/generated/**'
googleJavaFormat('1.8').aosp()
removeUnusedImports()
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}`

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.