From 95c020323984e079b9f1ce2c3b28f8ef3ad76890 Mon Sep 17 00:00:00 2001 From: ckkim817 Date: Sun, 12 Jan 2025 10:07:20 +0900 Subject: [PATCH] =?UTF-8?q?setting:=20spotless=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20(#3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 2 + .../ISSUE_TEMPLATE/issue_template_ckkim817.md | 2 +- .../ISSUE_TEMPLATE/issue_template_gahyuun.md | 2 +- build.gradle | 17 + eclipse-formatter.xml | 380 ++++++++++++++++++ .../com/acon/server/ServerApplication.java | 6 +- .../acon/server/ServerApplicationTests.java | 6 +- 7 files changed, 407 insertions(+), 8 deletions(-) create mode 100644 eclipse-formatter.xml diff --git a/.editorconfig b/.editorconfig index d5c0c4b..6304a68 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,5 @@ +root = true + [*] charset = utf-8 end_of_line = lf diff --git a/.github/ISSUE_TEMPLATE/issue_template_ckkim817.md b/.github/ISSUE_TEMPLATE/issue_template_ckkim817.md index 5d1fe67..7752988 100644 --- a/.github/ISSUE_TEMPLATE/issue_template_ckkim817.md +++ b/.github/ISSUE_TEMPLATE/issue_template_ckkim817.md @@ -23,4 +23,4 @@ assignees: ckkim817 - [ ] Swagger 테스트 - [ ] 테스트 코드 작성 --> -- [ ] +- [ ] \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/issue_template_gahyuun.md b/.github/ISSUE_TEMPLATE/issue_template_gahyuun.md index 694064d..50b438f 100644 --- a/.github/ISSUE_TEMPLATE/issue_template_gahyuun.md +++ b/.github/ISSUE_TEMPLATE/issue_template_gahyuun.md @@ -23,4 +23,4 @@ assignees: gahyuun - [ ] Swagger 테스트 - [ ] 테스트 코드 작성 --> -- [ ] +- [ ] \ No newline at end of file diff --git a/build.gradle b/build.gradle index 020aed0..c0c86bf 100644 --- a/build.gradle +++ b/build.gradle @@ -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() + } +} diff --git a/eclipse-formatter.xml b/eclipse-formatter.xml new file mode 100644 index 0000000..17d3411 --- /dev/null +++ b/eclipse-formatter.xml @@ -0,0 +1,380 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/com/acon/server/ServerApplication.java b/src/main/java/com/acon/server/ServerApplication.java index bd49728..358ebad 100644 --- a/src/main/java/com/acon/server/ServerApplication.java +++ b/src/main/java/com/acon/server/ServerApplication.java @@ -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); + } } diff --git a/src/test/java/com/acon/server/ServerApplicationTests.java b/src/test/java/com/acon/server/ServerApplicationTests.java index 1dcddac..6f29d94 100644 --- a/src/test/java/com/acon/server/ServerApplicationTests.java +++ b/src/test/java/com/acon/server/ServerApplicationTests.java @@ -6,8 +6,8 @@ @SpringBootTest class ServerApplicationTests { - @Test - void contextLoads() { - } + @Test + void contextLoads() { + } }