Skip to content

Commit 47330bf

Browse files
chore: check supported keys only when the artifact is sent for test-coverage (#225)
1 parent 4edee8f commit 47330bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command/report/report.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (opts *ReportOptions) Run() int {
127127
return keys
128128
}
129129

130-
if !supportedKeys[reportCommandKey] {
130+
if reportCommandAnalyzerShortcode == "test-coverage" && !supportedKeys[reportCommandKey] {
131131
err = fmt.Errorf("DeepSource | Error | Invalid Key: %s (Supported Keys: %v)", reportCommandKey, allowedKeys(supportedKeys))
132132
fmt.Fprintln(os.Stderr, err)
133133
sentry.CaptureException(err)

0 commit comments

Comments
 (0)