mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 14:00:29 +00:00
macos: swiftlint 'multiple_closures_with_trailing_closure' rule (#10929)
Also, re-enable the 'force_cast' rule, which was addressed earlier.
This commit is contained in:
@@ -17,10 +17,6 @@ disabled_rules:
|
||||
- trailing_newline
|
||||
- type_body_length
|
||||
|
||||
# TODO
|
||||
- force_cast
|
||||
- multiple_closures_with_trailing_closure
|
||||
|
||||
identifier_name:
|
||||
min_length: 1
|
||||
allowed_symbols: ["_"]
|
||||
|
||||
@@ -47,7 +47,7 @@ struct UpdatePill: View {
|
||||
} else {
|
||||
showPopover.toggle()
|
||||
}
|
||||
}) {
|
||||
}, label: {
|
||||
HStack(spacing: 6) {
|
||||
UpdateBadge(model: model)
|
||||
.frame(width: 14, height: 14)
|
||||
@@ -66,7 +66,7 @@ struct UpdatePill: View {
|
||||
)
|
||||
.foregroundColor(model.foregroundColor)
|
||||
.contentShape(Capsule())
|
||||
}
|
||||
})
|
||||
.buttonStyle(.plain)
|
||||
.help(model.text)
|
||||
.accessibilityLabel(model.text)
|
||||
|
||||
@@ -454,18 +454,18 @@ extension Ghostty {
|
||||
guard let surface = surfaceView.surface else { return }
|
||||
let action = "navigate_search:next"
|
||||
ghostty_surface_binding_action(surface, action, UInt(action.lengthOfBytes(using: .utf8)))
|
||||
}) {
|
||||
}, label: {
|
||||
Image(systemName: "chevron.up")
|
||||
}
|
||||
})
|
||||
.buttonStyle(SearchButtonStyle())
|
||||
|
||||
Button(action: {
|
||||
guard let surface = surfaceView.surface else { return }
|
||||
let action = "navigate_search:previous"
|
||||
ghostty_surface_binding_action(surface, action, UInt(action.lengthOfBytes(using: .utf8)))
|
||||
}) {
|
||||
}, label: {
|
||||
Image(systemName: "chevron.down")
|
||||
}
|
||||
})
|
||||
.buttonStyle(SearchButtonStyle())
|
||||
|
||||
Button(action: onClose) {
|
||||
|
||||
Reference in New Issue
Block a user