Skip to content

Commit

Permalink
Disable trimTrailingWhitespace for md files (#1880)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg authored Nov 16, 2023
2 parents 2651ad7 + 1899bb0 commit 14181db
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion gradle/spotless-freshmark.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Action<FreshMarkExtension> freshmarkSetup = {
it.put('no', ':white_large_square:')
}
it.indentWithSpaces(2)
it.trimTrailingWhitespace()
it.endWithNewline()
}

Expand Down
2 changes: 1 addition & 1 deletion plugin-gradle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion plugin-maven/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ To use it in your pom, just [add the Spotless dependency](https://search.maven.o
<format>
<!-- define the files to apply to -->
<includes>
<include>*.md</include>
<include>.gitattributes</include>
<include>.gitignore</include>
</includes>
<!-- define the steps to apply to those files -->
Expand Down

0 comments on commit 14181db

Please sign in to comment.