Skip to content

Commit

Permalink
Fix golangci-lint warnings (#1064)
Browse files Browse the repository at this point in the history
- Upgrade golangci-lint to v1.60 (#1062) surfaced new warnings about
deprecations.
- The configuration option `run.skip-files` is deprecated, please use
`issues.exclude-files`.
- The linter named "megacheck" is deprecated. It has been split into:
gosimple, staticcheck, unused.
  • Loading branch information
danielrbradley authored Aug 29, 2024
1 parent 1ade282 commit 9692823
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
8 changes: 5 additions & 3 deletions provider-ci/internal/pkg/templates/provider/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ linters:
- govet
- ineffassign
- lll
- megacheck
- gosimple
- staticcheck
- misspell
- nakedret
- revive
- unconvert
- unused
enable-all: false
run:
skip-files:
issues:
exclude-files:
- schema.go
- pulumiManifest.go
run:
timeout: 20m
linters-settings:
gci:
Expand Down
8 changes: 5 additions & 3 deletions provider-ci/test-providers/aws/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ linters:
- govet
- ineffassign
- lll
- megacheck
- gosimple
- staticcheck
- misspell
- nakedret
- revive
- unconvert
- unused
enable-all: false
run:
skip-files:
issues:
exclude-files:
- schema.go
- pulumiManifest.go
run:
timeout: 20m
linters-settings:
gci:
Expand Down
8 changes: 5 additions & 3 deletions provider-ci/test-providers/cloudflare/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ linters:
- govet
- ineffassign
- lll
- megacheck
- gosimple
- staticcheck
- misspell
- nakedret
- revive
- unconvert
- unused
enable-all: false
run:
skip-files:
issues:
exclude-files:
- schema.go
- pulumiManifest.go
run:
timeout: 20m
linters-settings:
gci:
Expand Down
8 changes: 5 additions & 3 deletions provider-ci/test-providers/docker/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ linters:
- govet
- ineffassign
- lll
- megacheck
- gosimple
- staticcheck
- misspell
- nakedret
- revive
- unconvert
- unused
enable-all: false
run:
skip-files:
issues:
exclude-files:
- schema.go
- pulumiManifest.go
run:
timeout: 20m
linters-settings:
gci:
Expand Down

0 comments on commit 9692823

Please sign in to comment.