Fix lint issues.
This commit is contained in:
parent
70a4dcd273
commit
5b7d91f109
.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 doesn’t have a name, so it won’t be created, and its items will go one level up.
|
||||
if let itemChildren = item.items {
|
||||
normalize(itemChildren, parentFolder: parentFolder)
|
||||
|
Loading…
x
Reference in New Issue
Block a user