Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Danny Mösch <[email protected]>
  • Loading branch information
alex-taffe and SimplyDanny authored Aug 19, 2024
1 parent 5908cde commit 1ddd4fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/SwiftLintCore/Models/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public struct Configuration {
/// lint as having failed.
/// - parameter reporter: The identifier for the `Reporter` to use to report style violations.
/// - parameter cachePath: The location of the persisted cache to use with this configuration.
/// - parameter versionConstraint: The SwiftLint version defined in this configuration.
/// - parameter versionConstraint: The SwiftLint version constraint defined in this configuration.
/// - parameter allowZeroLintableFiles: Allow SwiftLint to exit successfully when passed ignored or unlintable
/// files.
/// - parameter strict: Treat warnings as errors.
Expand Down Expand Up @@ -297,7 +297,7 @@ public struct Configuration {
/// * `<=0.54.0`
///
/// - Parameter configurationVersion: The configuration version to compare against.
static func compareVersion(to configurationVersion: String) { // swiftlint:disable:this function_body_length
static func checkVersion(against versionConstraint: String) { // swiftlint:disable:this function_body_length
func showInvalidVersionStringError() -> Never {
let invalidVersionString = """
error: swiftlint_version syntax invalid.
Expand Down

0 comments on commit 1ddd4fe

Please sign in to comment.