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
.swiftlint.yml
Modules/Account/Sources/Account

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

@ -265,7 +265,7 @@ public final class Feed: SidebarItem, Renamable, Hashable {
// 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
}
}

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

@ -24,14 +24,14 @@ final class OPMLNormalizer {
for item in items {
if let _ = item.feedSpecifier {
if item.feedSpecifier != nil {
if !feedsToAdd.contains(where: { $0.feedSpecifier?.feedURL == item.feedSpecifier?.feedURL }) {
feedsToAdd.append(item)
}
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.
if let itemChildren = item.items {
normalize(itemChildren, parentFolder: parentFolder)