Skip to content

Commit

Permalink
Update SwiftLint config for 0.44.0
Browse files Browse the repository at this point in the history
  • Loading branch information
file-sync-app[bot] authored and github-actions[bot] committed Sep 16, 2021
1 parent 6973637 commit 9d6c7fc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Updated for 0.43.1
# Updated for 0.44.0

excluded:
- ".build"
Expand Down Expand Up @@ -89,6 +89,8 @@ opt_in_rules:
- legacy_objc_type
- capture_variable
- private_subject
- discouraged_none_name
- redundant_type_annotation

disabled_rules:
- trailing_comma
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ struct GitHubCommand: ParsableCommand {
static var configuration = CommandConfiguration(commandName: "github", abstract: "Updates dependencies and creates a PR for each one")

@Argument(help: "Path of the swift package") var folder: String = "."
@ArgumentParser.Flag(help: "Do not change version requirements in the Package.swift file.") private var keepRequirements: Bool = false
@ArgumentParser.Flag(help: "Do not change version requirements in the Package.swift file.") private var keepRequirements = false

static func update(_ dependencies: [Dependency], in folder: URL, git: GitProvider? = nil, gitHub: GitHubProvider? = nil) throws {
let git = try git ?? Git(in: folder)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ struct ListCommand: ParsableCommand {
static var configuration = CommandConfiguration(commandName: "list", abstract: "Lists all dependencies and possible updates")

@Argument(help: "Path of the swift package") var folder: String = "."
@ArgumentParser.Flag(help: "Do not include indirect dependencies.") private var excludeIndirect: Bool = false
@ArgumentParser.Flag(name: .shortAndLong, help: "Do not include dependencies without update.") private var updatesOnly: Bool = false
@ArgumentParser.Flag(help: "Do not include indirect dependencies.") private var excludeIndirect = false
@ArgumentParser.Flag(name: .shortAndLong, help: "Do not include dependencies without update.") private var updatesOnly = false

func run() throws {
let folder = URL(fileURLWithPath: folder)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ struct UpdateCommand: ParsableCommand {
static var configuration = CommandConfiguration(commandName: "update", abstract: "Updates dependencies")

@Argument(help: "Path of the swift package") var folder: String = "."
@ArgumentParser.Flag(help: "Do not change version requirements in the Package.swift file.") private var keepRequirements: Bool = false
@ArgumentParser.Flag(help: "Do not change version requirements in the Package.swift file.") private var keepRequirements = false

func run() throws {
let folder = URL(fileURLWithPath: folder)
Expand Down

0 comments on commit 9d6c7fc

Please sign in to comment.