mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 08:42:51 +00:00
Fix various SwiftLint warnings.
This commit is contained in:
1 parent
dbaa8142e1
commit
36956c0345
32 files changed
+149
-134
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user