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 diff --git a/Attributed/Attributes.swift b/Attributed/Attributes.swift index 6d05aaf..3a143e0 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 {