From c002d92c03c03ba1c9f35963ba6aa6bc83b511c6 Mon Sep 17 00:00:00 2001 From: Eromosele-SM Date: Mon, 28 Oct 2024 13:31:33 +0100 Subject: [PATCH] Solve lint issues --- .github/ISSUE_TEMPLATE/bug_report.yaml | 1 + .github/ISSUE_TEMPLATE/feature_request.yaml | 1 + .github/ISSUE_TEMPLATE/other.yaml | 1 + .github/ISSUE_TEMPLATE/unmaintained.yaml | 1 + cmd/opampsupervisor/supervisor/commander/commander.go | 2 +- cmd/opampsupervisor/supervisor/commander/commander_others.go | 2 +- cmd/opampsupervisor/supervisor/commander/commander_windows.go | 2 +- cmd/opampsupervisor/supervisor/config/config.go | 2 +- cmd/opampsupervisor/supervisor/healthchecker/healthchecker.go | 2 +- cmd/opampsupervisor/supervisor/logger.go | 2 +- cmd/opampsupervisor/supervisor/persistence.go | 2 +- cmd/opampsupervisor/supervisor/pid.go | 2 +- cmd/opampsupervisor/supervisor/server.go | 2 +- cmd/opampsupervisor/supervisor/supervisor.go | 2 +- cmd/opampsupervisor/supervisor/supervisor_windows.go | 2 +- cmd/opampsupervisor/supervisor/telemetry/logger.go | 2 +- 16 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 0433fefe27b2..1e784173ea51 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -76,6 +76,7 @@ body: - exporter/pulsar - exporter/rabbitmq - exporter/sapm + - exporter/sematext - exporter/sentry - exporter/signalfx - exporter/splunkhec diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml index ae3465dfba4a..8d1448fb2d02 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -70,6 +70,7 @@ body: - exporter/pulsar - exporter/rabbitmq - exporter/sapm + - exporter/sematext - exporter/sentry - exporter/signalfx - exporter/splunkhec diff --git a/.github/ISSUE_TEMPLATE/other.yaml b/.github/ISSUE_TEMPLATE/other.yaml index 183a5e514639..248e84200690 100644 --- a/.github/ISSUE_TEMPLATE/other.yaml +++ b/.github/ISSUE_TEMPLATE/other.yaml @@ -70,6 +70,7 @@ body: - exporter/pulsar - exporter/rabbitmq - exporter/sapm + - exporter/sematext - exporter/sentry - exporter/signalfx - exporter/splunkhec diff --git a/.github/ISSUE_TEMPLATE/unmaintained.yaml b/.github/ISSUE_TEMPLATE/unmaintained.yaml index 2ecfeb2eccd4..3b28bca80469 100644 --- a/.github/ISSUE_TEMPLATE/unmaintained.yaml +++ b/.github/ISSUE_TEMPLATE/unmaintained.yaml @@ -75,6 +75,7 @@ body: - exporter/pulsar - exporter/rabbitmq - exporter/sapm + - exporter/sematext - exporter/sentry - exporter/signalfx - exporter/splunkhec diff --git a/cmd/opampsupervisor/supervisor/commander/commander.go b/cmd/opampsupervisor/supervisor/commander/commander.go index 1a2e6973f0ec..f2407d642ff1 100644 --- a/cmd/opampsupervisor/supervisor/commander/commander.go +++ b/cmd/opampsupervisor/supervisor/commander/commander.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package commander +package commander // import "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/commander" import ( "bufio" diff --git a/cmd/opampsupervisor/supervisor/commander/commander_others.go b/cmd/opampsupervisor/supervisor/commander/commander_others.go index 15fe0f7e97c4..c64be49926f5 100644 --- a/cmd/opampsupervisor/supervisor/commander/commander_others.go +++ b/cmd/opampsupervisor/supervisor/commander/commander_others.go @@ -3,7 +3,7 @@ //go:build !windows -package commander +package commander // import "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/commander" import ( "os" diff --git a/cmd/opampsupervisor/supervisor/commander/commander_windows.go b/cmd/opampsupervisor/supervisor/commander/commander_windows.go index 4f2812903462..02e2aca0ee7e 100644 --- a/cmd/opampsupervisor/supervisor/commander/commander_windows.go +++ b/cmd/opampsupervisor/supervisor/commander/commander_windows.go @@ -3,7 +3,7 @@ //go:build windows -package commander +package commander // import "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/commander" import ( "fmt" diff --git a/cmd/opampsupervisor/supervisor/config/config.go b/cmd/opampsupervisor/supervisor/config/config.go index 5e6049dddbd8..3abf6e2addf4 100644 --- a/cmd/opampsupervisor/supervisor/config/config.go +++ b/cmd/opampsupervisor/supervisor/config/config.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package config +package config // import "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/config" import ( "errors" diff --git a/cmd/opampsupervisor/supervisor/healthchecker/healthchecker.go b/cmd/opampsupervisor/supervisor/healthchecker/healthchecker.go index 65d7ae6d74ce..c7ebf8d54eae 100644 --- a/cmd/opampsupervisor/supervisor/healthchecker/healthchecker.go +++ b/cmd/opampsupervisor/supervisor/healthchecker/healthchecker.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package healthchecker +package healthchecker // import "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/healthchecker" import ( "context" diff --git a/cmd/opampsupervisor/supervisor/logger.go b/cmd/opampsupervisor/supervisor/logger.go index 11811d539372..61717796a0df 100644 --- a/cmd/opampsupervisor/supervisor/logger.go +++ b/cmd/opampsupervisor/supervisor/logger.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package supervisor +package supervisor // import "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor" import ( "context" diff --git a/cmd/opampsupervisor/supervisor/persistence.go b/cmd/opampsupervisor/supervisor/persistence.go index fe4df9f48f77..0d8402cbc288 100644 --- a/cmd/opampsupervisor/supervisor/persistence.go +++ b/cmd/opampsupervisor/supervisor/persistence.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package supervisor +package supervisor // import "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor" import ( "errors" diff --git a/cmd/opampsupervisor/supervisor/pid.go b/cmd/opampsupervisor/supervisor/pid.go index fe207299a0dc..b5f214148035 100644 --- a/cmd/opampsupervisor/supervisor/pid.go +++ b/cmd/opampsupervisor/supervisor/pid.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package supervisor +package supervisor // import "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor" import "os" diff --git a/cmd/opampsupervisor/supervisor/server.go b/cmd/opampsupervisor/supervisor/server.go index cd54f96336eb..bea76741741a 100644 --- a/cmd/opampsupervisor/supervisor/server.go +++ b/cmd/opampsupervisor/supervisor/server.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package supervisor +package supervisor // import "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor" import ( "context" diff --git a/cmd/opampsupervisor/supervisor/supervisor.go b/cmd/opampsupervisor/supervisor/supervisor.go index 8d683e5b09b4..23212a48bdbb 100644 --- a/cmd/opampsupervisor/supervisor/supervisor.go +++ b/cmd/opampsupervisor/supervisor/supervisor.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package supervisor +package supervisor // import "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor" import ( "bytes" diff --git a/cmd/opampsupervisor/supervisor/supervisor_windows.go b/cmd/opampsupervisor/supervisor/supervisor_windows.go index 9c2a0fab4e47..9a13e6c406c8 100644 --- a/cmd/opampsupervisor/supervisor/supervisor_windows.go +++ b/cmd/opampsupervisor/supervisor/supervisor_windows.go @@ -3,7 +3,7 @@ //go:build windows -package supervisor +package supervisor // import "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor" import ( "flag" diff --git a/cmd/opampsupervisor/supervisor/telemetry/logger.go b/cmd/opampsupervisor/supervisor/telemetry/logger.go index 0bec527b1188..74fff228291a 100644 --- a/cmd/opampsupervisor/supervisor/telemetry/logger.go +++ b/cmd/opampsupervisor/supervisor/telemetry/logger.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package telemetry +package telemetry // import "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/telemetry" import ( "go.uber.org/zap"