From 217b59b1666111312ffa0fb436cab43ec1e6c008 Mon Sep 17 00:00:00 2001 From: lavkesh Date: Tue, 12 Sep 2023 00:48:09 +0800 Subject: [PATCH] lint: added exclusion rule for generated method --- .golangci.yml | 3 ++- internal/server/v1/dlq/handler_test.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 8d961ab..df06d14 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -135,9 +135,10 @@ issues: - gocritic - dupl - goerr113 + - nosnakecase - path: cli linters: - forbidigo - contextcheck severity: - default-severity: error \ No newline at end of file + default-severity: error diff --git a/internal/server/v1/dlq/handler_test.go b/internal/server/v1/dlq/handler_test.go index 179db2a..0035fdd 100644 --- a/internal/server/v1/dlq/handler_test.go +++ b/internal/server/v1/dlq/handler_test.go @@ -146,7 +146,7 @@ func TestListTopicDates(t *testing.T) { Prefix: "test-prefix", Delim: "", }).Return(topicDates, nil) - handler := Handler{service: NewService(eService, gClient)} + handler := NewHandler(NewService(eService, gClient)) httpWriter := &mockHTTPWriter{} httpRequest := &http.Request{} handler.listFirehoseDLQ(httpWriter, httpRequest)