From f7e6639c43b9537f0fb4ebfa1544652c24a715ff Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Fri, 20 Feb 2026 19:18:40 -0500 Subject: [PATCH] macos: swiftlint 'switch_case_alignment' rule --- macos/.swiftlint.yml | 1 - .../QuickTerminalSpaceBehavior.swift | 24 +++++++++---------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/macos/.swiftlint.yml b/macos/.swiftlint.yml index 7a27b45da..379fe9303 100644 --- a/macos/.swiftlint.yml +++ b/macos/.swiftlint.yml @@ -21,7 +21,6 @@ disabled_rules: - for_where - force_cast - multiple_closures_with_trailing_closure - - switch_case_alignment identifier_name: min_length: 1 diff --git a/macos/Sources/Features/QuickTerminal/QuickTerminalSpaceBehavior.swift b/macos/Sources/Features/QuickTerminal/QuickTerminalSpaceBehavior.swift index 9f544b7e6..176cbf160 100644 --- a/macos/Sources/Features/QuickTerminal/QuickTerminalSpaceBehavior.swift +++ b/macos/Sources/Features/QuickTerminal/QuickTerminalSpaceBehavior.swift @@ -7,14 +7,14 @@ enum QuickTerminalSpaceBehavior { init?(fromGhosttyConfig string: String) { switch string { - case "move": - self = .move + case "move": + self = .move - case "remain": - self = .remain + case "remain": + self = .remain - default: - return nil + default: + return nil } } @@ -25,12 +25,12 @@ enum QuickTerminalSpaceBehavior { ] switch self { - case .move: - // We want this to move the window to the active space. - return NSWindow.CollectionBehavior([.canJoinAllSpaces] + commonBehavior) - case .remain: - // We want this to remain the window in the current space. - return NSWindow.CollectionBehavior([.moveToActiveSpace] + commonBehavior) + case .move: + // We want this to move the window to the active space. + return NSWindow.CollectionBehavior([.canJoinAllSpaces] + commonBehavior) + case .remain: + // We want this to remain the window in the current space. + return NSWindow.CollectionBehavior([.moveToActiveSpace] + commonBehavior) } } }