style: swiftformat pass — drift from the format gate
CI / ci (push) Canceled after 0s
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:
1 parent
5ad605eb3c
commit
a4ea914690
9 files changed
+18
-27
No files matched your search
@@ -77,18 +77,17 @@ nonisolated struct Post: Identifiable, Equatable {
|
||||
for projectDir in projects.sorted(by: { $0.lastPathComponent < $1.lastPathComponent }) {
|
||||
let values = try? projectDir.resourceValues(forKeys: [.isDirectoryKey, .isSymbolicLinkKey])
|
||||
guard values?.isDirectory ?? false, !(values?.isSymbolicLink ?? false),
|
||||
!projectDir.lastPathComponent.hasPrefix(".") else { continue }
|
||||
guard let entries = try? FileManager.default.contentsOfDirectory(
|
||||
at: projectDir,
|
||||
includingPropertiesForKeys: [.isDirectoryKey, .isSymbolicLinkKey],
|
||||
) else { continue }
|
||||
!projectDir.lastPathComponent.hasPrefix("."),
|
||||
let entries = try? FileManager.default.contentsOfDirectory(
|
||||
at: projectDir,
|
||||
includingPropertiesForKeys: [.isDirectoryKey, .isSymbolicLinkKey],
|
||||
) else { continue }
|
||||
for dir in entries.sorted(by: { $0.lastPathComponent < $1.lastPathComponent }) {
|
||||
let pieceValues = try? dir.resourceValues(forKeys: [.isDirectoryKey, .isSymbolicLinkKey])
|
||||
guard pieceValues?.isDirectory ?? false, !(pieceValues?.isSymbolicLink ?? false),
|
||||
!dir.lastPathComponent.hasPrefix(".") else { continue }
|
||||
let fileURL = dir.appendingPathComponent("post.md")
|
||||
guard let text = try? String(contentsOf: fileURL, encoding: .utf8) else { continue }
|
||||
guard seen.insert(dir.lastPathComponent).inserted else { continue }
|
||||
guard let text = try? String(contentsOf: fileURL, encoding: .utf8), seen.insert(dir.lastPathComponent).inserted else { continue }
|
||||
let frontmatter = frontmatter(of: text)
|
||||
posts.append(
|
||||
Post(
|
||||
|
||||
Reference in new issue
Block a user