update golangci-lint (#328)

This commit is contained in:
Alessandro Ros
2023-07-24 19:59:05 +02:00
committed by GitHub
parent 101688b249
commit 356b88021d
4 changed files with 6 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ jobs:
- uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
version: v1.53.3
go-mod-tidy:
runs-on: ubuntu-20.04

View File

@@ -7,11 +7,13 @@ linters:
- gocritic
- gofmt
- gofumpt
- misspell
- lll
- misspell
- nilerr
- prealloc
- revive
- unconvert
- wastedassign
- whitespace
disable:
- errcheck

View File

@@ -1,5 +1,5 @@
BASE_IMAGE = golang:1.20.1-alpine3.17
LINT_IMAGE = golangci/golangci-lint:v1.52.2
LINT_IMAGE = golangci/golangci-lint:v1.53.3
.PHONY: $(shell ls)

View File

@@ -1052,7 +1052,7 @@ func TestServerAuth(t *testing.T) {
onAnnounce: func(ctx *ServerHandlerOnAnnounceCtx) (*base.Response, error) {
err := auth.Validate(ctx.Request, "myuser", "mypass", nil, nil, "IPCAM", nonce)
if err != nil {
return &base.Response{
return &base.Response{ //nolint:nilerr
StatusCode: base.StatusUnauthorized,
Header: base.Header{
"WWW-Authenticate": auth.GenerateWWWAuthenticate(nil, "IPCAM", nonce),