Skip to content

Commit ca25267

Browse files
committed
Update SwiftLint to 0.23.1 and fix colon violations
1 parent 3b9473a commit ca25267

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

Example/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3131

3232
var window: UIWindow?
3333

34-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
34+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]? = nil) -> Bool {
3535
window = UIWindow(frame: UIScreen.main.bounds)
3636
window?.backgroundColor = UIColor.white
3737
window?.rootViewController = UINavigationController(rootViewController: ExampleViewController())

Example/CustomizedTokenField.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extension ICTokenField {
5757
layer.cornerRadius = 5
5858
layer.shouldRasterize = true
5959
layer.rasterizationScale = UIScreen.main.scale
60-
backgroundColor = UIColor(red:0.8, green:0.32, blue:0.24, alpha:1)
60+
backgroundColor = UIColor(red: 0.8, green: 0.32, blue: 0.24, alpha: 1)
6161

6262
textField.textColor = UIColor.white
6363
textField.tintColor = UIColor.white
@@ -78,7 +78,7 @@ extension ICTokenField {
7878
]
7979

8080
highlightedTokenAttributes = [
81-
.foregroundColor: UIColor(red:0.8, green:0.32, blue:0.24, alpha:1),
81+
.foregroundColor: UIColor(red: 0.8, green: 0.32, blue: 0.24, alpha: 1),
8282
.backgroundColor: UIColor.white,
8383
.font: UIFont.boldSystemFont(ofSize: 14)
8484
]

Example/CustomizedTokenViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class CustomizedTokenViewController: UIViewController, ICTokenFieldDelegate {
4848

4949
override func viewDidLoad() {
5050
super.viewDidLoad()
51-
navigationController?.navigationBar.barTintColor = UIColor(red:0.96, green:0.48, blue:0.4, alpha:1)
51+
navigationController?.navigationBar.barTintColor = UIColor(red: 0.96, green: 0.48, blue: 0.4, alpha: 1)
5252
navigationController?.navigationBar.isTranslucent = false
5353
navigationController?.navigationBar.barStyle = .black
5454

ICInputAccessoryUITests/ICTokenFieldUITests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class ICTokenFieldUITests: XCTestCase {
5656
}
5757

5858
func testTokenField() {
59-
let textField = app.tables.cells.containing(.staticText, identifier:"ICTokenField").children(matching: .textField).element
59+
let textField = app.tables.cells.containing(.staticText, identifier: "ICTokenField").children(matching: .textField).element
6060
typeTexts(in: textField)
6161
}
6262

@@ -68,7 +68,7 @@ class ICTokenFieldUITests: XCTestCase {
6868

6969
func testStoryboard() {
7070
app.tables.buttons["Storyboard"].tap()
71-
let tokenField = app.tables.cells.containing(.staticText, identifier:"Storyboard ICTokenField").children(matching: .textField).element
71+
let tokenField = app.tables.cells.containing(.staticText, identifier: "Storyboard ICTokenField").children(matching: .textField).element
7272
typeTexts(in: tokenField)
7373
app.tables.buttons["Back to Code"].tap()
7474
}

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ workspace "ICInputAccessory"
55
project "ICInputAccessory"
66

77
target "Example" do
8-
pod "SwiftLint", "0.19.0"
8+
pod "SwiftLint", "0.23.1"
99
end

Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
PODS:
2-
- SwiftLint (0.19.0)
2+
- SwiftLint (0.23.1)
33

44
DEPENDENCIES:
5-
- SwiftLint (= 0.19.0)
5+
- SwiftLint (= 0.23.1)
66

77
SPEC CHECKSUMS:
8-
SwiftLint: 3537a05b34060e78e7510f04fb7537d738247803
8+
SwiftLint: 1b670ce79284c76520f84060e87d645078fd32fa
99

10-
PODFILE CHECKSUM: 0709dcae81d808b2c03cbe4911faac9680768b93
10+
PODFILE CHECKSUM: dec0ae8a38d3fe9451404a87c1e15577f6685e53
1111

1212
COCOAPODS: 1.3.1

Source/KeyboardDismissTextField/ICKeyboardDismissAccessoryView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ open class ICKeyboardDismissAccessoryView: UIView {
5353
}()
5454

5555
private struct Constants {
56-
static let ButtonColor = UIColor(red:0.21, green:0.2, blue:0.19, alpha:0.5)
56+
static let ButtonColor = UIColor(red: 0.21, green: 0.2, blue: 0.19, alpha: 0.5)
5757
static let EdgePadding = CGFloat(7)
5858
static let InteractiveSize = CGSize(width: 44, height: 44)
5959
}

Source/TokenField/ICInsetLabel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ICInsetLabel: UILabel {
4444
switch cornerRadius {
4545
case let .constant(radius) where radius > 0:
4646
layer.cornerRadius = radius
47-
fallthrough
47+
fallthrough // swiftlint:disable:this fallthrough
4848
case .dynamic:
4949
layer.masksToBounds = true
5050
layer.shouldRasterize = true

Source/TokenField/ICToken.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ICToken: UIView {
4242
}
4343

4444
var normalTextAttributes: [NSAttributedStringKey: NSObject] = [
45-
.foregroundColor: UIColor(red:0.14, green:0.38, blue:0.95, alpha:1),
45+
.foregroundColor: UIColor(red: 0.14, green: 0.38, blue: 0.95, alpha: 1),
4646
.backgroundColor: UIColor.clear
4747
] {
4848
didSet {
@@ -53,7 +53,7 @@ class ICToken: UIView {
5353

5454
var highlightedTextAttributes: [NSAttributedStringKey: NSObject] = [
5555
.foregroundColor: UIColor.white,
56-
.backgroundColor: UIColor(red:0.14, green:0.38, blue:0.95, alpha:1)
56+
.backgroundColor: UIColor(red: 0.14, green: 0.38, blue: 0.95, alpha: 1)
5757
] {
5858
didSet {
5959
if isHighlighted { updateTextLabel() }

0 commit comments

Comments
 (0)