Patrick Ohly
443b1c6c23
hack/tools: bump golangci-lint to v1.51.2
2023-02-22 07:54:20 +01:00
Madhav Jivrajani
64cf942ce8
hack/tools: Bump golangci-lint version
...
Bump golangci-lint version. This version
adds support for go1.20.
This consequently also bumps the version of
staticcheck. Note that this was changed to
use master to be compatible with 1.20. This
commit reverts back to using a tagged release.
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2023-02-06 12:27:16 +05:30
Patrick Ohly
1d79a191c2
hack: update logtools to v0.4.1
...
Contains some bug fixes, for example allowing some additional
functions when enforcing contextual logging.
2023-01-23 14:24:29 +01:00
Jordan Liggitt
121088cb2a
bump honnef.co/go/tools to support go1.20
2023-01-17 10:42:55 -05:00
Oscar Utbult
de1fff9afa
hack/tools: update golangci-lint version (1.48.0 -> 1.50)
2022-10-20 13:51:10 +02:00
Abirdcfly
c8c5539e76
update golangci-lint for go 1.19
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-08-07 12:01:15 +08:00
Davanum Srinivas
34742f2d2e
run lint-dependencies and follow directions
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-08-03 22:00:02 -04:00
Davanum Srinivas
30e2fcd041
Stop panic in govet-levee CI job
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-08-03 21:51:01 -04: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
Patrick Ohly
0284c6c06e
hack/tools: use logcheck v0.1.0 from sigs.k8s.io/logtools/logcheck
...
The code was moved out of k8s.io/klog into its own repo with proper
tagging. Functionally there is no difference.
2022-06-14 17:27:16 +02:00
Jordan Liggitt
9e1064a26b
Regenerate vendor
2022-05-04 10:27:41 -04: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
Kir Kolyshkin
e3ed3ba7c9
update golangci-lint to 1.45.0
...
This should fix Go 1.18 compatibility woes.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-03-23 10:19:16 -07:00
Umanga Chapagain
f4ff6984cf
update hack/tools to pull latest logcheck
...
Signed-off-by: Umanga Chapagain <chapagainumanga@gmail.com>
2021-10-05 15:55:58 +05:30
Vikram Jadhav
5f674101bb
Added update and verify scripts for automated mock generation
2021-09-03 17:40:11 +00:00
Antonio Ojea
06f2d678ee
update and verify netparse
...
Add script to verify that net.ParseIP and net.ParseCIDR are
not being used.
Add another script to automatically replace those functions
for the ones forked in k8s.io/utils/net
2021-08-20 10:42:09 +02:00
Davanum Srinivas
b74fe232e3
update golangci-lint to newer version
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-14 08:41:21 -04:00
Mikhail Mazurskiy
bc475373b2
Drop direct dependency on gotest.tools
2021-07-10 13:31:32 +10:00
pacoxu
669fb50136
upgrade staticcheck to v0.2.0 and update the static failure packages
2021-06-28 18:04:16 +08:00
Benjamin Elder
207f9e8b71
switch go-flow-levee to tagged version
...
this is actually a no-op source wise, but we want to prefer tagged versions
2021-06-15 19:37:20 -07:00
Michaël Lévesque-Dion
a94aa0ea9a
Update version of go-flow-levee for verify-govet-levee check.
2021-06-08 12:02:46 -04:00
Aditi Sharma
2ad5601a83
Add scripts to use klog/logcheck
...
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com>
2021-03-05 08:17:34 +00:00
Stephen Augustus
093967606b
hack/tools: Update zeitgeist to v0.2.0 to drop import cycle
...
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-03-03 05:42:05 -05:00
Jordan Liggitt
ecef45df84
[go1.16] bump golang.org/x/... dependencies
...
hack/pin-dependency.sh golang.org/x/crypto latest
hack/pin-dependency.sh golang.org/x/net latest
hack/pin-dependency.sh golang.org/x/exp latest
hack/pin-dependency.sh golang.org/x/sys latest
hack/pin-dependency.sh golang.org/x/time latest
hack/pin-dependency.sh golang.org/x/tools latest
hack/lint-dependencies.sh
hack/pin-dependency.sh dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037
hack/pin-dependency.sh golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f
hack/pin-dependency.sh golang.org/x/mod v0.3.1-0.20200828183125-ce943fd02449
hack/lint-dependencies.sh
hack/update-internal-modules.sh
hack/update-vendor.sh
Co-authored-by: Stephen Augustus <foo@auggie.dev>
2021-03-02 00:38:01 -05:00
Benjamin Elder
d9ef7cbe8c
drop bazel related tools from hack/tools module
2021-02-28 15:17:29 -08:00
Stephen Augustus
5fb57eec1a
generated: Run ./hack/update-internal-modules.sh
...
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-02-22 08:48:04 -05:00
Stephen Augustus
68b9e70f3d
hack/tools: Add zeitgeist@e06e277 for verifying external dependencies
...
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-02-22 08:30:57 -05:00
Davanum Srinivas
865fd2f04f
Use golangci-lint to find unused/dead code
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-02-19 12:12:02 -05:00
Stephen Augustus
1c89ce14c0
[go1.15] hack/tools: Update to k/repo-infra@v0.1.3 (supports go1.15.5)
...
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-11-23 20:40:44 -05:00
Patrick Rhomberg
90b85bf3fa
KEP-1933: add static analysis target to hack/
...
* Add static analysis to hack/verify-govet-levee.sh for defense against
accidental logging of credentials.
* Add binary dependency to hack/tools/tools.go and associated go.mod, go.sum.
* Add analysis configuration to hack/testdata/levee/
2020-11-03 20:03:26 +00:00
Stephen Augustus
01a0c45f4a
[go1.15] hack/tools: Update to k/repo-infra@v0.1.1 (supports go1.15.2)
...
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-09-11 13:15:08 -07:00
Stephen Augustus
5d1e299230
[go1.15] hack/tools: Update to k/repo-infra@v0.0.12 (supports go1.15.0)
...
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-08-12 14:19:59 -04:00
Stephen Augustus
6733a9c470
generated: hack/update-hack-tools.sh && hack/update-vendor.sh
...
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-08-09 02:31:05 -04:00
Jordan Liggitt
f33dc28094
generated: hack/update-hack-tools.sh && hack/update-vendor.sh
2020-07-25 16:45:02 -04:00
Jordan Liggitt
becd9f4a2e
go1.14: update staticcheck for go 1.14, ignore new staticcheck warnings
2020-06-23 19:04:43 -04:00
Davanum Srinivas
ff6a888180
generate LICENSES used in tools
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-20 13:45:46 -04:00
Davanum Srinivas
f981628ce8
move linting dependencies to hack/tools/tools.go
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-20 13:45:38 -04:00
Davanum Srinivas
12146cb4df
Do not include bazel related deps in root go.mod
...
- add ./hack/tools/go.mod, this makes ./hack/tools a distinct module
- hack/tools/tools.go undescore imports bazel related tools, over time we
can add others.
- hack/*.sh scripts will cd to hack/tools and go install tools from there
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-19 22:01:50 -04:00