Skip to content

Commit

Permalink
chore(deps): update dependency golangci/golangci-lint to v1.61.0 (#310)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency golangci/golangci-lint to v1.61.0

* wip: 🔕 temporary commit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Paramtamtam <[email protected]>
  • Loading branch information
renovate[bot] and tarampampam authored Sep 11, 2024
1 parent 5df4828 commit 85b4cdc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.60.3" \
&& GOLANGCI_LINT_VERSION="1.61.0" \
&& 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/perftest/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func NewCommand() *cli.Command { //nolint:funlen
Name: "connections",
Aliases: []string{"c"},
Usage: "Number of connections to keep open",
Value: max(16, uint64(runtime.NumCPU()*25)), //nolint:mnd
Value: max(16, uint64(runtime.NumCPU()*25)), //nolint:mnd,gosec
Validator: func(u uint64) error {
if u == 0 {
return errors.New("threads number can't be zero")
Expand Down
4 changes: 2 additions & 2 deletions internal/http/handlers/error_page/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func extractCodeFromURL(url string) (uint16, bool) {
}

if code, err := strconv.ParseUint(fileName, 10, 16); err == nil && code > 0 && code < 999 {
return uint16(code), true //nolint:gosec
return uint16(code), true
}

return 0, false
Expand All @@ -47,7 +47,7 @@ func extractCodeFromHeaders(headers *fasthttp.RequestHeader) (uint16, bool) {
// HTTP status code returned by the request
if value := headers.Peek("X-Code"); len(value) > 0 && len(value) <= 3 {
if code, err := strconv.ParseUint(string(value), 10, 16); err == nil && code > 0 && code < 999 {
return uint16(code), true //nolint:gosec
return uint16(code), true
}
}

Expand Down

0 comments on commit 85b4cdc

Please sign in to comment.