Fix lint issues.

This commit is contained in:
Brent Simmons 2025-01-22 22:48:24 -08:00
parent 70a4dcd273
commit 5b7d91f109
4 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
identifier_name: identifier_name:
min_length: 1 min_length: 1
max_length: 40 max_length: 50
allowed_patterns: ^_.*$ allowed_patterns: ^_.*$
line_length: line_length:

View File

@ -265,7 +265,7 @@ public final class Feed: SidebarItem, Renamable, Hashable {
// MARK: - Equatable // MARK: - Equatable
public class func ==(lhs: Feed, rhs: Feed) -> Bool { public static func ==(lhs: Feed, rhs: Feed) -> Bool {
return lhs.feedID == rhs.feedID && lhs.accountID == rhs.accountID return lhs.feedID == rhs.feedID && lhs.accountID == rhs.accountID
} }
} }

View File

@ -38,7 +38,7 @@ struct NewsBlurStoriesResponse: Decodable {
extension NewsBlurStoriesResponse { extension NewsBlurStoriesResponse {
private enum CodingKeys: String, CodingKey { private enum CodingKeys: String, CodingKey {
case stories = "stories" case stories
} }
} }

View File

@ -24,14 +24,14 @@ final class OPMLNormalizer {
for item in items { for item in items {
if let _ = item.feedSpecifier { if item.feedSpecifier != nil {
if !feedsToAdd.contains(where: { $0.feedSpecifier?.feedURL == item.feedSpecifier?.feedURL }) { if !feedsToAdd.contains(where: { $0.feedSpecifier?.feedURL == item.feedSpecifier?.feedURL }) {
feedsToAdd.append(item) feedsToAdd.append(item)
} }
continue continue
} }
guard let _ = item.titleFromAttributes else { guard item.titleFromAttributes != nil else {
// Folder doesnt have a name, so it wont be created, and its items will go one level up. // Folder doesnt have a name, so it wont be created, and its items will go one level up.
if let itemChildren = item.items { if let itemChildren = item.items {
normalize(itemChildren, parentFolder: parentFolder) normalize(itemChildren, parentFolder: parentFolder)