From 1ddd4fec6a378eb0db135ab5b4cbd846a7ac6c3d Mon Sep 17 00:00:00 2001 From: Alex Taffe Date: Mon, 19 Aug 2024 09:10:50 -0400 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Danny Mösch --- Source/SwiftLintCore/Models/Configuration.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.