Apply minimum rules
ADD
frontend/ios/.swiftlint.yml
+disabled_rules:
+ - line_length
+ - trailing_whitespace
+
+included:
+ - DroidKaigi 2019
+
+excluded:
+ - Carthage
+ - Pods
\ No newline at end of file

MODIFY
frontend/ios/DroidKaigi 2019/AppDelegate.swift
frontend/ios/DroidKaigi 2019/AppDelegate.swift
@@ -13,7 +13,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
setupNavigationBar()
return true

MODIFY
frontend/ios/DroidKaigi 2019/Extensions/UIColor+Extension.swift
frontend/ios/DroidKaigi 2019/Extensions/UIColor+Extension.swift
import UIKit
+// swiftlint:disable identifier_name
+
extension UIColor {
enum DK: String {
@@ -39,3 +41,5 @@ extension UIColor {
self.init(hex: hex, alpha: 1.0)
}
}
+
+// swiftlint:enable identifier_name

MODIFY
frontend/ios/DroidKaigi 2019/Extensions/UITableView+Extension.swift
frontend/ios/DroidKaigi 2019/Extensions/UITableView+Extension.swift
import UIKit
-
// MARK: - Reuse Extension
extension UITableView {

MODIFY
frontend/ios/DroidKaigi 2019/Protocols/NibLoadable.swift
frontend/ios/DroidKaigi 2019/Protocols/NibLoadable.swift
import Foundation
import UIKit
+// swiftlint:disable force_cast
+
protocol NibLoadable: class {
static var nibName: String { get }
}
@@ -22,3 +24,5 @@ extension NibLoadable where Self: UIView {
return nib.instantiate(withOwner: self, options: nil).first as! Self
}
}
+
+// swiftlint:enable force_cast

MODIFY
frontend/ios/DroidKaigi 2019/Protocols/StoryboardInstantiable.swift
frontend/ios/DroidKaigi 2019/Protocols/StoryboardInstantiable.swift
import Foundation
import UIKit
-
protocol StoryboardInstantiable {
static var storyboardName: String { get }
}

MODIFY
frontend/ios/DroidKaigi 2019/Scenes/Session/SessionTableViewCell.swift
frontend/ios/DroidKaigi 2019/Scenes/Session/SessionTableViewCell.swift
@@ -128,7 +128,6 @@ class SessionTableViewCell: UITableViewCell, Reusable {
return collectionView
}()
-
private func setupSubviews() {
[titleLabel, liveMark, speakersStackView, timeAndRoomLabel, collectionView].forEach(contentView.addSubview)
titleLabel.snp.makeConstraints {
@@ -184,7 +183,6 @@ extension SessionTableViewCell: UICollectionViewDataSource {
}
}
-
final class SessionCalculateHeightTableViewCell: UITableViewCell {
var session: Session? {
@@ -202,14 +200,12 @@ final class SessionCalculateHeightTableViewCell: UITableViewCell {
}
}
-
override init(style: CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
setupSubviews()
}
required init?(coder aDecoder: NSCoder) { fatalError() }
-
private var tagContents: [TagContent] = []
lazy var collectionView: UICollectionView = {

Apply minimum rules