Fix various SwiftLint warnings.

This commit is contained in:
Brent Simmons committed 2026-01-02 10:17:41 -08:00
1 parent dbaa8142e1
commit 36956c0345
32 files changed
+149 -134

No files matched your search

+7 -7
View File
@@ -16,7 +16,7 @@ import RSCore
let folder: Folder
nonisolated(unsafe) let container: ScriptingObjectContainer
init (_ folder:Folder, container: ScriptingObjectContainer) {
init (_ folder: Folder, container: ScriptingObjectContainer) {
self.folder = folder
self.container = container
}
@@ -39,7 +39,7 @@ import RSCore
// but in either case it seems like the accountID would be used as the keydata, so I chose ID
@objc(uniqueId)
nonisolated var scriptingUniqueID:Any {
nonisolated var scriptingUniqueID: Any {
folder.folderID
}
@@ -94,7 +94,7 @@ import RSCore
return nil
}
// MARK: --- Scriptable elements ---
// MARK: - Scriptable elements
@objc(feeds)
var feeds: NSArray {
@@ -112,7 +112,7 @@ import RSCore
let sortedArticles = allArticles.sorted(by: {
$0.logicalDatePublished > $1.logicalDatePublished
})
return sortedArticles.map { ScriptableArticle($0, container:self) } as NSArray
return sortedArticles.map { ScriptableArticle($0, container: self) } as NSArray
}
@objc(countOfArticles)
@@ -142,12 +142,12 @@ import RSCore
// MARK: - Scriptable properties
@objc(name)
var name:String {
var name: String {
folder.name ?? ""
}
@objc(opmlRepresentation)
var opmlRepresentation:String {
folder.OPMLString(indentLevel:0)
var opmlRepresentation: String {
folder.OPMLString(indentLevel: 0)
}
}