Remove unused imports

This commit is contained in:
JP Simard
2020-12-14 15:53:49 -05:00
parent 4a94f6a894
commit 6bad2eccdf
4 changed files with 10 additions and 8 deletions
-1
View File
@@ -1,5 +1,4 @@
import ArgumentParser
import SwiftLintFramework
extension SwiftLint {
struct Analyze: ParsableCommand {
-1
View File
@@ -1,5 +1,4 @@
import ArgumentParser
import SwiftLintFramework
extension SwiftLint {
struct Lint: ParsableCommand {
+3 -5
View File
@@ -1,5 +1,5 @@
import ArgumentParser
import Foundation
import SwiftLintFramework
struct SwiftLint: ParsableCommand {
static var configuration = CommandConfiguration(
@@ -25,13 +25,11 @@ struct SwiftLint: ParsableCommand {
return
}
fputs(
queuedPrintError(
"""
The `swiftlint autocorrect` command is no longer available.
Please use `swiftlint --fix` instead.
""",
stderr
"""
)
var newArguments = argumentsToCheck
newArguments[0] = "--fix"
+7 -1
View File
@@ -1,5 +1,11 @@
import Dispatch
import Foundation
#if canImport(Darwin)
import Darwin
#elseif canImport(Glibc)
import Glibc
#else
#error("Unsupported platform")
#endif
DispatchQueue.global().async {
SwiftLint.mainHandlingDeprecatedCommands()