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:
Mitchell Hashimoto
2026-02-21 13:43:20 -08:00
committed by GitHub
3 changed files with 6 additions and 10 deletions

View File

@@ -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: ["_"]

View File

@@ -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)

View File

@@ -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) {