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
Jordan Liggitt
00db9f0229
Update go.mod to go1.19
2022-08-04 10:03:05 -04: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
Jordan Liggitt
1176b7ca28
Update go.mod files to go1.18, update license vendor script
2022-05-04 10:22:27 -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
Tim Hockin
e671fea954
Remove hack/tools/Makefile
2022-02-26 12:57:10 -08: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
Benjamin Elder
45f910e79e
update hack/tools README.md
...
bazel tools are no-more
2021-03-07 13:10:43 -08: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
Stephen Augustus
3c2824e3db
[go1.16] go.mod: update to go1.16
...
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-03-02 00:38:00 -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
Davanum Srinivas
02eaf0f23d
remove references to golint in hack/tools
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-01-28 15:43:12 -05:00
Tim Hockin
3aa319c894
Don't generate LICENSES for hack/tools
2021-01-25 10:15:59 -08: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
Stephen Augustus
c3d1099205
[go1.15] hack/tools: Update to k/repo-infra@v0.0.11 (supports go1.15rc2)
...
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-08-09 02:23:47 -04:00
Jordan Liggitt
247fcdfda5
[go1.15] go.mod: update to go1.15
2020-07-25 16:45:02 -04:00
Jordan Liggitt
f33dc28094
generated: hack/update-hack-tools.sh && hack/update-vendor.sh
2020-07-25 16:45:02 -04:00
Stephen Augustus
ed5a62f220
[go1.15] tools: Update to k/repo-infra@v0.0.10 (supports go1.15rc1)
...
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-07-25 16:45:01 -04:00
Jordan Liggitt
ae43f87954
Move go.mod back to go1.13
2020-07-06 10:38:39 -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
Tim Hockin
fad9e0650a
Generate new LICENSES tree with revised scripts
2020-05-07 21:49:00 -07:00
Tim Hockin
325ea6e3c2
Restructure licenses again (revert cd4474a
)
...
This moves licenses of vendored code from one monolith file into a tree
of individual files for easier reviews. This fixes both the bash and
bazel paths.
2020-05-07 21:48:59 -07:00
Davanum Srinivas
6974d32755
Add Makefile and a note in README.md
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-20 13:45:47 -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