diffplug / diffplug/spotless

Ignore line-wrapping-only changes

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

Description

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()
}`

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.