mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 03:25:50 +00:00
macos: swiftlint 'switch_case_alignment' rule
This commit is contained in:
@@ -21,7 +21,6 @@ disabled_rules:
|
||||
- for_where
|
||||
- force_cast
|
||||
- multiple_closures_with_trailing_closure
|
||||
- switch_case_alignment
|
||||
|
||||
identifier_name:
|
||||
min_length: 1
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user