Skip to content

Commit a50c628

Browse files
committed
Fix additional linting issues.
1 parent 4b66d8f commit a50c628

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.swiftlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ disabled_rules:
55
- type_body_length
66
- identifier_name
77
- trailing_comma
8+
- function_body_length
89

910
opt_in_rules:
1011
- anyobject_protocol

Source/Device.generated.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ public enum Device {
611611
/// - parameter identifier: The device identifier, e.g. "iPhone7,1". Can be obtained from `Device.identifier`.
612612
///
613613
/// - returns: An initialized `Device`.
614-
public static func mapToDevice(identifier: String) -> Device { // swiftlint:disable:this cyclomatic_complexity function_body_length
614+
public static func mapToDevice(identifier: String) -> Device {
615615
#if os(iOS)
616616
switch identifier {
617617
case "iPod5,1": return iPodTouch5

Source/Device.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public enum Device {
455455
/// - parameter identifier: The device identifier, e.g. "iPhone7,1". Can be obtained from `Device.identifier`.
456456
///
457457
/// - returns: An initialized `Device`.
458-
public static func mapToDevice(identifier: String) -> Device { // swiftlint:disable:this cyclomatic_complexity function_body_length
458+
public static func mapToDevice(identifier: String) -> Device {
459459
#if os(iOS)
460460
switch identifier {
461461
% for device in iOSDevices:

Tests/Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class DeviceKitTests: XCTestCase {
162162
XCTAssertTrue(Device.BatteryState.unplugged(2) > Device.BatteryState.charging(1))
163163
}
164164

165-
func testMapFromIdentifier() { // swiftlint:disable:this function_body_length
165+
func testMapFromIdentifier() {
166166
XCTAssertEqual(Device.mapToDevice(identifier: "iPod5,1"), .iPodTouch5)
167167
XCTAssertEqual(Device.mapToDevice(identifier: "iPod7,1"), .iPodTouch6)
168168
XCTAssertEqual(Device.mapToDevice(identifier: "iPhone3,1"), .iPhone4)

0 commit comments

Comments
 (0)