SwiftLint 적용하기


SwiftLint적용하는 방법은 아래 Github에 가면 자세히 설명이 되어 있다.

그 중에서 brew로 적용하는 방법에 대해서 알아보자!

https://github.com/realm/SwiftLint

1. SwiftLint 설치

brew install swiftlint

2. SwiftLint, Xcode Scheme에 통합

아래 경로에서 run script phase를 새로 만들어준다.

Target > build phase > + > new run script phase

Untitled

3. 스크립트 추가