gradle: Enable spotless for Gradle, Markdown and gitignore files

Signed-off-by: utzcoz <utzcoz@outlook.com>
This commit is contained in:
utzcoz 2023-04-15 14:06:22 +08:00 committed by Ryan Pavlik
parent 9840730169
commit 06b2ae737b
2 changed files with 13 additions and 2 deletions

View file

@ -81,4 +81,3 @@ bug reports should include:
otherwise a description of expected and actual behavior
- if you cannot disclose your code, or even if you can,
an "artificial", minimally-sized example can be very valuable.

View file

@ -54,7 +54,19 @@ plugins {
id "com.quittle.svg-2-android-vector" version "0.0.6" apply false
// Spotless for Java and Kotlin's code formatting
id 'com.diffplug.spotless' version "6.18.0" apply false
id 'com.diffplug.spotless' version "6.18.0"
}
spotless {
format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '*.md', '.gitignore'
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithSpaces(4)
endWithNewline()
}
}
ext {