Sort imports

This commit is contained in:
Justin Mazzocchi 2020-09-04 19:31:43 -07:00
parent 51e6a41bd3
commit 70720b3c26
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
45 changed files with 50 additions and 48 deletions

View File

@ -3,3 +3,5 @@ disabled_rules:
# Swift 5.3
- multiple_closures_with_trailing_closure
- no_space_in_method_call
opt_in_rules:
- sorted_imports

View File

@ -2,7 +2,6 @@
import Foundation
import GRDB
import Mastodon
struct AccountResult: Codable, Hashable, FetchableRecord {
let account: AccountRecord

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import GRDB
import Keychain
import Mastodon

View File

@ -2,7 +2,6 @@
import Foundation
import GRDB
import Mastodon
struct StatusResult: Codable, Hashable, FetchableRecord {
let account: AccountRecord

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import GRDB
import Keychain
import Mastodon

View File

@ -1,5 +1,5 @@
import XCTest
@testable import DB
import XCTest
final class DBTests: XCTestCase {
func testExample() {

View File

@ -1,12 +1,12 @@
// Copyright © 2020 Metabolist. All rights reserved.
import SwiftUI
import KingfisherSwiftUI
import struct Kingfisher.KingfisherOptionsInfo
import protocol Kingfisher.ImageProcessor
import struct Kingfisher.DownsamplingImageProcessor
import struct Kingfisher.RoundCornerImageProcessor
import struct Kingfisher.FormatIndicatedCacheSerializer
import protocol Kingfisher.ImageProcessor
import struct Kingfisher.KingfisherOptionsInfo
import struct Kingfisher.RoundCornerImageProcessor
import KingfisherSwiftUI
import SwiftUI
extension KingfisherOptionsInfo {
static func downsampled(size: CGSize, scaleFactor: CGFloat, rounded: Bool = true) -> Self {

View File

@ -1,8 +1,8 @@
// Copyright © 2020 Metabolist. All rights reserved.
import UIKit
import Kingfisher
import Mastodon
import UIKit
extension NSMutableAttributedString {
func insert(emoji: [Emoji], view: UIView) {

View File

@ -1,8 +1,8 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Alamofire
import Combine
import Foundation
public typealias Session = Alamofire.Session

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Alamofire
import Foundation
public typealias HTTPMethod = Alamofire.HTTPMethod
public typealias HTTPHeaders = Alamofire.HTTPHeaders

View File

@ -1,5 +1,5 @@
import XCTest
@testable import HTTP
import XCTest
final class HTTPTests: XCTestCase {
func testExample() {

View File

@ -1,5 +1,5 @@
import XCTest
@testable import Keychain
import XCTest
final class KeychainTests: XCTestCase {
func testExample() {

View File

@ -1,3 +1,5 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
public enum Constants {

View File

@ -1,5 +1,5 @@
import XCTest
@testable import Mastodon
import XCTest
final class MastodonTests: XCTestCase {
func testExample() {

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import HTTP
import Mastodon

View File

@ -1,5 +1,5 @@
import XCTest
@testable import MastodonAPI
import XCTest
final class MastodonAPITests: XCTestCase {
func testExample() {

View File

@ -1,10 +1,10 @@
// Copyright © 2020 Metabolist. All rights reserved.
import UserNotifications
import CryptoKit
import Keychain
import Mastodon
import Secrets
import UserNotifications
class NotificationService: UNNotificationServiceExtension {

View File

@ -1,5 +1,5 @@
import XCTest
@testable import Secrets
import XCTest
final class SecretsTests: XCTestCase {
func testExample() {

View File

@ -1,8 +1,8 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Combine
import DB
import Foundation
import Combine
import Mastodon
import MastodonAPI
import Secrets

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import Mastodon
import MastodonAPI

View File

@ -1,8 +1,8 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Combine
import DB
import Foundation
import Combine
import Mastodon
import MastodonAPI
import Secrets

View File

@ -1,8 +1,8 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import DB
import Foundation
import Mastodon
import MastodonAPI

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import UserNotifications
public struct UserNotificationService {

View File

@ -1,8 +1,8 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import AuthenticationServices
import Combine
import Foundation
public protocol WebAuthSession: AnyObject {
init(url URL: URL,

View File

@ -1,10 +1,10 @@
// Copyright © 2020 Metabolist. All rights reserved.
import XCTest
import Combine
import CombineExpectations
@testable import ServiceLayer
@testable import ServiceLayerMocks
import XCTest
class AuthenticationServiceTests: XCTestCase {
func testAuthentication() throws {

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import UIKit
import Combine
import UIKit
class AppDelegate: NSObject {
@Published private var application: UIApplication?

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import SwiftUI
import Combine
import SwiftUI
import ViewModels
class StatusListViewController: UITableViewController {

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import HTTP
import Mastodon
import MastodonAPI

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import ServiceLayer
public class AddIdentityViewModel: ObservableObject {

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import Mastodon
import ServiceLayer

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
extension Publisher {
func assignErrorsToAlertItem<Root: AnyObject>(

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import Mastodon
import ServiceLayer

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import Mastodon
import ServiceLayer

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import Mastodon
import ServiceLayer

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import ServiceLayer
public class PostingReadingPreferencesViewModel: ObservableObject {

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import ServiceLayer
public final class RootViewModel: ObservableObject {

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import Mastodon
import ServiceLayer

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import Mastodon
import ServiceLayer

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
import Foundation
import Mastodon
import ServiceLayer

View File

@ -1,6 +1,5 @@
// Copyright © 2020 Metabolist. All rights reserved.
import XCTest
import Combine
import CombineExpectations
import HTTP
@ -9,6 +8,7 @@ import MockKeychain
import ServiceLayer
import ServiceLayerMocks
@testable import ViewModels
import XCTest
class AddIdentityViewModelTests: XCTestCase {
func testAddIdentity() throws {

View File

@ -1,11 +1,11 @@
// Copyright © 2020 Metabolist. All rights reserved.
import XCTest
import Combine
import CombineExpectations
import ServiceLayer
import ServiceLayerMocks
@testable import ViewModels
import XCTest
class RootViewModelTests: XCTestCase {
var cancellables = Set<AnyCancellable>()

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import UIKit
import Kingfisher
import UIKit
import ViewModels
class AttachmentView: UIView {

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import SwiftUI
import KingfisherSwiftUI
import SwiftUI
import ViewModels
struct IdentitiesView: View {

View File

@ -1,7 +1,7 @@
// Copyright © 2020 Metabolist. All rights reserved.
import SwiftUI
import KingfisherSwiftUI
import SwiftUI
import ViewModels
struct SecondaryNavigationView: View {

View File

@ -1,8 +1,8 @@
// Copyright © 2020 Metabolist. All rights reserved.
import SwiftUI
import KingfisherSwiftUI
import enum Mastodon.Timeline
import SwiftUI
import ViewModels
struct TabNavigationView: View {