Change swiftlint config

This commit is contained in:
Justin Mazzocchi 2021-03-21 16:26:07 -07:00
parent 12d0cf5ca0
commit ed7e04c955
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C
5 changed files with 5 additions and 8 deletions

View file

@ -3,3 +3,8 @@ disabled_rules:
- type_name
opt_in_rules:
- sorted_imports
file_length:
warning: 500
error: 1000
ignore_comment_only_lines: true

View file

@ -7,7 +7,6 @@ import Keychain
import Mastodon
import Secrets
// swiftlint:disable file_length
public struct ContentDatabase {
public let activeFiltersPublisher: AnyPublisher<[Filter], Error>
@ -685,4 +684,3 @@ private extension ContentDatabase {
}
}
}
// swiftlint:enable file_length

View file

@ -8,7 +8,6 @@ import SwiftUI
import UniformTypeIdentifiers
import ViewModels
// swiftlint:disable file_length
final class NewStatusViewController: UIViewController {
private let viewModel: NewStatusViewModel
private let rootViewModel: RootViewModel?
@ -486,4 +485,3 @@ private extension NewStatusViewController {
}
}
}
// swiftlint:enable file_length

View file

@ -5,7 +5,6 @@ import Foundation
import Mastodon
import ServiceLayer
// swiftlint:disable file_length
public class CollectionItemsViewModel: ObservableObject {
public let identityContext: IdentityContext
@Published public var alertItem: AlertItem?
@ -464,4 +463,3 @@ private extension CollectionItemsViewModel {
return nil
}
}
// swiftlint:enable file_length

View file

@ -4,7 +4,6 @@ import SDWebImage
import UIKit
import ViewModels
// swiftlint:disable file_length
final class AccountHeaderView: UIView {
let headerImageBackgroundView = UIView()
let headerImageView = SDAnimatedImageView()
@ -537,4 +536,3 @@ private extension AccountHeaderView {
])
}
}
// swiftlint:enable file_length