Add XML rules

This commit is contained in:
Hemanth S 2020-10-06 14:37:45 +05:30
parent 4b767bca54
commit 54f95dbd92
2 changed files with 14 additions and 1 deletions

View file

@ -168,4 +168,4 @@ dependencies {
debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
}
apply from: '../spotless.gradle'
apply from: '../spotless.gradle'

View file

@ -14,4 +14,17 @@ spotless {
trimTrailingWhitespace()
endWithNewline()
}
format 'misc', {
target '**/*.gradle', '**/*.md', '**/.gitignore'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
format 'xml', {
target 'src/*.xml'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
}