diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index 8d255563..29377fbf 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -32,7 +32,7 @@ jobs: - name: Run golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.57.1 + version: v1.61.0 args: --timeout=5m skip-cache: true diff --git a/.golangci.yml b/.golangci.yml index 1ca94428..f310e104 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -25,11 +25,11 @@ linters: - bodyclose - gocritic - gocyclo - - goerr113 + - err113 - gofmt # - gofumpt - goimports - - gomnd + - mnd - govet - misspell - noctx diff --git a/pkg/api/v1/router_events.go b/pkg/api/v1/router_events.go index 9143a8ba..ba90897e 100644 --- a/pkg/api/v1/router_events.go +++ b/pkg/api/v1/router_events.go @@ -101,7 +101,7 @@ func (r *Router) getServerEvents(c *gin.Context) { } limit := pageParams.Limit // default is 100 - if limit > 1000 { //nolint:gomnd // it's fine + if limit > 1000 { //nolint:mnd // it's fine limit = 1000 // more than 1000 event records in a single shot is sus }