Skip to content

Commit 2202095

Browse files
committed
Fix linter issues
1 parent c6942bd commit 2202095

11 files changed

Lines changed: 13 additions & 1 deletion

Sources/CollectionViewSlantedCell.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,5 @@ import UIKit
5454
slantedLayerMask = layoutAttributes.slantedLayerMask
5555
layer.mask = layoutAttributes.slantedLayerMask
5656
}
57+
5758
}

Sources/CollectionViewSlantedLayout+Constants.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,5 @@ import Foundation
5555
internal var isAscending: Bool {
5656
return self == .ascending
5757
}
58+
5859
}

Sources/CollectionViewSlantedLayout.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,4 +283,5 @@ extension CollectionViewSlantedLayout {
283283
override open func layoutAttributesForItem(at indexPath: IndexPath) -> CollectionViewSlantedLayoutAttributes? {
284284
return cachedAttributes[indexPath.item]
285285
}
286+
286287
}

Sources/Extensions/CAShapeLayer+Helpers.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ extension CAShapeLayer {
4949

5050
path = bezierPath.cgPath
5151
}
52+
5253
}

Sources/Extensions/UICollectionView+Helpers.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ extension UICollectionView.ScrollDirection {
2929
var isVertical: Bool {
3030
return self == .vertical
3131
}
32+
3233
}

Sources/Extensions/UICollectionViewLayout+Helpers.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ extension UICollectionViewLayout {
4444

4545
return collectionView.frame.height - collectionView.contentInset.top - collectionView.contentInset.bottom
4646
}
47+
4748
}

Sources/Internal/CollectionViewSlantedLayoutAttributes.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,5 @@ open class CollectionViewSlantedLayoutAttributes: UICollectionViewLayoutAttribut
5252

5353
return false
5454
}
55+
5556
}

Sources/Internal/CollectionViewSlantedMasks.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,5 @@ public struct CollectionViewSlantedMasks {
152152

153153
return (startingPoints, defaultPoints, endingPoints)
154154
}
155+
155156
}

Tests/CollectionViewController.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class CollectionViewController: UICollectionViewController {
3434

3535
override func viewDidLoad() {
3636
super.viewDidLoad()
37-
3837
self.collectionView!.register(CollectionViewSlantedCell.self, forCellWithReuseIdentifier: reuseIdentifier)
3938
}
4039

@@ -52,12 +51,15 @@ class CollectionViewController: UICollectionViewController {
5251
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, for: indexPath)
5352
return cell
5453
}
54+
5555
}
5656

5757
extension CollectionViewController: CollectionViewDelegateSlantedLayout {
58+
5859
func collectionView(_ collectionView: UICollectionView,
5960
layout collectionViewLayout: CollectionViewSlantedLayout,
6061
sizeForItemAt indexPath: IndexPath) -> CGFloat {
6162
return itemSize ?? collectionViewLayout.itemSize
6263
}
64+
6365
}

Tests/CollectionViewSlantedLayoutTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,5 @@ class CollectionViewSlantedLayoutTests: XCTestCase {
200200
func testLayoutShouldInvalidateLayoutForBoundsChange() {
201201
XCTAssertTrue(verticalSlantedViewLayout.shouldInvalidateLayout(forBoundsChange: CGRect()))
202202
}
203+
203204
}

0 commit comments

Comments
 (0)