From d66551fc3016fd787db2721bdeee17155e539b24 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 2 Jan 2025 23:26:24 +0400 Subject: [PATCH] chore(deps): update dependency golangci/golangci-lint to v1.63.2 (#321) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency golangci/golangci-lint to v1.63.2 * wip: 🔕 temporary commit --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Paramtamtam <7326800+tarampampam@users.noreply.github.com> --- Dockerfile | 2 +- internal/cli/app.go | 2 +- internal/cli/serve/command.go | 2 +- internal/config/codes.go | 2 +- internal/http/handlers/error_page/format.go | 2 +- internal/http/server.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index af5afe6c..17baa722 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ ENV GOPATH="/var/tmp/go" RUN set -x \ # renovate: source=github-releases name=golangci/golangci-lint - && GOLANGCI_LINT_VERSION="1.62.2" \ + && GOLANGCI_LINT_VERSION="1.63.2" \ && wget -O- -nv "https://cdn.jsdelivr.net/gh/golangci/golangci-lint@v${GOLANGCI_LINT_VERSION}/install.sh" \ | sh -s -- -b /bin "v${GOLANGCI_LINT_VERSION}" diff --git a/internal/cli/app.go b/internal/cli/app.go index 6942c6ca..2facbac5 100644 --- a/internal/cli/app.go +++ b/internal/cli/app.go @@ -19,7 +19,7 @@ import ( //go:generate go run app_generate.go // NewApp creates a new console application. -func NewApp(appName string) *cli.Command { //nolint:funlen +func NewApp(appName string) *cli.Command { var ( logLevelFlag = cli.StringFlag{ Name: "log-level", diff --git a/internal/cli/serve/command.go b/internal/cli/serve/command.go index 0b0b80d5..5bdf3a4c 100644 --- a/internal/cli/serve/command.go +++ b/internal/cli/serve/command.go @@ -313,7 +313,7 @@ func NewCommand(log *logger.Logger) *cli.Command { //nolint:funlen,gocognit,gocy } // Run current command. -func (cmd *command) Run(ctx context.Context, log *logger.Logger, cfg *config.Config) error { //nolint:funlen +func (cmd *command) Run(ctx context.Context, log *logger.Logger, cfg *config.Config) error { var srv = appHttp.NewServer(log, cmd.opt.http.readBufferSize) if err := srv.Register(cfg); err != nil { diff --git a/internal/config/codes.go b/internal/config/codes.go index 7960b02d..ce7f1dac 100644 --- a/internal/config/codes.go +++ b/internal/config/codes.go @@ -27,7 +27,7 @@ type ( // Find searches the closest match for the given HTTP code, written in a non-strict manner. Read [Codes] for more // information. -func (c Codes) Find(httpCode uint16) (CodeDescription, bool) { //nolint:funlen,gocyclo +func (c Codes) Find(httpCode uint16) (CodeDescription, bool) { //nolint:gocyclo if len(c) == 0 { // empty map, fast return return CodeDescription{}, false } diff --git a/internal/http/handlers/error_page/format.go b/internal/http/handlers/error_page/format.go index 3be430bf..089abf15 100644 --- a/internal/http/handlers/error_page/format.go +++ b/internal/http/handlers/error_page/format.go @@ -22,7 +22,7 @@ const ( // detectPreferredFormatForClient detects the preferred format for the client based on the headers. // It supports the following headers: Content-Type, Accept, X-Format. // If the headers are not set or the format is not recognized, it returns unknownFormat. -func detectPreferredFormatForClient(headers *fasthttp.RequestHeader) preferredFormat { //nolint:funlen,gocognit +func detectPreferredFormatForClient(headers *fasthttp.RequestHeader) preferredFormat { //nolint:gocognit var contentType, accept string if contentTypeHeader := strings.TrimSpace(string(headers.Peek("Content-Type"))); contentTypeHeader != "" { //nolint:nestif,lll diff --git a/internal/http/server.go b/internal/http/server.go index 13442e49..d5f4ec7b 100644 --- a/internal/http/server.go +++ b/internal/http/server.go @@ -51,7 +51,7 @@ func NewServer(log *logger.Logger, readBufferSize uint) Server { } // Register server handlers, middlewares, etc. -func (s *Server) Register(cfg *config.Config) error { //nolint:funlen +func (s *Server) Register(cfg *config.Config) error { var ( liveHandler = live.New() versionHandler = version.New(appmeta.Version())