mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
35290a1935
to help compile on Linux later
28 lines
647 B
Swift
28 lines
647 B
Swift
//
|
|
// main.swift
|
|
// SwiftLint
|
|
//
|
|
// Created by JP Simard on 5/16/15.
|
|
// Copyright © 2015 Realm. All rights reserved.
|
|
//
|
|
|
|
import Commandant
|
|
import Dispatch
|
|
import Foundation
|
|
import SwiftLintFramework
|
|
|
|
DispatchQueue.global().async {
|
|
let registry = CommandRegistry<CommandantError<()>>()
|
|
registry.register(LintCommand())
|
|
registry.register(AutoCorrectCommand())
|
|
registry.register(VersionCommand())
|
|
registry.register(RulesCommand())
|
|
registry.register(HelpCommand(registry: registry))
|
|
|
|
registry.main(defaultVerb: LintCommand().verb) { error in
|
|
queuedPrintError(String(describing: error))
|
|
}
|
|
}
|
|
|
|
dispatchMain()
|