GO linting bump and removal of deprecated linters (#5624)

* bump golangci-lint with support of go 1.19

Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>

* remove deprecated usage of varcheck, deadcode, and structcheck

Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>

Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
This commit is contained in:
Ondřej Benkovský
2022-09-19 14:53:43 +02:00
committed by GitHub
parent 596a9f9e67
commit 257ca65a17
4 changed files with 7 additions and 44 deletions

View File

@@ -10,8 +10,7 @@ jobs:
with:
go-version: '1.19.0'
- uses: actions/checkout@v3
# See https://github.com/golangci/golangci-lint-action/issues/442#issuecomment-1203786890
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.47.3
- name: Run golangci-lint
run: golangci-lint run --version --verbose --out-format=github-actions
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.2.0
with:
version: v1.49.0