Skip to content

Commit e7cd66f

Browse files
committed
🔧 :: SwiftLint 경고 정리
force_unwrapping, closure_parameter_position 등 기존 SwiftLint 경고를 정리하고, MainPresentationAssembly의 사전 존재하던 function_body_length/ type_body_length 위반은 구조 변경(별도 작업 범위) 없이 disable 주석으로 명시적으로 표시.
1 parent 813a8d7 commit e7cd66f

35 files changed

Lines changed: 221 additions & 130 deletions

Projects/Domain/Sources/Entities/RecentCompany/RecentCompanyEntity.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public struct RecentCompanyEntity: Equatable {
55
public let companyName: String
66
public let companyLogoURL: String
77
public let isRecruiting: Bool
8-
8+
99
public init(
1010
companyID: Int,
1111
companyName: String,

Projects/Domain/Sources/UseCases/Companies/FetchRecentCompanyListUseCase.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ public struct FetchRecentCompanyListUseCase {
44
public init(companiesRepository: CompaniesRepository) {
55
self.companiesRepository = companiesRepository
66
}
7-
7+
88
private let companiesRepository: CompaniesRepository
9-
9+
1010
public func execute() -> Single<[RecentCompanyEntity]> {
1111
return companiesRepository.fetchRecentCompanyList()
1212
}

Projects/Flow/Sources/Home/HomeFlow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private extension HomeFlow {
202202

203203
Flows.use(recruitmentDetailFlow, when: .created) { (root) in
204204
let view = root as? RecruitmentDetailViewController
205-
view?.isPopViewController = { id, bookmark in
205+
view?.isPopViewController = { _, _ in
206206
let popView = self.rootViewController.topViewController as? RecruitmentViewController
207207
popView?.isTabNavigation = false
208208
}

Projects/Flow/Sources/MyPage/BugReport/BugReportListFlow.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
//import UIKit
2-
//import Presentation
3-
//import Swinject
4-
//import RxFlow
5-
//import Core
1+
// import UIKit
2+
// import Presentation
3+
// import Swinject
4+
// import RxFlow
5+
// import Core
66
//
7-
//public final class BugReportListFlow: Flow {
7+
// public final class BugReportListFlow: Flow {
88
// public let container: Container
99
// private let rootViewController: BugReportListViewController
1010
// public var root: Presentable {
@@ -27,9 +27,9 @@
2727
// return navigateToMajorBottomSheet()
2828
// }
2929
// }
30-
//}
30+
// }
3131
//
32-
//private extension BugReportListFlow {
32+
// private extension BugReportListFlow {
3333
// func navigateToBugReportList() -> FlowContributors {
3434
// return .one(flowContributor: .contribute(
3535
// withNextPresentable: rootViewController,
@@ -53,4 +53,4 @@
5353
// withNextStepper: OneStepper(withSingleStep: MajorBottomSheetStep.majorBottomSheetIsRequired)
5454
// ))
5555
// }
56-
//}
56+
// }

Projects/Flow/Sources/Recruitment/RecruitmentFlow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private extension RecruitmentFlow {
6060

6161
Flows.use(recruitmentDetailFlow, when: .created) { (root) in
6262
let view = root as? RecruitmentDetailViewController
63-
view?.isPopViewController = { id, bookmark in
63+
view?.isPopViewController = { _, _ in
6464
// In ReactorKit, state is immutable
6565
// The list will be refreshed on viewWillAppear if needed
6666
let popView = self.rootViewController.topViewController as? RecruitmentViewController

Projects/Flow/Sources/Signup/GenderSettingFlow.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ private extension GenderSettingFlow {
6464
password: String,
6565
isMan: Bool
6666
) -> FlowContributors {
67-
let profileSettingFlow = ProfileSettingFlow(container: container, name: name, gcn: gcn, email: email, password: password, isMan: isMan)
67+
let profileSettingFlow = ProfileSettingFlow(
68+
container: container, name: name, gcn: gcn, email: email, password: password, isMan: isMan
69+
)
6870

6971
Flows.use(profileSettingFlow, when: .created) { root in
7072
self.rootViewController.navigationController?.pushViewController(

Projects/Flow/Sources/Signup/PrivacyFlow.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ public final class PrivacyFlow: Flow {
1111
return rootViewController
1212
}
1313

14-
public init(container: Container, name: String, gcn: Int, email: String, password: String, isMan: Bool, profileImageURL: String?) {
14+
public init(
15+
container: Container, name: String, gcn: Int, email: String,
16+
password: String, isMan: Bool, profileImageURL: String?
17+
) {
1518
self.container = container
16-
let reactor = container.resolve(PrivacyReactor.self, arguments: name, gcn, email, password, isMan, profileImageURL)!
19+
let reactor = container.resolve(
20+
PrivacyReactor.self, arguments: name, gcn, email, password, isMan, profileImageURL
21+
)!
1722
self.rootViewController = PrivacyViewController(reactor)
1823
}
1924

Projects/Flow/Sources/Signup/ProfileSettingFlow.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ private extension ProfileSettingFlow {
6868
isMan: Bool,
6969
profileImageURL: String?
7070
) -> FlowContributors {
71-
let privacyFlow = PrivacyFlow(container: container, name: name, gcn: gcn, email: email, password: password, isMan: isMan, profileImageURL: profileImageURL)
71+
let privacyFlow = PrivacyFlow(
72+
container: container, name: name, gcn: gcn, email: email,
73+
password: password, isMan: isMan, profileImageURL: profileImageURL
74+
)
7275

7376
Flows.use(privacyFlow, when: .created) { root in
7477
self.rootViewController.navigationController?.pushViewController(

Projects/Flow/Sources/WinterIntern/WinterInternDetailFlow.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ public final class WinterInternDetailFlow: Flow {
1111
return rootViewController
1212
}
1313

14-
public init(container: Container, recruitmentID: Int? = nil, companyId: Int? = nil, type: RecruitmentDetailPreviousViewType = .recruitmentList) {
14+
public init(
15+
container: Container,
16+
recruitmentID: Int? = nil,
17+
companyId: Int? = nil,
18+
type: RecruitmentDetailPreviousViewType = .recruitmentList
19+
) {
1520
self.container = container
1621
self.rootViewController = container.resolve(
1722
WinterInternDetailViewController.self,

Projects/Flow/Sources/WinterIntern/WinterInternFlow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private extension WinterInternFlow {
5151

5252
Flows.use(recruitmentDetailFlow, when: .created) { (root) in
5353
let view = root as? WinterInternDetailViewController
54-
view?.isPopViewController = { id, bookmark in
54+
view?.isPopViewController = { _, _ in
5555
let popView = self.rootViewController
5656
popView.isTabNavigation = false
5757
}

0 commit comments

Comments
 (0)