From 47330bf1658ee8b5b98989853f64ca2538439e9e Mon Sep 17 00:00:00 2001 From: Srijan Saurav <68371686+srijan-deepsource@users.noreply.github.com> Date: Tue, 3 Oct 2023 19:46:07 +0530 Subject: [PATCH] chore: check supported keys only when the artifact is sent for test-coverage (#225) --- command/report/report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/report/report.go b/command/report/report.go index 23ac222f..b54aa38f 100644 --- a/command/report/report.go +++ b/command/report/report.go @@ -127,7 +127,7 @@ func (opts *ReportOptions) Run() int { return keys } - if !supportedKeys[reportCommandKey] { + if reportCommandAnalyzerShortcode == "test-coverage" && !supportedKeys[reportCommandKey] { err = fmt.Errorf("DeepSource | Error | Invalid Key: %s (Supported Keys: %v)", reportCommandKey, allowedKeys(supportedKeys)) fmt.Fprintln(os.Stderr, err) sentry.CaptureException(err)