Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Swiftlint errors #4

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions Sources/Version-Control/Services/Models/Client/Rev-List.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import Foundation
///
/// Each parameter can be the commit SHA or a ref name, or specify an empty
/// string to represent HEAD.
// swiftlint:disable:next identifier_name
private func revRange(from: String, to: String) -> String {
private func revRange(from: String, to: String) -> String { // swiftlint:disable:this identifier_name
return "\(from)..\(to)"
}

Expand All @@ -26,8 +25,7 @@ private func revRange(from: String, to: String) -> String {
///
/// Each parameter can be the commit SHA or a ref name, or specify an empty
/// string to represent HEAD.
// swiftlint:disable:next identifier_name
private func revRangeInclusive(from: String, to: String) -> String {
private func revRangeInclusive(from: String, to: String) -> String { // swiftlint:disable:this identifier_name
return "\(from)^...\(to)"
}

Expand All @@ -37,8 +35,7 @@ private func revRangeInclusive(from: String, to: String) -> String {
///
/// Each parameter can be the commit SHA or a ref name, or you can use an empty
/// string to represent HEAD.
// swiftlint:disable:next identifier_name
private func revSymmetricDifference(from: String, to: String) -> String {
private func revSymmetricDifference(from: String, to: String) -> String { // swiftlint:disable:this identifier_name
return "\(from)...\(to)"
}

Expand Down
3 changes: 1 addition & 2 deletions Sources/Version-Control/Services/Models/Diff/Raw-Diff.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public enum DiffHunkExpansionType: String {

/// The hunk header can be expanded up exclusively. Only the first hunk can be
/// expanded up exclusively.
// swiftlint:disable:next identifier_name
case up = "Up"
case up = "Up" // swiftlint:disable:this identifier_name

/// The hunk header can be expanded down exclusively. Only the last hunk (if
/// it's the dummy hunk with only one line) can be expanded down exclusively.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Version-Control/Utils/Helpers/DefaultBranch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public struct DefaultBranch {
public let suggestedBranchNames: [String] = ["main, master"]

/// Returns the configured default branch when creating new repositories
// TODO: Bug where global config value is not being processed correctly
public func getConfiguredDefaultBranch() throws -> String? {
// TODO: Bug where global config value is not being processed correctly
return try getGlobalConfigVlaue(name: defaultBranchSettingName)
}

Expand Down
Loading