Skip to content

Commit

Permalink
chore: check supported keys only when the artifact is sent for test-c…
Browse files Browse the repository at this point in the history
…overage (#225)
  • Loading branch information
srijan-deepsource authored Oct 3, 2023
1 parent 4edee8f commit 47330bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 47330bf

Please sign in to comment.