Skip to content

Commit

Permalink
Add swiftlint config
Browse files Browse the repository at this point in the history
  • Loading branch information
sendyhalim committed Jun 16, 2017
1 parent 20815c7 commit 716e075
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
line_length:
warning: 120
error: 150
disabled_rules:
- identifier_name
- force_cast
- force_try
- function_body_length
- syntactic_sugar
- shorthand_operator
included:
- Sources
- Tests
excluded: # paths to ignore during linting. overridden by `included`.
- Carthage
2 changes: 1 addition & 1 deletion Sources/OrderedSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ struct OrderedSetGenerator<T: Hashable>: IteratorProtocol {
init(set: OrderedSet<T>) {
generator = set.elements.makeIterator()
}

mutating func next() -> T? {
return generator.next()
}
Expand Down
1 change: 0 additions & 1 deletion Tests/OrderedSetSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Copyright © 2017 Sendy Halim. All rights reserved.
//


import Nimble
import Quick
@testable import OrderedSet
Expand Down

0 comments on commit 716e075

Please sign in to comment.