Add XML rules

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