From 2588226c0bd577b028140658d94e93bd2cfc0fdc Mon Sep 17 00:00:00 2001 From: Christopher Fuller Date: Sun, 4 Feb 2024 08:32:23 -0800 Subject: [PATCH] Add unknown default to SwiftLint command switch --- Plugins/SwiftLintCommand/SwiftLintCommand.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plugins/SwiftLintCommand/SwiftLintCommand.swift b/Plugins/SwiftLintCommand/SwiftLintCommand.swift index 85935a24..b91179b1 100644 --- a/Plugins/SwiftLintCommand/SwiftLintCommand.swift +++ b/Plugins/SwiftLintCommand/SwiftLintCommand.swift @@ -35,6 +35,8 @@ internal struct SwiftLintCommand: CommandPlugin { break case .uncaughtSignal: return Diagnostics.error("Uncaught Signal") + @unknown default: + return Diagnostics.error("Unexpected Termination Reason") } guard process.terminationStatus == EXIT_SUCCESS else { return Diagnostics.error("Command Failed") }