<aside> 📌 swiftlint를 사용하여 코드 컨벤션을 지킵니다.

</aside>

# 코드에 비활성화 하고 싶은 룰이 있다면 해당 코드 바로 상단에
# swiftlint:disable [룰 이름]과 같이 적어주세요

# ex:
# swiftlint:disable colon
# let noWarning :String = ""
 
# 기본 활성화된 룰 중에 비활성화할 룰들을 지정
disabled_rules:
- trailing_whitespace # 후행 공백
- identifier_name # 식별자 이름
- shorthand_operator # 속기 연산자
- function_body_length # 함수 바디 길이
- nesting # 중첩
- cyclomatic_complexity # 순환 복잡도
- line_length # 줄 길이
- type_name # 타입 이름
- function_parameter_count # 함수 매개변수 개수

# 기본 룰이 아닌 룰들 활성화
opt_in_rules:
- empty_count # count보다 isEmpty 사용
- empty_string # == 0 보다 isEmpty 사용
- empty_collection_literal # == [] 보다 isEmpty 사용
- collection_alignment # 정렬

# 린트 과정에서 무시할 파일 경로. `included`보다 우선순위 높음
excluded:
- Pingle-iOS/Application
- Pingle-iOS/Pods
- Pods

Rule Directory Reference

MARK 주석

// TODO: 앞으로 할 일을 TODO로 적어두기 -> 나중에 꼭 지우기

// MARK: - Variables

// MARK: Constants

// MARK: Property

var index = 0
var nameList: [Name]

// MARK: Component 
//(button, label 등 코드로 만들때) 

// MARK: - Function

// MARK: LifeCycle

// MARK: Server Helpers

// MARK: Layout Helpers

// MARK: Custom Function

// MARK: DataLoad Function
// 직접 마크 주석 만들어서 사용 가능

// MARK: Objc Function

// MARK: - Protocol

// MARK: - extension

// delegate 꼭 Extension 빼기, 마크 주석 달기
// MARK: UICollectionViewDelegateFlowLayout

// MARK: UICollectionViewDataSource

코드레이아웃

들여쓰기 및 띄어쓰기

줄바꿈