Skip to content

Commit

Permalink
wip: 🔕 temporary commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Jan 2, 2025
1 parent 8add9dd commit 86bac52
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
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 86bac52

Please sign in to comment.