Deprecate explicit default value for --reporter

This commit is contained in:
Nick Lockwood
2024-05-18 13:14:08 +01:00
parent 3d8df164e3
commit 9c38b05a25
2 changed files with 6 additions and 2 deletions
+6 -1
View File
@@ -359,7 +359,12 @@ func processArguments(_ args: [String], environment: [String: String] = [:], in
}
// Reporter
let reporter: Reporter = try args["reporter"].map { identifier in
let reporter: Reporter = try args["reporter"].flatMap { identifier in
if identifier.lowercased() == "default" {
// Avoid errors for explicit `default` added to work around bug in 0.53.9
print("warning: Passing 'default' for --reporter is deprecated.", as: .warning)
return nil
}
guard let reporter = Reporters.reporter(
named: identifier,
environment: environment
-1
View File
@@ -67,7 +67,6 @@ final class DefaultReporter: Reporter {
enum Reporters {
static let all: [Reporter.Type] = [
DefaultReporter.self,
JSONReporter.self,
GithubActionsLogReporter.self,
]