Skip to content

Conversation

@snowykte0426
Copy link
Member

@snowykte0426 snowykte0426 commented Nov 9, 2025

추가된 것

Spotless 포맷터를 추가하였습니다.

기능설명

다음과 같은 규칙으로 코드를 포맷팅합니다.
Java 파일 (src/main/java//*.java, src/test/java//*.java):

  1. eclipse() - Eclipse JDT 포맷터 사용
  2. leadingTabsToSpaces(4) - 탭을 4칸 스페이스로 변환
  3. importOrder("java", "javax", "org", "com", "") - import 순서: java → javax → org → com → 기타
  4. removeUnusedImports() - 사용하지 않는 import 제거
  5. endWithNewline() - 파일 끝에 개행 추가
  6. trimTrailingWhitespace() - 줄 끝 공백 제거

Kotlin Gradle 파일 (*.gradle.kts):

  1. ktlint() - Kotlin 공식 스타일 가이드 적용

Spotless 주요 명령어:

  • ./gradlew spotlessApply - 코드 포맷팅 적용
  • ./gradlew spotlessCheck - 포맷팅 규칙 위반 검사

…ility; update main method visibility in SpringbootProjectTemplateApplication
@snowykte0426 snowykte0426 self-assigned this Nov 9, 2025
@snowykte0426 snowykte0426 changed the title https://github.com/8G4B/springboot-template/discussions/2#discussioncomment-14827973 Spotless 포맷터 추가 Nov 9, 2025
Copy link
Collaborator

@jihoonwjj jihoonwjj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jihoonwjj jihoonwjj merged commit 8e2dd7c into master Nov 10, 2025
@jihoonwjj jihoonwjj deleted the spotless branch November 10, 2025 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants