Skip to content

Commit

Permalink
[Lint] Enforce consistent modifier order
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrubin committed Apr 12, 2019
1 parent ce2443b commit 9f3f903
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ opt_in_rules:
- fatal_error_message
- first_where
- implicitly_unwrapped_optional
- modifier_order
- overridden_super_call
- private_outlet
- prohibited_super_call
Expand Down
8 changes: 4 additions & 4 deletions SwiftGit2/Repository.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private func cloneOptions(bare: Bool = false, localClone: Bool = false, fetchOpt
}

/// A git repository.
final public class Repository {
public final class Repository {

// MARK: - Creating Repositories

Expand All @@ -104,7 +104,7 @@ final public class Repository {
/// URL - The URL of the repository.
///
/// Returns a `Result` with a `Repository` or an error.
class public func create(at url: URL) -> Result<Repository, NSError> {
public class func create(at url: URL) -> Result<Repository, NSError> {
var pointer: OpaquePointer? = nil
let result = url.withUnsafeFileSystemRepresentation {
git_repository_init(&pointer, $0, 0)
Expand All @@ -123,7 +123,7 @@ final public class Repository {
/// URL - The URL of the repository.
///
/// Returns a `Result` with a `Repository` or an error.
class public func at(_ url: URL) -> Result<Repository, NSError> {
public class func at(_ url: URL) -> Result<Repository, NSError> {
var pointer: OpaquePointer? = nil
let result = url.withUnsafeFileSystemRepresentation {
git_repository_open(&pointer, $0)
Expand All @@ -148,7 +148,7 @@ final public class Repository {
/// checkoutProgress - A block that's called with the progress of the checkout.
///
/// Returns a `Result` with a `Repository` or an error.
class public func clone(from remoteURL: URL, to localURL: URL, localClone: Bool = false, bare: Bool = false,
public class func clone(from remoteURL: URL, to localURL: URL, localClone: Bool = false, bare: Bool = false,
credentials: Credentials = .default, checkoutStrategy: CheckoutStrategy = .Safe,
checkoutProgress: CheckoutProgressBlock? = nil) -> Result<Repository, NSError> {
var options = cloneOptions(
Expand Down

0 comments on commit 9f3f903

Please sign in to comment.