Update version, remove deprecated linter (#265)

`structcheck` is deprecated.
Update golanci-lint to 1.50.

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
This commit is contained in:
Hamza El-Saawy
2022-10-28 12:31:56 -04:00
committed by GitHub
parent a059ad7ac1
commit 650a2e464c
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.48
version: v1.50
args: >-
--verbose
--timeout=5m
+2 -1
View File
@@ -20,7 +20,6 @@ linters:
- gofmt # files are gofmt'ed
- gosec # security
- nilerr # returns nil even with non-nil error
- structcheck # unused struct fields
- unparam # unused function params
issues:
@@ -94,6 +93,8 @@ linters-settings:
disabled: true
- name: flag-parameter # excessive, and a common idiom we use
disabled: true
- name: unhandled-error # warns over common fmt.Print* and io.Close; rely on errcheck instead
disabled: true
# general config
- name: line-length-limit
arguments: