diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 9d0161e9e..7dd3ce1c3 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -14,16 +14,13 @@ jobs: - name: Check out code uses: actions/checkout@v2 - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: ^1.20 - name: Install golangci-lint run: | - wget https://github.com/golangci/golangci-lint/releases/download/v1.61.0/golangci-lint-1.61.0-linux-amd64.deb - sudo apt install -y ./golangci-lint-1.61.0-linux-amd64.deb + VERSION=1.62.0 + wget https://github.com/golangci/golangci-lint/releases/download/v${VERSION}/golangci-lint-${VERSION}-linux-amd64.tar.gz + tar zxvf golangci-lint-${VERSION}-linux-amd64.tar.gz + mv golangci-lint-${VERSION}-linux-amd64/golangci-lint . - name: Run golangci-lint run: | cd v3 - golangci-lint run + ../golangci-lint run diff --git a/v3/lint/registration.go b/v3/lint/registration.go index d380b2218..01c09df83 100644 --- a/v3/lint/registration.go +++ b/v3/lint/registration.go @@ -35,6 +35,8 @@ import ( // // Only one of NameFilter or IncludeNames/ExcludeNames can be provided at // a time. +// +//nolint:recvcheck type FilterOptions struct { // NameFilter is a regexp used to filter lints by their name. It is mutually // exclusive with IncludeNames and ExcludeNames. diff --git a/v3/lint/result.go b/v3/lint/result.go index 5839fb0d3..f32e26c0d 100644 --- a/v3/lint/result.go +++ b/v3/lint/result.go @@ -22,7 +22,7 @@ import ( // LintStatus is an enum returned by lints inside of a LintResult. // -//nolint:revive +//nolint:revive,recvcheck type LintStatus int // Known LintStatus values diff --git a/v3/lint/source.go b/v3/lint/source.go index 3cd0c3033..68600f57f 100644 --- a/v3/lint/source.go +++ b/v3/lint/source.go @@ -99,6 +99,8 @@ func (s *LintSource) FromString(src string) { } // SourceList is a slice of LintSources that can be sorted. +// +//nolint:recvcheck type SourceList []LintSource // Len returns the length of the list.