Fix SwiftLint warning
This commit is contained in:
@ -9,8 +9,6 @@ import ArgumentParser
|
|||||||
import Foundation
|
import Foundation
|
||||||
import ToolCore
|
import ToolCore
|
||||||
|
|
||||||
// swiftlint:disable no_grouping_extension
|
|
||||||
|
|
||||||
struct AnalyticsOptions: ParsableArguments {
|
struct AnalyticsOptions: ParsableArguments {
|
||||||
|
|
||||||
@Flag(
|
@Flag(
|
||||||
|
@ -36,6 +36,7 @@ extension FontName {
|
|||||||
Font.custom(FontName.\(fontNameSanitize).rawValue, size: size)
|
Font.custom(FontName.\(fontNameSanitize).rawValue, size: size)
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
case (true, false):
|
case (true, false):
|
||||||
// SwiftUI, Not Static => func
|
// SwiftUI, Not Static => func
|
||||||
"""
|
"""
|
||||||
@ -43,6 +44,7 @@ extension FontName {
|
|||||||
Font.custom(FontName.\(fontNameSanitize).rawValue, size: size)
|
Font.custom(FontName.\(fontNameSanitize).rawValue, size: size)
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
case (false, true):
|
case (false, true):
|
||||||
// UIKit, Static => let
|
// UIKit, Static => let
|
||||||
"""
|
"""
|
||||||
@ -50,6 +52,7 @@ extension FontName {
|
|||||||
UIFont(name: FontName.\(fontNameSanitize).rawValue, size: size)!
|
UIFont(name: FontName.\(fontNameSanitize).rawValue, size: size)!
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
case (false, false):
|
case (false, false):
|
||||||
// UIKit, Not Static => func
|
// UIKit, Not Static => func
|
||||||
"""
|
"""
|
||||||
|
@ -20,10 +20,13 @@ package enum ExtensionVisibility: String, CustomStringConvertible, ExpressibleBy
|
|||||||
switch self {
|
switch self {
|
||||||
case .public:
|
case .public:
|
||||||
"public"
|
"public"
|
||||||
|
|
||||||
case .private:
|
case .private:
|
||||||
"private"
|
"private"
|
||||||
|
|
||||||
case .internal:
|
case .internal:
|
||||||
"internal"
|
"internal"
|
||||||
|
|
||||||
case .package:
|
case .package:
|
||||||
"package"
|
"package"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user