From f516eb89fce4f16cf0ca572ce0084ecd790c3196 Mon Sep 17 00:00:00 2001 From: Aaron Taylor Date: Thu, 20 Jul 2023 11:44:47 -0400 Subject: [PATCH] Ignore line length linting violation for C-bridging callback --- Sources/SwiftWhisper/Whisper.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/SwiftWhisper/Whisper.swift b/Sources/SwiftWhisper/Whisper.swift index 360b16a..07ffc81 100644 --- a/Sources/SwiftWhisper/Whisper.swift +++ b/Sources/SwiftWhisper/Whisper.swift @@ -83,7 +83,9 @@ public class Whisper { return true } + // swiftlint:disable line_length params.progress_callback = { (_: OpaquePointer?, _: OpaquePointer?, progress: Int32, userData: UnsafeMutableRawPointer?) in + // swiftlint:enable line_length guard let userData else { return } let whisper = Unmanaged.fromOpaque(userData).takeUnretainedValue()