[lib] SwiftLint란?

SwiftLint

사용법

  1. Podfile에 pod ‘SwiftLint’ 추가
  2. Target > build phase > new run script phase
  3. run script에 ${PODS_ROOT}/SwiftLint/swiftlint를 추가

예외처리 방법

프로젝트에 empty 파일 생성
f1

파일 이름은 무조건 .swiftlint.yml로 지정

f2

disabled_rules: 사용하지 않을 규칙
included: 포함할 파일 정의
excluded: 포함하지 않을 파일 정의

예시
disabled_rules:

excluded:

SwiftLint git 주소

https://github.com/realm/SwiftLint