From 1899bb08b4c6f0fe6229b9749b586c840eb3b20d Mon Sep 17 00:00:00 2001 From: Goooler Date: Tue, 7 Nov 2023 10:42:28 +0800 Subject: [PATCH] Disable trimTrailingWhitespace for md files --- .editorconfig | 1 + gradle/spotless-freshmark.gradle | 1 - plugin-gradle/README.md | 2 +- plugin-maven/README.md | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.editorconfig b/.editorconfig index 5d0704bd2b..9fe2fbc6c6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,6 +11,7 @@ charset = utf-8 [*.md] indent_style = space indent_size = 2 +trim_trailing_whitespace = false [*.java] # Doc: https://youtrack.jetbrains.com/issue/IDEA-170643#focus=streamItem-27-3708697.0-0 diff --git a/gradle/spotless-freshmark.gradle b/gradle/spotless-freshmark.gradle index 2a79ab01ba..54623eb05a 100644 --- a/gradle/spotless-freshmark.gradle +++ b/gradle/spotless-freshmark.gradle @@ -11,7 +11,6 @@ Action freshmarkSetup = { it.put('no', ':white_large_square:') } it.indentWithSpaces(2) - it.trimTrailingWhitespace() it.endWithNewline() } diff --git a/plugin-gradle/README.md b/plugin-gradle/README.md index 16285f88ad..f53028418b 100644 --- a/plugin-gradle/README.md +++ b/plugin-gradle/README.md @@ -105,7 +105,7 @@ spotless { format 'misc', { // define the files to apply `misc` to - target '*.gradle', '*.md', '.gitignore' + target '*.gradle', '.gitattributes', '.gitignore' // define the steps to apply to those files trimTrailingWhitespace() diff --git a/plugin-maven/README.md b/plugin-maven/README.md index 3294575e20..c9342f985b 100644 --- a/plugin-maven/README.md +++ b/plugin-maven/README.md @@ -88,7 +88,7 @@ To use it in your pom, just [add the Spotless dependency](https://search.maven.o - *.md + .gitattributes .gitignore