Change swiftlint config
This commit is contained in:
parent
12d0cf5ca0
commit
ed7e04c955
|
@ -3,3 +3,8 @@ disabled_rules:
|
||||||
- type_name
|
- type_name
|
||||||
opt_in_rules:
|
opt_in_rules:
|
||||||
- sorted_imports
|
- sorted_imports
|
||||||
|
|
||||||
|
file_length:
|
||||||
|
warning: 500
|
||||||
|
error: 1000
|
||||||
|
ignore_comment_only_lines: true
|
||||||
|
|
|
@ -7,7 +7,6 @@ import Keychain
|
||||||
import Mastodon
|
import Mastodon
|
||||||
import Secrets
|
import Secrets
|
||||||
|
|
||||||
// swiftlint:disable file_length
|
|
||||||
public struct ContentDatabase {
|
public struct ContentDatabase {
|
||||||
public let activeFiltersPublisher: AnyPublisher<[Filter], Error>
|
public let activeFiltersPublisher: AnyPublisher<[Filter], Error>
|
||||||
|
|
||||||
|
@ -685,4 +684,3 @@ private extension ContentDatabase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// swiftlint:enable file_length
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ import SwiftUI
|
||||||
import UniformTypeIdentifiers
|
import UniformTypeIdentifiers
|
||||||
import ViewModels
|
import ViewModels
|
||||||
|
|
||||||
// swiftlint:disable file_length
|
|
||||||
final class NewStatusViewController: UIViewController {
|
final class NewStatusViewController: UIViewController {
|
||||||
private let viewModel: NewStatusViewModel
|
private let viewModel: NewStatusViewModel
|
||||||
private let rootViewModel: RootViewModel?
|
private let rootViewModel: RootViewModel?
|
||||||
|
@ -486,4 +485,3 @@ private extension NewStatusViewController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// swiftlint:enable file_length
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ import Foundation
|
||||||
import Mastodon
|
import Mastodon
|
||||||
import ServiceLayer
|
import ServiceLayer
|
||||||
|
|
||||||
// swiftlint:disable file_length
|
|
||||||
public class CollectionItemsViewModel: ObservableObject {
|
public class CollectionItemsViewModel: ObservableObject {
|
||||||
public let identityContext: IdentityContext
|
public let identityContext: IdentityContext
|
||||||
@Published public var alertItem: AlertItem?
|
@Published public var alertItem: AlertItem?
|
||||||
|
@ -464,4 +463,3 @@ private extension CollectionItemsViewModel {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// swiftlint:enable file_length
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ import SDWebImage
|
||||||
import UIKit
|
import UIKit
|
||||||
import ViewModels
|
import ViewModels
|
||||||
|
|
||||||
// swiftlint:disable file_length
|
|
||||||
final class AccountHeaderView: UIView {
|
final class AccountHeaderView: UIView {
|
||||||
let headerImageBackgroundView = UIView()
|
let headerImageBackgroundView = UIView()
|
||||||
let headerImageView = SDAnimatedImageView()
|
let headerImageView = SDAnimatedImageView()
|
||||||
|
@ -537,4 +536,3 @@ private extension AccountHeaderView {
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// swiftlint:enable file_length
|
|
||||||
|
|
Loading…
Reference in New Issue