Skip to content

[#39] SwiftLint 라이브러리를 추가하여 코드 스타일을 개선한다#40

Merged
opficdev merged 5 commits into
developfrom
chore/#39-SwiftLint
Apr 23, 2026
Merged

[#39] SwiftLint 라이브러리를 추가하여 코드 스타일을 개선한다#40
opficdev merged 5 commits into
developfrom
chore/#39-SwiftLint

Conversation

@opficdev
Copy link
Copy Markdown
Owner

🔗 연관된 이슈

📝 작업 내용

📌 요약

  • SwiftLint 설정 파일 추가
  • Swift package build tool plugin 기반 SwiftLint 자동 실행 구성
  • line_length 규칙에서 주석 및 문자열 예외 처리 추가

🔍 상세

  • .swiftlint.yml 추가
  • disabled_rulesnesting 적용
  • line_lengthignores_comments, ignores_interpolated_strings, ignores_multiline_strings 적용
  • Package.swiftSwiftLintPlugins 의존성 추가
  • Nexa, NexaTests target에 SwiftLintBuildToolPlugin 연결
  • swift test를 통한 plugin 빌드 및 테스트 통과 확인

📸 영상 / 이미지 (Optional)

  • 없음

@opficdev opficdev self-assigned this Apr 23, 2026
@github-actions
Copy link
Copy Markdown

@opficdev build CI가 실패했습니다.

오류 요약

error: a prebuild command cannot use executables built from source, including executable target 'swiftlint'
error: build planning stopped due to build-tool plugin failures

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

이번 PR은 SwiftLint를 도입하여 코드 스타일을 자동화하고, 불필요한 초기화 구문을 제거하며, 문서화를 위한 다이어그램 파일을 추가하는 작업을 포함하고 있습니다. 전반적으로 코드의 간결성이 향상되었으나, SwiftLint 설정 범위에 Package.swift를 포함하고 멀티라인 배열 리터럴에서 후행 쉼표(trailing comma)를 일관되게 사용하여 스타일 일관성을 유지할 필요가 있습니다.

Comment thread .swiftlint.yml
Comment thread Sources/Nexa/Runtime/NXRequestExecutor.swift
Comment thread Package.swift Outdated
Comment thread Package.swift Outdated
@opficdev opficdev merged commit 17d4a64 into develop Apr 23, 2026
4 checks passed
@opficdev opficdev deleted the chore/#39-SwiftLint branch April 23, 2026 09:10
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.

SwiftLint 라이브러리를 추가하여 코드 스타일을 개선한다

1 participant