Skip to content

Commit

Permalink
setting: spotless 설정 추가 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckkim817 committed Jan 12, 2025
1 parent ef34057 commit 95c0203
Show file tree
Hide file tree
Showing 7 changed files with 407 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
root = true

[*]
charset = utf-8
end_of_line = lf
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/issue_template_ckkim817.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ assignees: ckkim817
- [ ] Swagger 테스트
- [ ] 테스트 코드 작성
-->
- [ ]
- [ ]
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/issue_template_gahyuun.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ assignees: gahyuun
- [ ] Swagger 테스트
- [ ] 테스트 코드 작성
-->
- [ ]
- [ ]
17 changes: 17 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,20 @@ tasks.register('updateGitHooks', Copy) {
tasks.named('build') {
dependsOn 'updateGitHooks'
}

spotless {
java {
target '**/*.java'
eclipse().configFile file('eclipse-formatter.xml')
importOrder()
removeUnusedImports()
trimTrailingWhitespace()
endWithNewline()
}

format('misc') {
target '**/*.gradle', '**/*.gitignore'
trimTrailingWhitespace()
endWithNewline()
}
}
380 changes: 380 additions & 0 deletions eclipse-formatter.xml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/main/java/com/acon/server/ServerApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
@SpringBootApplication
public class ServerApplication {

public static void main(String[] args) {
SpringApplication.run(ServerApplication.class, args);
}
public static void main(String[] args) {
SpringApplication.run(ServerApplication.class, args);
}

}
6 changes: 3 additions & 3 deletions src/test/java/com/acon/server/ServerApplicationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
@SpringBootTest
class ServerApplicationTests {

@Test
void contextLoads() {
}
@Test
void contextLoads() {
}

}

0 comments on commit 95c0203

Please sign in to comment.