feat: disabled large_tuple swiftlint rule

This commit is contained in:
Serhiy Mytrovtsiy
2022-01-11 22:51:55 +01:00
parent ddeeb2c59f
commit f17c0c8987
3 changed files with 1 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ disabled_rules:
- opening_brace
- implicit_getter
- redundant_optional_initialization
- large_tuple
opt_in_rules:
- control_statement

View File

@@ -372,7 +372,6 @@ internal class Popup: NSStackView, Popup_p {
// MARK: - helpers
// swiftlint:disable large_tuple
private func topValueView(_ view: NSView, title: String, color: NSColor) -> (NSView, NSTextField, NSTextField, ColorView) {
let topHeight: CGFloat = 30
let titleHeight: CGFloat = 15

View File

@@ -128,7 +128,6 @@ extension UInt16 {
}
}
// swiftlint:disable large_tuple
extension UInt32 {
init(bytes: (UInt8, UInt8, UInt8, UInt8)) {
self = UInt32(bytes.0) << 24 | UInt32(bytes.1) << 16 | UInt32(bytes.2) << 8 | UInt32(bytes.3)