diff --git a/Source/SwiftLintCore/Models/Configuration.swift b/Source/SwiftLintCore/Models/Configuration.swift index 01a6a008e73..41d72613041 100644 --- a/Source/SwiftLintCore/Models/Configuration.swift +++ b/Source/SwiftLintCore/Models/Configuration.swift @@ -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. @@ -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.