Skip to content

Commit f507bf9

Browse files
committed
Fixes SwiftLint warnings
1 parent 5f1c0a4 commit f507bf9

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

Sources/Runestone/TextView/Core/Mac/TextView_Mac.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ open class TextView: NSView {
540540
}
541541
}
542542

543-
open override func resetCursorRects() {
543+
override public func resetCursorRects() {
544544
super.resetCursorRects()
545545
addCursorRect(bounds, cursor: .iBeam)
546546
}

Sources/Runestone/TextView/Navigation/NavigationLocationFactories/StatefulLineNavigationLocationFactory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private extension StatefulLineNavigationLocationFactory {
7777
}
7878

7979
extension StatefulLineNavigationLocationFactory.DirectionedOffset {
80-
static func +(lhs: Self, rhs: Self) -> Self {
80+
static func + (lhs: Self, rhs: Self) -> Self {
8181
Self(rawValue: lhs.rawValue + rhs.rawValue)
8282
}
8383
}

Sources/Runestone/TextView/Navigation/StringTokenizer.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ private extension StringTokenizer {
187187
}
188188
}
189189

190-
// swiftlint:disable:next cyclomatic_complexity
191190
private func location(from location: Int, toWordBoundaryInDirection direction: TextDirection) -> Int? {
192191
func advanceIndex(_ index: Int) -> Int {
193192
let preferredIndex: Int

0 commit comments

Comments
 (0)