mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
gradle: Enable spotless for Gradle, Markdown and gitignore files
Signed-off-by: utzcoz <utzcoz@outlook.com>
This commit is contained in:
parent
9840730169
commit
06b2ae737b
|
@ -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.
|
||||
|
||||
|
|
14
build.gradle
14
build.gradle
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue