style: swiftformat pass — drift from the format gate
CI / ci (push) Canceled after 0s

Whole-tree swiftformat/swiftlint run during #136 flagged 9 files
drifted (/// doc markers on private members, one force-unwrap to
#require). Comment- and lint-only, no code change.
This commit is contained in:
AlexKucera committed 2026-10-27 18:32:30 +01:00
1 parent 5ad605eb3c
commit a4ea914690
9 files changed
+18 -27

No files matched your search

+2 -4
View File
@@ -88,8 +88,7 @@ nonisolated enum ProseList {
guard buffer.length > 0 else { return nil }
let scanned = lines(in: text)
let caretLoc = min(max(0, caret), buffer.length - 1)
guard let idx = scanned.firstIndex(where: { NSLocationInRange(caretLoc, $0.range) }) else { return nil }
guard scanned[idx].isList else { return nil }
guard let idx = scanned.firstIndex(where: { NSLocationInRange(caretLoc, $0.range) }), scanned[idx].isList else { return nil }
let indent = scanned[idx].indent
let bounds = blockBounds(scanned, from: idx, indent: indent)
let blockEnd = scanned[bounds.end].end
@@ -154,8 +153,7 @@ nonisolated extension ProseList {
/// minus our indent. No previous sibling → nil (boundary no-op).
static func indent(_ item: Item, caret: Int, in text: String) -> Edit? {
let scanned = lines(in: text)
guard let idx = lineIndex(of: item.markerLine.location, in: scanned) else { return nil }
guard let sibIdx = adjacentSiblingLine(scanned, from: idx, through: idx, indent: item.indent, direction: -1) else { return nil }
guard let idx = lineIndex(of: item.markerLine.location, in: scanned), let sibIdx = adjacentSiblingLine(scanned, from: idx, through: idx, indent: item.indent, direction: -1) else { return nil }
let delta = contentColumn(scanned[sibIdx].text) - item.indent
guard delta > 0 else { return nil }
let body = blockBody(text, item.block)