build(format): scope root formatter and bridge warnings

This commit is contained in:
Peter Steinberger 2026-03-13 01:21:20 +00:00
parent bace59f90b
commit b94b3045b2
No known key found for this signature in database
3 changed files with 12 additions and 4 deletions

View File

@ -48,4 +48,4 @@
--allman false
# Exclusions
--exclude .build,.swiftpm,DerivedData,node_modules,dist,coverage,xcuserdata,AXorcist,Commander,Tachikoma,TauTUI,Core/PeekabooCore/Sources/PeekabooCore/Extensions/NSArray+Extensions.swift
--exclude .build,.swiftpm,DerivedData,node_modules,dist,coverage,xcuserdata,AXorcist,Commander,Swiftdansi,Tachikoma,TauTUI,Core/PeekabooCore/Sources/PeekabooCore/Extensions/NSArray+Extensions.swift

View File

@ -5,6 +5,7 @@ import os.log
import PeekabooAutomationKit
import PeekabooFoundation
// swiftlint:disable type_body_length
public actor PeekabooBridgeClient {
private let socketPath: String
private let maxResponseBytes: Int
@ -527,8 +528,14 @@ public actor PeekabooBridgeClient {
menuItem: menuItem)))
}
public func hideDock() async throws { try await self.sendExpectOK(.hideDock) }
public func showDock() async throws { try await self.sendExpectOK(.showDock) }
public func hideDock() async throws {
try await self.sendExpectOK(.hideDock)
}
public func showDock() async throws {
try await self.sendExpectOK(.showDock)
}
public func isDockHidden() async throws -> Bool {
let response = try await self.send(.isDockHidden)
switch response {
@ -915,3 +922,4 @@ public actor PeekabooBridgeClient {
}
}
}
// swiftlint:enable type_body_length

View File

@ -809,7 +809,7 @@ public struct PeekabooBridgeErrorEnvelope: Codable, Sendable, Error {
}
}
extension PermissionsStatus: Codable {
extension PermissionsStatus: @retroactive Codable {
private enum CodingKeys: String, CodingKey {
case screenRecording
case accessibility