From 3a9f8dd625ecfde9f9cb2c2e236b102fda148e95 Mon Sep 17 00:00:00 2001 From: SahilSainiYML <111066844+SahilSainiYML@users.noreply.github.com> Date: Wed, 26 Apr 2023 16:02:17 +0530 Subject: [PATCH] [ISSUE] fixed swift lint warnings (#84) --- Tests/YMatterTypeTests/Elements/TypographyButtonTests.swift | 2 ++ .../Extensions/UIKit/NSParagraphStyle+lineSpacingTests.swift | 1 + .../Extensions/UIKit/UITraitCollection+breakpointTests.swift | 1 + .../UIKit/UITraitCollection+fontAppearanceTests.swift | 1 + .../Typography/FontFamily/FontFamilyTests.swift | 1 + .../Typography/FontFamily/SystemFontFamilyTests.swift | 1 + 6 files changed, 7 insertions(+) diff --git a/Tests/YMatterTypeTests/Elements/TypographyButtonTests.swift b/Tests/YMatterTypeTests/Elements/TypographyButtonTests.swift index 686e1ea..a084574 100644 --- a/Tests/YMatterTypeTests/Elements/TypographyButtonTests.swift +++ b/Tests/YMatterTypeTests/Elements/TypographyButtonTests.swift @@ -442,3 +442,5 @@ extension String { replacingOccurrences(of: " ", with: "") } } +// swiftlint:enable type_body_length +// swiftlint:enable file_length diff --git a/Tests/YMatterTypeTests/Extensions/UIKit/NSParagraphStyle+lineSpacingTests.swift b/Tests/YMatterTypeTests/Extensions/UIKit/NSParagraphStyle+lineSpacingTests.swift index ea4d41c..7510e99 100644 --- a/Tests/YMatterTypeTests/Extensions/UIKit/NSParagraphStyle+lineSpacingTests.swift +++ b/Tests/YMatterTypeTests/Extensions/UIKit/NSParagraphStyle+lineSpacingTests.swift @@ -132,3 +132,4 @@ private final class NonMutableParagraphStyle: NSParagraphStyle { return self } } +// swiftlint:enable large_tuple diff --git a/Tests/YMatterTypeTests/Extensions/UIKit/UITraitCollection+breakpointTests.swift b/Tests/YMatterTypeTests/Extensions/UIKit/UITraitCollection+breakpointTests.swift index 3afe33c..3d7088c 100644 --- a/Tests/YMatterTypeTests/Extensions/UIKit/UITraitCollection+breakpointTests.swift +++ b/Tests/YMatterTypeTests/Extensions/UIKit/UITraitCollection+breakpointTests.swift @@ -91,3 +91,4 @@ private extension UITraitCollectionBreakpointTests { ].map({ UITraitCollection(traitsFrom: [startingTraits, $0]) }) } } +// swiftlint:enable large_tuple diff --git a/Tests/YMatterTypeTests/Extensions/UIKit/UITraitCollection+fontAppearanceTests.swift b/Tests/YMatterTypeTests/Extensions/UIKit/UITraitCollection+fontAppearanceTests.swift index 36f0e07..b03a578 100644 --- a/Tests/YMatterTypeTests/Extensions/UIKit/UITraitCollection+fontAppearanceTests.swift +++ b/Tests/YMatterTypeTests/Extensions/UIKit/UITraitCollection+fontAppearanceTests.swift @@ -87,3 +87,4 @@ private extension UITraitCollectionFontAppearanceTests { ].map({ UITraitCollection(traitsFrom: [.default, $0]) }) } } +// swiftlint:enable large_tuple diff --git a/Tests/YMatterTypeTests/Typography/FontFamily/FontFamilyTests.swift b/Tests/YMatterTypeTests/Typography/FontFamily/FontFamilyTests.swift index 7375d78..e3efc25 100644 --- a/Tests/YMatterTypeTests/Typography/FontFamily/FontFamilyTests.swift +++ b/Tests/YMatterTypeTests/Typography/FontFamily/FontFamilyTests.swift @@ -178,3 +178,4 @@ final class WeightlessFontFamily: FontFamily { func weightName(for weight: Typography.FontWeight) -> String { weightName } } +// swiftlint:enable large_tuple diff --git a/Tests/YMatterTypeTests/Typography/FontFamily/SystemFontFamilyTests.swift b/Tests/YMatterTypeTests/Typography/FontFamily/SystemFontFamilyTests.swift index e6a02fc..3849be9 100644 --- a/Tests/YMatterTypeTests/Typography/FontFamily/SystemFontFamilyTests.swift +++ b/Tests/YMatterTypeTests/Typography/FontFamily/SystemFontFamilyTests.swift @@ -130,3 +130,4 @@ private extension SystemFontFamilyTests { } } } +// swiftlint:enable large_tuple