Skip to content

Commit

Permalink
Configure and re-apply Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
mkutz committed Jan 14, 2025
1 parent 1a0a46f commit c382075
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/shakespeare-style.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ spotless {
targetExclude("**/build/**/*", "**/.idea/**")
trimTrailingWhitespace()
endWithNewline()
indentWithSpaces(2)
leadingTabsToSpaces(2)
}

java {
target("**/*.java")
targetExclude("**/build/**/*")
googleJavaFormat().reflowLongStrings()
removeUnusedImports()
indentWithSpaces(2)
leadingTabsToSpaces(2)
}

kotlinGradle {
target("**/*.gradle.kts")
targetExclude("**/build/**/*.gradle.kts")
ktfmt().googleStyle()
ktfmt().googleStyle().configure { it.setManageTrailingCommas(false) }
}

freshmark {
Expand Down
4 changes: 2 additions & 2 deletions manual/src/test/java/examples/java/RetrofitDocTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ void act1() {
Actor ron = new Actor("Ron").can(new CallHttpApis());
var jsonBody =
"""
[{"id":"273","name":"Alex"},{"id":"476","name":"Jonny"},{"id":"538","name":"Emma"}]
""";
[{"id":"273","name":"Alex"},{"id":"476","name":"Jonny"},{"id":"538","name":"Emma"}]
""";
serviceMock.enqueue(new MockResponse().setBody(jsonBody));

var actors = ron.checks(new AllActors());
Expand Down

0 comments on commit c382075

Please sign in to comment.