From c899767a76f477571319fdc4d3685e64691c8f53 Mon Sep 17 00:00:00 2001 From: Martin Redington Date: Tue, 27 Jun 2023 09:26:07 +0100 Subject: [PATCH] Fixed line length --- Source/swiftlint/Commands/Configure.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/swiftlint/Commands/Configure.swift b/Source/swiftlint/Commands/Configure.swift index f70c24f5458..574a69d7f7c 100644 --- a/Source/swiftlint/Commands/Configure.swift +++ b/Source/swiftlint/Commands/Configure.swift @@ -113,7 +113,8 @@ extension SwiftLint { let deprecatedRuleIdentifiers = Set(RuleRegistry.shared.deprecatedRuleIdentifiers) let undisabledDeprecatedRuleIdentifiers = deprecatedRuleIdentifiers.subtracting(ruleIdentifiersToDisable) if undisabledDeprecatedRuleIdentifiers.isNotEmpty { - if askUser("\nDo you want to disable all (\(undisabledDeprecatedRuleIdentifiers.count)) of the deprecated rules?") { + let count = undisabledDeprecatedRuleIdentifiers.count + if askUser("\nDo you want to disable all (\(count)) of the deprecated rules?") { ruleIdentifiersToDisable.append(contentsOf: undisabledDeprecatedRuleIdentifiers.sorted()) } }