From 54f95dbd92d6cdf41b38f38f70490170adbcd14b Mon Sep 17 00:00:00 2001 From: Hemanth S Date: Tue, 6 Oct 2020 14:37:45 +0530 Subject: [PATCH] Add XML rules --- app/build.gradle | 2 +- spotless.gradle | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index c1eb4656..0b3ba909 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -168,4 +168,4 @@ dependencies { debugImplementation 'com.amitshekhar.android:debug-db:1.0.6' } -apply from: '../spotless.gradle' \ No newline at end of file +apply from: '../spotless.gradle' diff --git a/spotless.gradle b/spotless.gradle index 94fb10f5..c23417c9 100644 --- a/spotless.gradle +++ b/spotless.gradle @@ -14,4 +14,17 @@ spotless { trimTrailingWhitespace() endWithNewline() } + format 'misc', { + target '**/*.gradle', '**/*.md', '**/.gitignore' + indentWithSpaces() + trimTrailingWhitespace() + endWithNewline() + } + + format 'xml', { + target 'src/*.xml' + indentWithSpaces() + trimTrailingWhitespace() + endWithNewline() + } } \ No newline at end of file