Skip to content

Commit 2aa7aae

Browse files
dependabot[bot]maxgio92
authored andcommitted
chore(deps): bump golangci/golangci-lint-action from 3.7.0 to 7.0.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.7.0 to 7.0.0. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@3a91952...1481404) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
1 parent 5fc4832 commit 2aa7aae

File tree

2 files changed

+63
-46
lines changed

2 files changed

+63
-46
lines changed

.github/workflows/lint-code.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
with:
1919
go-version-file: go.mod
2020
- name: Run golangci-lint
21-
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
21+
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
2222
with:
23-
version: v1.62.2
23+
version: v2.2.1
2424
only-new-issues: false
2525
args: --config .golangci.yml --timeout=5m

.golangci.yml

Lines changed: 61 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,69 @@
1-
linters-settings:
2-
cyclop:
3-
max-complexity: 27
4-
depguard:
5-
rules:
6-
main:
7-
list-mode: lax
8-
allow:
9-
- $gostd
10-
- k8s.io/api
11-
- k8s.io/apimachinery
12-
- k8s.io/client-go
13-
- github.com/projectcapsule
14-
- github.com/go-logr/logr
15-
- github.com/pkg/errors
16-
- github.com/spf13/cobra
17-
- sigs.k8s.io/controller-runtime
18-
funlen:
19-
lines: 110
20-
statements: 50
21-
gci:
22-
sections:
23-
- standard # Captures all standard packages if they do not match another section.
24-
- default # Contains all imports that could not be matched to another section type.
25-
- prefix(github.com/projectcapsule/capsule-addon-flux) # Groups all imports with the specified Prefix.
26-
goconst:
27-
min-len: 2
28-
min-occurrences: 3
29-
goheader:
30-
template: |-
31-
Copyright 2020-2024 Project Capsule Authors.
32-
SPDX-License-Identifier: Apache-2.0
33-
1+
version: "2"
342
linters:
35-
enable-all: true
3+
default: all
364
disable:
37-
- exportloopref
38-
- godox
5+
- exhaustruct
396
- gochecknoglobals
407
- gochecknoinits
41-
- exhaustruct
8+
- godox
429
- ireturn
4310
- lll
4411
- nonamedreturns
45-
- wrapcheck
4612
- varnamelen
47-
48-
issues:
49-
exclude-rules:
50-
- path: /
51-
linters:
52-
- typecheck
13+
- wrapcheck
14+
settings:
15+
cyclop:
16+
max-complexity: 27
17+
depguard:
18+
rules:
19+
main:
20+
list-mode: lax
21+
allow:
22+
- $gostd
23+
- k8s.io/api
24+
- k8s.io/apimachinery
25+
- k8s.io/client-go
26+
- github.com/projectcapsule
27+
- github.com/go-logr/logr
28+
- github.com/pkg/errors
29+
- github.com/spf13/cobra
30+
- sigs.k8s.io/controller-runtime
31+
funlen:
32+
lines: 110
33+
statements: 50
34+
goconst:
35+
min-len: 2
36+
min-occurrences: 3
37+
goheader:
38+
template: |-
39+
Copyright 2020-2024 Project Capsule Authors.
40+
SPDX-License-Identifier: Apache-2.0
41+
exclusions:
42+
generated: lax
43+
presets:
44+
- comments
45+
- common-false-positives
46+
- legacy
47+
- std-error-handling
48+
paths:
49+
- third_party$
50+
- builtin$
51+
- examples$
52+
formatters:
53+
enable:
54+
- gci
55+
- gofmt
56+
- gofumpt
57+
- goimports
58+
settings:
59+
gci:
60+
sections:
61+
- standard
62+
- default
63+
- prefix(github.com/projectcapsule/capsule-addon-flux)
64+
exclusions:
65+
generated: lax
66+
paths:
67+
- third_party$
68+
- builtin$
69+
- examples$

0 commit comments

Comments
 (0)