mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Remove unused imports
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import ArgumentParser
|
||||
import SwiftLintFramework
|
||||
|
||||
extension SwiftLint {
|
||||
struct Analyze: ParsableCommand {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import ArgumentParser
|
||||
import SwiftLintFramework
|
||||
|
||||
extension SwiftLint {
|
||||
struct Lint: ParsableCommand {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user