From b5eb820ae3d8598e53dfae6840e91e3f5d0e9d67 Mon Sep 17 00:00:00 2001 From: Andrei Iurko Date: Wed, 9 Oct 2024 12:51:19 +0300 Subject: [PATCH] :bug: Fix GitLab/BitBucket reports with baseline and no new problems (QD-10038) --- platform/sarif.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/sarif.go b/platform/sarif.go index 9984e7a8..18564b9f 100644 --- a/platform/sarif.go +++ b/platform/sarif.go @@ -342,8 +342,8 @@ func ProcessSarif(sarifPath, analysisId, reportUrl string, printProblems, codeCl if err != nil { log.Fatal(err) } - var codeClimateIssues []CCIssue - var codeInsightIssues []bbapi.ReportAnnotation + var codeClimateIssues = make([]CCIssue, 0) + var codeInsightIssues = make([]bbapi.ReportAnnotation, 0) rulesDescriptions := make(map[string]string) if printProblems { EmptyMessage()