Skip to content

Commit

Permalink
chore(deps): update dependency golangci/golangci-lint to v1.63.2 (#321)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
renovate[bot] and tarampampam authored Jan 2, 2025
1 parent f81a86b commit d66551f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/serve/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion internal/config/codes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion internal/http/handlers/error_page/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit d66551f

Please sign in to comment.