diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 74d8a5f0c..3d614989c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. - diff --git a/build.gradle b/build.gradle index 5dabb6947..1a28b4212 100644 --- a/build.gradle +++ b/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 {