Skip to content

Commit

Permalink
chore(spotless): switch to palantir-java-format
Browse files Browse the repository at this point in the history
  • Loading branch information
florianesser committed Dec 8, 2023
1 parent cf1457e commit d24a719
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
insert_final_newline = false

[build.gradle]
indent_style = tab
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@ tasks.named('test') {

spotless {
java {
importOrder('groovy', 'java', 'javax', '')
palantirJavaFormat()
importOrder('java', 'javax', '')
removeUnusedImports()
indentWithSpaces(4)
trimTrailingWhitespace()
endWithNewline()

target 'src/*/java/**/*.java'
}
groovyGradle {
target '*.gradle' // default target of groovyGradle
greclipse()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ public class TransformerApiApplication {
public static void main(String[] args) {
SpringApplication.run(TransformerApiApplication.class, args);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@
class TransformerApiApplicationTests {

@Test
void contextLoads() {
}

void contextLoads() {}
}

0 comments on commit d24a719

Please sign in to comment.