diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 30dd0393..172d43e6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,7 +15,7 @@ jobs: - uses: golangci/golangci-lint-action@v3 with: - version: v1.45.2 + version: v1.49.0 go-mod-tidy: runs-on: ubuntu-20.04 diff --git a/.golangci.yml b/.golangci.yml index 6d0de664..45f0aaa3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,4 +1,3 @@ - linters: enable: - bodyclose diff --git a/Makefile b/Makefile index b726acd4..9f794b11 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ BASE_IMAGE = golang:1.17-alpine3.14 -LINT_IMAGE = golangci/golangci-lint:v1.45.2 +LINT_IMAGE = golangci/golangci-lint:v1.49.0 .PHONY: $(shell ls) diff --git a/client.go b/client.go index 3d7c57e0..8ee0b254 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,6 @@ Package gortsplib is a RTSP 1.0 library for the Go programming language, written for rtsp-simple-server. Examples are available at https://github.com/aler9/gortsplib/tree/master/examples - */ package gortsplib diff --git a/pkg/rtcpreceiver/rtcpreceiver_test.go b/pkg/rtcpreceiver/rtcpreceiver_test.go index 514ff6fb..3476a234 100644 --- a/pkg/rtcpreceiver/rtcpreceiver_test.go +++ b/pkg/rtcpreceiver/rtcpreceiver_test.go @@ -87,7 +87,7 @@ func TestRTCPReceiverOverflow(t *testing.T) { Reports: []rtcp.ReceptionReport{ { SSRC: 0xba9da416, - LastSequenceNumber: 1<<16 | 0x0000, + LastSequenceNumber: 1 << 16, LastSenderReport: 0x887a17ce, Delay: 1 * 65536, }, diff --git a/pkg/rtpreorderer/reorderer.go b/pkg/rtpreorderer/reorderer.go index 69d4e2b1..3a32965f 100644 --- a/pkg/rtpreorderer/reorderer.go +++ b/pkg/rtpreorderer/reorderer.go @@ -1,3 +1,4 @@ +// Package rtpreorderer implements a filter to reorder incoming RTP packets. package rtpreorderer import (