Skip to content

Commit a39b387

Browse files
committed
chore(lint): Update to golangci-lint v1.64.8
1 parent 484a5c0 commit a39b387

2 files changed

Lines changed: 66 additions & 1 deletion

File tree

.golangci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
linters-settings:
2+
gci:
3+
sections:
4+
- standard
5+
- default
6+
- prefix(github.com/apache/cloudstack-kubernetes-provider)
7+
gofumpt:
8+
module-path: "github.com/apache/cloudstack-kubernetes-provider"
9+
nolintlint:
10+
# https://github.com/golangci/golangci-lint/issues/3228
11+
allow-unused: true
12+
13+
linters:
14+
disable:
15+
- goheader
16+
- depguard
17+
- wrapcheck
18+
- mnd
19+
- varnamelen
20+
- testpackage
21+
- tagliatelle
22+
- paralleltest
23+
- ireturn
24+
- err113
25+
- gochecknoglobals
26+
- wsl
27+
- exhaustive
28+
- nosprintfhostport
29+
- nonamedreturns
30+
- interfacebloat
31+
- exhaustruct
32+
- lll
33+
- gosec
34+
- gomoddirectives
35+
- godox
36+
- gochecknoinits
37+
- funlen
38+
- dupl
39+
- cyclop
40+
- inamedparam
41+
# deprecated linters
42+
- tenv
43+
enable-all: true
44+
45+
issues:
46+
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
47+
max-issues-per-linter: 0
48+
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
49+
max-same-issues: 0
50+
exclude-rules:
51+
- path: (.+)_test.go$
52+
linters:
53+
- gocognit
54+
- goconst
55+
- gocyclo
56+
- errcheck
57+
- dupl
58+
- gosec
59+
- forbidigo
60+
- maintidx
61+
62+
run:
63+
timeout: 10m
64+
allow-parallel-runners: true
65+

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ BIN_DIR ?= bin
4040
GO_INSTALL := ./hack/go_install.sh
4141

4242
GOLANGCI_LINT_BIN := golangci-lint
43-
GOLANGCI_LINT_VER := v1.63.4
43+
GOLANGCI_LINT_VER := v1.64.8
4444
GOLANGCI_LINT := $(abspath $(TOOLS_BIN_DIR)/$(GOLANGCI_LINT_BIN)-$(GOLANGCI_LINT_VER))
4545
GOLANGCI_LINT_PKG := github.com/golangci/golangci-lint/cmd/golangci-lint
4646

0 commit comments

Comments
 (0)