Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

Commit 786c0e4

Browse files
committed
[UPDATE] added lint rule as in new swiftLint we get warnings even for disabled rules for file
[UPDATE] add disable rule
1 parent 7acfaf4 commit 786c0e4

6 files changed

Lines changed: 12 additions & 4 deletions

File tree

Sources/YCoreUI/Extensions/UIKit/UIColor+rgbComponents.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import UIKit
1010

1111
// This relatively simple tuple (four float values representing the color channels)
1212
// is already a released public api.
13-
// swiftlint: disable large_tuple
13+
// swiftlint:disable superfluous_disable_command large_tuple
1414

1515
/// Tuple representing Red, Green, Blue, and Alpha color channel components
1616
public typealias RGBAComponents = (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat)
@@ -29,3 +29,4 @@ public extension UIColor {
2929
return (red, green, blue, alpha)
3030
}
3131
}
32+
// swiftlint: enable superfluous_disable_command large_tuple

Tests/YCoreUITests/Extensions/Foundation/CGFloat+roundedTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import XCTest
1010
@testable import YCoreUI
1111

1212
// Large tuples help us build unit test expectations concisely
13-
// swiftlint:disable large_tuple
13+
// swiftlint:disable superfluous_disable_command large_tuple
1414

1515
final class CGFloatRoundedTests: XCTestCase {
1616
typealias ScalingInputs = (
@@ -75,3 +75,4 @@ final class CGFloatRoundedTests: XCTestCase {
7575
}
7676
}
7777
}
78+
// swiftlint: enable large_tuple superfluous_disable_command

Tests/YCoreUITests/Extensions/UIKit/UIColor+WCAGTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import XCTest
1010
@testable import YCoreUI
1111

1212
// Large tuples help us build unit test expectations concisely
13-
// swiftlint:disable large_tuple
13+
// swiftlint:disable superfluous_disable_command large_tuple
1414

1515
final class UIColorWCAGTests: XCTestCase {
1616
typealias ColorInputs = (foreground: UIColor, background: UIColor, context: WCAGContext)
@@ -183,3 +183,4 @@ final class UIColorWCAGTests: XCTestCase {
183183
XCTAssertEqual(round(ratio1 * 100) / 100, round(ratio2 * 100) / 100)
184184
}
185185
}
186+
// swiftlint: enable large_tuple superfluous_disable_command

Tests/YCoreUITests/Extensions/UIKit/UIColor+rgbValueTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import XCTest
1010
@testable import YCoreUI
1111

1212
// Large tuples help us build unit test expectations concisely
13-
// swiftlint:disable large_tuple
13+
// swiftlint:disable superfluous_disable_command large_tuple
1414

1515
final class UIColorRgbValueTests: XCTestCase {
1616
typealias ColorTest = (color: UIColor, prefix: String?, isUppercase: Bool, output: String)
@@ -75,3 +75,4 @@ final class UIColorRgbValueTests: XCTestCase {
7575
YCoreUI.isLoggingEnabled = true
7676
}
7777
}
78+
// swiftlint: enable large_tuple superfluous_disable_command

Tests/YCoreUITests/Extensions/UIKit/UIView+constrainAnchorTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import XCTest
1010
@testable import YCoreUI
1111

12+
// swiftlint:disable superfluous_disable_command type_body_length
13+
1214
final class UIViewConstrainAnchorTests: XCTestCase {
1315
func testXAxisConstraints() {
1416
let (sut, relations) = makeSUT()
@@ -378,3 +380,4 @@ private extension MockLayoutContainer {
378380
addSubview(view2)
379381
}
380382
}
383+
// swiftlint:enable superfluous_disable_command type_body_length

Tests/YCoreUITests/Extensions/UIKit/UIView+constrainEdgesTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ final class UIViewConstrainEdgesTests: XCTestCase {
5151
XCTAssertEqual(trailing?.constant, -insets.trailing)
5252
}
5353

54+
// swiftlint:disable function_body_length
5455
func testPartialEdges() {
5556
let (sut, _) = makeSUT()
5657
let edges: [NSDirectionalRectEdge] = [

0 commit comments

Comments
 (0)