From e6ecc304908727733e331e7e22f1650b29bd96f5 Mon Sep 17 00:00:00 2001 From: Nicholas Maccharoli Date: Sun, 10 Feb 2019 00:31:53 +0900 Subject: [PATCH 1/2] [swiftlint] disable rule line_lenght. --- .swiftlint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.swiftlint.yml b/.swiftlint.yml index 24ff697..7fe7bd0 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -1,4 +1,5 @@ disabled_rules: + - line_length - cyclomatic_complexity - compiler_protocol_init - force_cast From 3bc20e6f14638de03c7a28260646dfa9371bf314 Mon Sep 17 00:00:00 2001 From: Nicholas Maccharoli Date: Sun, 10 Feb 2019 00:32:15 +0900 Subject: [PATCH 2/2] Silence warnings. --- Attributed/Attributes.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Attributed/Attributes.swift b/Attributed/Attributes.swift index c3c6e9f..d9a9e0f 100644 --- a/Attributed/Attributes.swift +++ b/Attributed/Attributes.swift @@ -21,7 +21,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. - import Foundation public struct Attributes { @@ -49,9 +48,7 @@ public struct Attributes { } public func strikeThroughStyle(_ strikeThroughStyle: NSUnderlineStyle) -> Attributes { - return self + Attributes(dictionary: [NSAttributedString.Key.strikethroughStyle: strikeThroughStyle.rawValue, - NSAttributedString.Key.baselineOffset : NSNumber(floatLiteral: 1.5), - ]) + return self + Attributes(dictionary: [NSAttributedString.Key.strikethroughStyle: strikeThroughStyle.rawValue, NSAttributedString.Key.baselineOffset : NSNumber(floatLiteral: 1.5)]) } public func underlineStyle(_ underlineStyle: NSUnderlineStyle) -> Attributes {