SataQiu
e0f11d9c5b
kubeadm: fix gocritic lint errors
2023-01-08 11:23:26 +08:00
Oscar Utbult
21fa8d12bb
hack/tools enable additional linter in golangci-lint
...
Enables linter gocritic with two checks enabled for a subset of the project
2022-10-21 17:58:15 +02:00
Oscar Utbult
de1fff9afa
hack/tools: update golangci-lint version (1.48.0 -> 1.50)
2022-10-20 13:51:10 +02:00
Abirdcfly
b7bcbf3619
delete hardcode go version in golangci-lint config
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-08-07 11:43:07 +08:00
Davanum Srinivas
a2408f39c7
[golang] Fix things commented out in 1.19rc2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-08-04 10:27:09 -04:00
Davanum Srinivas
6c0a434db0
Try disabling logcheck for golang 1.19rc2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-07-26 13:14:05 -04:00
Kubernetes Prow Robot
6f9fd45954
Merge pull request #111101 from Abirdcfly/220707
...
enable stylecheck check in golangci
2022-07-18 21:56:27 -07:00
Abirdcfly
aeed9ecc37
enable stylecheck check in golangci
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-07-13 12:12:59 +08:00
Kubernetes Prow Robot
cb56b40d32
Merge pull request #109477 from Monokaix/golint
...
remove excluded staticcheck that were already fixed
2022-07-11 07:19:49 -07:00
Abirdcfly
2bca77a3d9
Update golangci-lint to 1.46.2 and fix errors
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-06-29 17:42:46 +08:00
XuzhengChang
2bc6ac5af6
remove excluded staticcheck that were already fixed
2022-04-14 11:12:57 +08:00
Patrick Ohly
17e3c555c5
hack: integrate logcheck into golangci-lint
...
Running logcheck as part of golangci-lint has several advantages:
- faster checking because finding files and parsing is shared
with other linters
- gets rid of the complex and buggy
hack/verify-structured-logging.sh (https://github.com/kubernetes/kubernetes/issues/106746 )
- support for // nolint:logcheck
- works with Go 1.18
2022-03-24 11:21:03 +01:00
Antonio Ojea
86e197991a
fix golangci-lint config file using exclude-rules
...
golangci configuration file
disable soon to be deprecated golangci linters
remove useless comments on golangci config
2021-11-17 13:58:53 +01:00
Hanna Lee
ca7cfb75d0
Copy in options from now-deleted hack/verify-staticcheck.sh script
2021-11-17 08:56:57 +01:00
Tim Hockin
e986d72575
Add staticcheck to .golangci.yaml
...
TODO: port options from verify-staticcheck.sh and delete it
2021-11-17 08:56:57 +01:00
Tim Hockin
3bca4e6d67
Move golangci-lint config to a file
...
Make verify-golangci-lint.sh work across modules and take an optional
argument for a package.
2021-11-17 08:56:57 +01:00