Skip to content

Commit

Permalink
ci: remove deprecated golangci-lint warnings
Browse files Browse the repository at this point in the history
Updated global, linters.govet, linters.staticcheck, and linters.gosimple to mitigate warnings from golangci-lint

Signed-off-by: Mike Frisch <[email protected]>
  • Loading branch information
EmmEff authored and stevenhorsman committed Jan 23, 2025
1 parent f9a330e commit 5f18524
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ run:
# Define the Go version limit.
# Mainly related to generics support in go1.18.
# Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.17
#go: '1.18'
go: '1.20'


# output configuration options
Expand Down Expand Up @@ -149,17 +149,10 @@ linters-settings:
#simplify: false

gosimple:
# Select the Go version to target.
# Default: 1.13
go: "1.20"
# https://staticcheck.io/docs/options#checks
checks: [ "all" ]

govet:
# Report about shadowed variables.
# Default: false
check-shadowing: true

# Settings per analyzer.
#settings:
# Analyzer name, run `go tool vet help` to see all analyzers.
Expand All @@ -176,8 +169,8 @@ linters-settings:
#disable-all: true
# Enable analyzers by name.
# Run `go tool vet help` to see all analyzers.
#enable:
# - asmdecl
enable:
- shadow

# Enable all analyzers.
# Default: false
Expand All @@ -188,9 +181,6 @@ linters-settings:
# - asmdecl

staticcheck:
# Select the Go version to target.
# Default: 1.13
go: "1.20"
# https://staticcheck.io/docs/options#checks
checks: [ "all" ]

Expand Down

0 comments on commit 5f18524

Please sign in to comment.