Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mono0926 committed Oct 19, 2020
1 parent 85a84de commit 7167eb7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions Sources/LicensePlist/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,53 +20,53 @@ extension CompletionKind {
struct LicensePlist: ParsableCommand {
@Option(name: .long, completion: .file())
var cartfilePath = Consts.cartfileName

@Option(name: .long, completion: .file())
var mintfilePath = Consts.mintfileName

@Option(name: .long, completion: .directory)
var podsPath = Consts.podsDirectoryName

@Option(name: .long, completion: .file())
var packagePath = Consts.packageName

@Option(name: .long, completion: .file())
var xcodeprojPath = "*.xcodeproj"

@Option(name: .long, completion: .file())
var outputPath = Consts.outputPath

static let githubTokenEnv = "LICENSE_PLIST_GITHUB_TOKEN"
@Option(name: .long, help: "You can also pass the token via the '\(Self.githubTokenEnv)' environment variable.", completion: .empty)
var githubToken: String?

@Option(name: .long, completion: .file())
var configPath = Consts.configPath

@Option(name: .long, completion: .empty)
var prefix = Consts.prefix

@Option(name: .long, completion: .file())
var htmlPath: String?

@Option(name: .long, completion: .file())
var markdownPath: String?

@Flag(name: .long)
var force = false

@Flag(name: .long)
var addVersionNumbers = false

@Flag(name: .long)
var suppressOpeningDirectory = false

@Flag(name: .long)
var singlePage = false

@Flag(name: .long)
var failIfMissingLicense = false

func run() throws {
Logger.configure()
var config = loadConfig(configPath: URL(fileURLWithPath: configPath))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class LicensePlistHolderTests: XCTestCase {
let podsLicense = CocoaPodsLicense(library: pods, body: "\(firstPart)\n\n\n---\n\n\(secondPart)\n\n==========\n\n\(thirdPart)")
let result = LicensePlistHolder.load(licenses: [podsLicense], options: Options.empty)
let (_, items) = result.deserialized()

let item1 = items.first!.1
let groupArray = item1["PreferenceSpecifiers"]!
XCTAssertEqual(groupArray.count, 5)
Expand Down

0 comments on commit 7167eb7

Please sign in to comment.