Created
May 16, 2020 23:53
-
-
Save kingargyle/29ee680e994f5e56e80b3076a0387180 to your computer and use it in GitHub Desktop.
Configure XML formatting for Android Layout files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subprojects { | |
apply plugin: "com.diffplug.gradle.spotless" | |
spotless { | |
format 'xml', { | |
target '**/layout*/*.xml' | |
indentWithSpaces(2) | |
eclipseWtp('xml').configFile rootProject.file('spotless.xml.prefs') | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alignEndBracket=true | |
eclipse.preferences.version=1 | |
indentationChar=space | |
indentationSize=2 | |
lineWidth=120 | |
splitMultiAttrs=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment