mirror of
https://github.com/aler9/gortsplib
synced 2025-10-12 18:40:07 +08:00
update golangci-lint (#328)
This commit is contained in:
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -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
|
||||
|
@@ -7,11 +7,13 @@ linters:
|
||||
- gocritic
|
||||
- gofmt
|
||||
- gofumpt
|
||||
- misspell
|
||||
- lll
|
||||
- misspell
|
||||
- nilerr
|
||||
- prealloc
|
||||
- revive
|
||||
- unconvert
|
||||
- wastedassign
|
||||
- whitespace
|
||||
disable:
|
||||
- errcheck
|
||||
|
2
Makefile
2
Makefile
@@ -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)
|
||||
|
||||
|
@@ -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),
|
||||
|
Reference in New Issue
Block a user