Skip to content

Commit e90a66c

Browse files
committed
hack: upgrade tools to newer versions
Prefer more up-to-date development assistance tools. Signed-off-by: Shachar Sharon <[email protected]>
1 parent 0e0ec91 commit e90a66c

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.golangci.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ linters:
55
disable-all: true
66
enable:
77
- asciicheck
8-
- deadcode
8+
# - deadcode
99
- depguard
1010
- dupl
1111
- errcheck
@@ -30,16 +30,24 @@ linters:
3030
# - nolintlint
3131
- revive
3232
- staticcheck
33-
- structcheck
33+
# - structcheck
3434
# - tagliatelle
3535
# - testpackage
3636
- typecheck
3737
- unconvert
3838
# - unparam
3939
- unused
40-
- varcheck
40+
# - varcheck
4141
- whitespace
4242
linters-settings:
43+
depguard:
44+
rules:
45+
main:
46+
list-mode: lax
47+
# using explicit 'deny' entry only to suppress linter warnings.
48+
deny:
49+
- pkg: "github.com/sirupsen/logrus"
50+
desc: not allowed
4351
funlen:
4452
lines: 188
4553
statements: 60

hack/install-tools.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,27 @@ _install_tool() {
3434
}
3535

3636
_install_kustomize() {
37-
_install_tool sigs.k8s.io/kustomize/kustomize/[email protected]
37+
_install_tool sigs.k8s.io/kustomize/kustomize/[email protected]
3838
}
3939

4040
_install_controller_gen() {
41-
_install_tool sigs.k8s.io/controller-tools/cmd/controller-gen@v0.6.2
41+
_install_tool sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0
4242
}
4343

4444
_install_revive() {
45-
_install_tool github.com/mgechev/revive@v1.2.3
45+
_install_tool github.com/mgechev/revive@v1.3.7
4646
}
4747

4848
_install_golangci_lint() {
49-
_install_tool github.com/golangci/golangci-lint/cmd/golangci-lint@v1.46.2
49+
_install_tool github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.2
5050
}
5151

5252
_install_yq() {
5353
_install_tool github.com/mikefarah/yq/[email protected]
5454
}
5555

5656
_install_gosec() {
57-
_install_tool github.com/securego/gosec/v2/cmd/gosec@v2.13.1
57+
_install_tool github.com/securego/gosec/v2/cmd/gosec@v2.19.0
5858
}
5959

6060
_install_gitlint() {

0 commit comments

Comments
 (0)