Skip to content

Commit 23d95ae

Browse files
committed
Fix SwiftLint warnings
1 parent f9240ba commit 23d95ae

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.swiftlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ disabled_rules:
33
- force_cast
44
- function_body_length
55
- identifier_name
6+
- implicit_return
67
- line_length
78
- vertical_whitespace
89
opt_in_rules:
@@ -14,7 +15,6 @@ opt_in_rules:
1415
- explicit_top_level_acl
1516
- fatal_error_message
1617
- first_where
17-
- implicit_return
1818
- implicitly_unwrapped_optional
1919
- let_var_whitespace
2020
- multiline_parameters

Tests/ViewController/QuickTableViewDataSourceTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import XCTest
2929

3030
internal final class QuickTableViewDataSourceTests: XCTestCase {
3131

32-
private var controller: QuickTableViewController!
32+
private var controller: QuickTableViewController! // swiftlint:disable:this implicitly_unwrapped_optional
3333

3434
override func setUp() {
3535
super.setUp()
@@ -252,7 +252,7 @@ internal final class QuickTableViewDataSourceTests: XCTestCase {
252252
])
253253
]
254254

255-
for index in [2, 3] {
255+
for index in [2, 3] {
256256
// When
257257
let cell = controller.tableView(controller.tableView, cellForRowAt: IndexPath(row: index, section: 0))
258258

Tests/ViewController/QuickTableViewDelegateTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import XCTest
2929

3030
internal final class QuickTableViewDelegateTests: XCTestCase {
3131

32-
private var controller: QuickTableViewController!
32+
private var controller: QuickTableViewController! // swiftlint:disable:this implicitly_unwrapped_optional
3333

3434
override func setUp() {
3535
super.setUp()

scripts/swiftlint.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/local/env ruby
22

3-
not_ci = !ENV["TRAVIS"] || ENV["TRAVIS"]&.empty?
3+
is_ci = !!ENV["CI"]
44

5-
if not_ci
6-
system "${PODS_ROOT}/SwiftLint/swiftlint --config .swiftlint.yml"
7-
else
5+
if is_ci
86
puts "Skip SwiftLint"
7+
else
8+
system "./Pods/SwiftLint/swiftlint --config .swiftlint.yml"
99
end

0 commit comments

Comments
 (0)