From 1b478bb677a152e933ebcb7eefa46c2fb1774c25 Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Wed, 24 Jan 2024 16:14:35 +0200 Subject: [PATCH] output: fix linter errors --- output/json/json.go | 2 ++ output/statsd/config.go | 1 + output/statsd/helper_test.go | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/output/json/json.go b/output/json/json.go index dda0f6b8451..df2ae5f031d 100644 --- a/output/json/json.go +++ b/output/json/json.go @@ -1,3 +1,5 @@ +// Package json is implements an output to put metrics in a json file. +// Actually a multi line json file. package json import ( diff --git a/output/statsd/config.go b/output/statsd/config.go index 0051862f860..544e9649e68 100644 --- a/output/statsd/config.go +++ b/output/statsd/config.go @@ -1,3 +1,4 @@ +// Package statsd is implements an output to send metric samples to a statsd server. package statsd import ( diff --git a/output/statsd/helper_test.go b/output/statsd/helper_test.go index 7f48cb6df6a..c4733ed41ff 100644 --- a/output/statsd/helper_test.go +++ b/output/statsd/helper_test.go @@ -44,7 +44,7 @@ func baseTest(t *testing.T, case <-end: return default: - n, _, err := listener.ReadFromUDP(buf[:]) + n, _, err := listener.ReadFromUDP(buf[:]) //nolint:govet // it is on purpose require.NoError(t, err) ch <- string(buf[:n]) }