Skip to content

Commit dd34ec2

Browse files
committed
Update golangci-lint configuration and version
- Updated .golangci.yml to version 2 and added formatters for gofmt and goimports. - Bumped golangci-lint version in Makefile to v2.5.0 for improved linting capabilities.
1 parent 0a6c20a commit dd34ec2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.golangci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
run:
24
timeout: 10m
35
allow-parallel-runners: true
@@ -24,17 +26,15 @@ linters:
2426
- copyloopvar
2527
- goconst
2628
- gocyclo
27-
- gofmt
28-
- goimports
29-
- gosimple
3029
- govet
3130
- ineffassign
32-
- lll
3331
- misspell
3432
- nakedret
3533
- prealloc
3634
- staticcheck
37-
- typecheck
38-
- unconvert
39-
- unparam
4035
- unused
36+
37+
formatters:
38+
enable:
39+
- gofmt
40+
- goimports

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ GOLANGCI_LINT = $(LOCALBIN)/golangci-lint
166166
KUSTOMIZE_VERSION ?= v5.3.0
167167
CONTROLLER_TOOLS_VERSION ?= v0.14.0
168168
ENVTEST_VERSION ?= latest
169-
GOLANGCI_LINT_VERSION ?= v1.62.2
169+
GOLANGCI_LINT_VERSION ?= v2.5.0
170170

171171
.PHONY: kustomize
172172
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.

0 commit comments

Comments
 (0)