From 80515f3cfb88c3ab2fd0d118a61579fcb7bd5167 Mon Sep 17 00:00:00 2001 From: Christopher Fenner <26137398+CCFenner@users.noreply.github.com> Date: Wed, 24 Feb 2021 19:21:40 +0100 Subject: [PATCH] fix(sonar): remove warnings handling (#2650) --- pkg/sonar/taskService.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/sonar/taskService.go b/pkg/sonar/taskService.go index 79cdb6fc5..b2ab4d737 100644 --- a/pkg/sonar/taskService.go +++ b/pkg/sonar/taskService.go @@ -55,8 +55,8 @@ func (service *TaskService) GetTask(options *sonargo.CeTaskOption) (*sonargo.CeT // HasFinished ... func (service *TaskService) HasFinished() (bool, error) { options := &sonargo.CeTaskOption{ - Id: service.TaskID, - AdditionalFields: "warnings", + Id: service.TaskID, + // AdditionalFields: "warnings", } result, _, err := service.GetTask(options) if err != nil { @@ -65,9 +65,9 @@ func (service *TaskService) HasFinished() (bool, error) { if result.Task.Status == taskStatusPending || result.Task.Status == taskStatusProcessing { return false, nil } - for _, warning := range result.Task.Warnings { - log.Entry().Warnf("Warnings during analysis: %s", warning) - } + // for _, warning := range result.Task.Warnings { + // log.Entry().Warnf("Warnings during analysis: %s", warning) + // } return true, nil }