From 7e0de8db746779a06e3aeda82309417caf3b4865 Mon Sep 17 00:00:00 2001 From: andrii-codefresh Date: Sun, 15 Dec 2024 22:41:42 +0200 Subject: [PATCH] fix linter --- cmd/event-reporter-server/commands/event_reporter_server.go | 3 ++- event_reporter/controller/controller.go | 3 ++- event_reporter/reporter/application_event_reporter.go | 3 ++- event_reporter/server.go | 3 ++- event_reporter/utils/app_version.go | 1 + pkg/sources_server_client/client.go | 5 +++-- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/cmd/event-reporter-server/commands/event_reporter_server.go b/cmd/event-reporter-server/commands/event_reporter_server.go index 8abd044242468..c2ce124947eef 100644 --- a/cmd/event-reporter-server/commands/event_reporter_server.go +++ b/cmd/event-reporter-server/commands/event_reporter_server.go @@ -3,10 +3,11 @@ package commands import ( "context" "fmt" - "github.com/argoproj/argo-cd/v2/pkg/sources_server_client" "math" "time" + "github.com/argoproj/argo-cd/v2/pkg/sources_server_client" + "github.com/argoproj/argo-cd/v2/event_reporter/reporter" "github.com/argoproj/argo-cd/v2/event_reporter" diff --git a/event_reporter/controller/controller.go b/event_reporter/controller/controller.go index ce8e36392a71d..46322180f51f2 100644 --- a/event_reporter/controller/controller.go +++ b/event_reporter/controller/controller.go @@ -2,11 +2,12 @@ package controller import ( "context" - "github.com/argoproj/argo-cd/v2/pkg/sources_server_client" "math" "strings" "time" + "github.com/argoproj/argo-cd/v2/pkg/sources_server_client" + "github.com/argoproj/argo-cd/v2/util/db" appclient "github.com/argoproj/argo-cd/v2/event_reporter/application" diff --git a/event_reporter/reporter/application_event_reporter.go b/event_reporter/reporter/application_event_reporter.go index 3b3b1900159fc..599982744f7bd 100644 --- a/event_reporter/reporter/application_event_reporter.go +++ b/event_reporter/reporter/application_event_reporter.go @@ -4,12 +4,13 @@ import ( "context" "encoding/json" "fmt" - "github.com/argoproj/argo-cd/v2/pkg/sources_server_client" "math" "reflect" "strings" "time" + "github.com/argoproj/argo-cd/v2/pkg/sources_server_client" + "github.com/argoproj/argo-cd/v2/util/db" "github.com/argoproj/argo-cd/v2/event_reporter/utils" diff --git a/event_reporter/server.go b/event_reporter/server.go index f4d7fbab1f4ba..c58c4d50a2d8f 100644 --- a/event_reporter/server.go +++ b/event_reporter/server.go @@ -4,13 +4,14 @@ import ( "context" "crypto/tls" "fmt" - "github.com/argoproj/argo-cd/v2/pkg/sources_server_client" "net" "net/http" "os" "strings" "time" + "github.com/argoproj/argo-cd/v2/pkg/sources_server_client" + appclient "github.com/argoproj/argo-cd/v2/event_reporter/application" "github.com/argoproj/argo-cd/v2/event_reporter/reporter" diff --git a/event_reporter/utils/app_version.go b/event_reporter/utils/app_version.go index 33e45e33f7607..215b5253527f3 100644 --- a/event_reporter/utils/app_version.go +++ b/event_reporter/utils/app_version.go @@ -2,6 +2,7 @@ package utils import ( "encoding/json" + "github.com/argoproj/argo-cd/v2/pkg/sources_server_client" log "github.com/sirupsen/logrus" diff --git a/pkg/sources_server_client/client.go b/pkg/sources_server_client/client.go index 137767e0766c7..2402c1679e34b 100644 --- a/pkg/sources_server_client/client.go +++ b/pkg/sources_server_client/client.go @@ -4,10 +4,11 @@ import ( "bytes" "encoding/json" "fmt" - "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1" - log "github.com/sirupsen/logrus" "io" "net/http" + + "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1" + log "github.com/sirupsen/logrus" ) type DependenciesMap struct {