Skip to content

Commit 36a7035

Browse files
committed
update golangci-lint to v2.4.0
Signed-off-by: dongjiang <[email protected]>
1 parent 157e6d2 commit 36a7035

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
- name: golangci-lint
3535
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # tag=v8.0.0
3636
with:
37-
version: v2.3.0
37+
version: v2.4.0
3838
args: --output.text.print-linter-name=true --output.text.colors=true --timeout 10m
3939
working-directory: ${{matrix.working-directory}}

.golangci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ linters:
2222
- goconst
2323
- gocritic
2424
- gocyclo
25+
- godox
2526
- goprintffuncname
2627
- govet
2728
- importas
@@ -51,6 +52,14 @@ linters:
5152
- fieldalignment
5253
- shadow
5354
enable-all: true
55+
godox:
56+
keywords:
57+
- TODO
58+
- BUG
59+
- FIXME
60+
- NOTE
61+
- OPTIMIZE
62+
- HACK
5463
importas:
5564
alias:
5665
- pkg: k8s.io/api/core/v1
@@ -180,6 +189,9 @@ linters:
180189
- staticcheck
181190
path: (.+)\.go$
182191
text: (ST1000|QF1008)
192+
- text: "Line contains TODO/BUG/FIXME"
193+
linters:
194+
- godox
183195
issues:
184196
max-issues-per-linter: 0
185197
max-same-issues: 0

pkg/cache/cache_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2568,7 +2568,6 @@ func ensureNode(ctx context.Context, name string, client client.Client) error {
25682568
return err
25692569
}
25702570

2571-
//nolint:interfacer
25722571
func isKubeService(svc metav1.Object) bool {
25732572
// grumble grumble linters grumble grumble
25742573
return svc.GetNamespace() == "default" && svc.GetName() == "kubernetes"

0 commit comments

Comments
 (0)