Skip to content

Commit

Permalink
Merge pull request #63 from Nirma/improvements_swiftlint
Browse files Browse the repository at this point in the history
Improvements swiftlint
  • Loading branch information
Nicholas Maccharoli authored Feb 9, 2019
2 parents 6bd32fb + 3bc20e6 commit 2792c4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
disabled_rules:
- line_length
- cyclomatic_complexity
- compiler_protocol_init
- force_cast
Expand Down
5 changes: 1 addition & 4 deletions Attributed/Attributes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 2792c4e

Please sign in to comment.