Skip to content

Commit a9beb0b

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

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-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: 4 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
@@ -180,6 +181,9 @@ linters:
180181
- staticcheck
181182
path: (.+)\.go$
182183
text: (ST1000|QF1008)
184+
- text: "Line contains TODO/BUG/FIXME"
185+
linters:
186+
- godox
183187
issues:
184188
max-issues-per-linter: 0
185189
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)