Skip to content

Commit

Permalink
*: upgrade golangci-linter (#41046)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei authored Feb 5, 2023
1 parent 975d177 commit 807bf40
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 91 deletions.
130 changes: 80 additions & 50 deletions DEPS.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,38 @@ def go_deps():
name = "cc_mvdan_unparam",
build_file_proto_mode = "disable",
importpath = "mvdan.cc/unparam",
sum = "h1:seuXWbRB1qPrS3NQnHmFKLJLtskWyueeIzmLXghMGgk=",
version = "v0.0.0-20220706161116-678bad134442",
sum = "h1:3rvTIIM22r9pvXk+q3swxUQAQOxksVMGK7sml4nG57w=",
version = "v0.0.0-20221223090309-7455f1af531d",
)

go_repository(
name = "co_honnef_go_tools",
build_file_proto_mode = "disable_global",
importpath = "honnef.co/go/tools",
sum = "h1:oDx7VAwstgpYpb3wv0oxiZlxY+foCpRAwY7Vk6XpAgA=",
version = "v0.3.3",
sum = "h1:lyXVV1c8wUBJRKqI8JgIpT8TW1VDagfYYaxbKa/HoL8=",
version = "v0.4.0",
)
go_repository(
name = "com_4d63_gocheckcompilerdirectives",
build_file_proto_mode = "disable",
importpath = "4d63.com/gocheckcompilerdirectives",
sum = "h1:AHcMYuw56NPjq/2y615IGg2kYkBdTvOaojYCBcRE7MA=",
version = "v1.2.1",
)

go_repository(
name = "com_4d63_gochecknoglobals",
build_file_proto_mode = "disable",
importpath = "4d63.com/gochecknoglobals",
sum = "h1:zeZSRqj5yCg28tCkIV/z/lWbwvNm5qnKVS15PI8nhD0=",
version = "v0.1.0",
sum = "h1:1eiorGsgHOFOuoOiJDy2psSrQbRdIHrlge0IJIkUgDc=",
version = "v0.2.1",
)
go_repository(
name = "com_github_abirdcfly_dupword",
build_file_proto_mode = "disable",
importpath = "github.com/Abirdcfly/dupword",
sum = "h1:z14n0yytA3wNO2gpCD/jVtp/acEXPGmYu0esewpBt6Q=",
version = "v0.0.7",
sum = "h1:MxprGjKq3yDBICXDgEEsyGirIXfMYXkLNT/agPsE1tk=",
version = "v0.0.9",
)

go_repository(
Expand Down Expand Up @@ -770,8 +778,8 @@ def go_deps():
name = "com_github_daixiang0_gci",
build_file_proto_mode = "disable",
importpath = "github.com/daixiang0/gci",
sum = "h1:yBdsd376w+RIBvFXjj0MAcGWS8cSCfAlRNPfn5xvjl0=",
version = "v0.8.5",
sum = "h1:t8XZ0vK6l0pwPoOmoGyqW2NwQlvbpAQNVvu/GRBgykM=",
version = "v0.9.0",
)

go_repository(
Expand Down Expand Up @@ -1419,8 +1427,8 @@ def go_deps():
name = "com_github_go_xmlfmt_xmlfmt",
build_file_proto_mode = "disable",
importpath = "github.com/go-xmlfmt/xmlfmt",
sum = "h1:khEcpUM4yFcxg4/FHQWkvVRmgijNXRfzkIDHh23ggEo=",
version = "v0.0.0-20191208150333-d5b6f63a941b",
sum = "h1:Nea7b4icn8s57fTx1M5AI4qQT5HEM3rVUO8MuE6g80U=",
version = "v1.1.2",
)
go_repository(
name = "com_github_gobwas_glob",
Expand Down Expand Up @@ -1598,8 +1606,8 @@ def go_deps():
name = "com_github_golangci_golangci_lint",
build_file_proto_mode = "disable",
importpath = "github.com/golangci/golangci-lint",
sum = "h1:C829clMcZXEORakZlwpk7M4iDw2XiwxxKaG504SZ9zY=",
version = "v1.50.1",
sum = "h1:M1bpDymgdaPKNzPwQdebCGki/nzvVkr2f/eUfk9C9oU=",
version = "v1.51.0",
)
go_repository(
name = "com_github_golangci_gosec",
Expand Down Expand Up @@ -1627,8 +1635,8 @@ def go_deps():
name = "com_github_golangci_misspell",
build_file_proto_mode = "disable",
importpath = "github.com/golangci/misspell",
sum = "h1:pLzmVdl3VxTOncgzHcvLOKirdvcx/TydsClUQXTehjo=",
version = "v0.3.5",
sum = "h1:KtVB/hTK4bbL/S6bs64rYyk8adjmh1BygbBiaAiX+a0=",
version = "v0.4.0",
)

go_repository(
Expand Down Expand Up @@ -2420,6 +2428,14 @@ def go_deps():
sum = "h1:PJr+ZMXIecYc1Ey2zucXdR73SMBtgjPgwa31099IMv0=",
version = "v1.0.3-0.20190309125859-24315acbbda5",
)
go_repository(
name = "com_github_junk1tm_musttag",
build_file_proto_mode = "disable",
importpath = "github.com/junk1tm/musttag",
sum = "h1:I8UHQkDj2u/MClcGU8PbMoYwhykiSQFEbXKKMjixPyk=",
version = "v0.4.3",
)

go_repository(
name = "com_github_k0kubun_colorstring",
build_file_proto_mode = "disable_global",
Expand Down Expand Up @@ -2463,8 +2479,8 @@ def go_deps():
patches = [
"//build/patches:com_github_kisielk_errcheck.patch",
],
sum = "h1:uGQ9xI8/pgc9iOoCe7kWQgRE6SBTrCGmTSf0LrEtY7c=",
version = "v1.6.2",
sum = "h1:dEKh+GLHcWm2oN34nMvDzn1sqI0i0WxPvrgiJA5JuM8=",
version = "v1.6.3",
)
go_repository(
name = "com_github_kisielk_gotool",
Expand Down Expand Up @@ -2564,8 +2580,8 @@ def go_deps():
name = "com_github_kyoh86_exportloopref",
build_file_proto_mode = "disable",
importpath = "github.com/kyoh86/exportloopref",
sum = "h1:5Ry/at+eFdkX9Vsdw3qU4YkvGtzuVfzT4X7S77LoN/M=",
version = "v0.1.8",
sum = "h1:1Z0bcmTypkL3Q4k+IDHMWTcnCliEZcaPiIe0/ymEyhQ=",
version = "v0.1.11",
)

go_repository(
Expand Down Expand Up @@ -2593,8 +2609,8 @@ def go_deps():
name = "com_github_ldez_tagliatelle",
build_file_proto_mode = "disable",
importpath = "github.com/ldez/tagliatelle",
sum = "h1:3BqVVlReVUZwafJUwQ+oxbx2BEX2vUG4Yu/NOfMiKiM=",
version = "v0.3.1",
sum = "h1:sylp7d9kh6AdXN2DpVGHBRb5guTVAgOxqNGhbqc4b1c=",
version = "v0.4.0",
)
go_repository(
name = "com_github_leodido_go_urn",
Expand All @@ -2608,8 +2624,8 @@ def go_deps():
name = "com_github_leonklingele_grouper",
build_file_proto_mode = "disable",
importpath = "github.com/leonklingele/grouper",
sum = "h1:tC2y/ygPbMFSBOs3DcyaEMKnnwH7eYKzohOtRrf0SAg=",
version = "v1.1.0",
sum = "h1:suWXRU57D4/Enn6pXR0QVqqWWrnJ9Osrz+5rjt8ivzU=",
version = "v1.1.1",
)
go_repository(
name = "com_github_lestrrat_go_blackmagic",
Expand Down Expand Up @@ -3079,8 +3095,8 @@ def go_deps():
name = "com_github_nishanths_exhaustive",
build_file_proto_mode = "disable",
importpath = "github.com/nishanths/exhaustive",
sum = "h1:pw5O09vwg8ZaditDp/nQRqVnrMczSJDxRDJMowvhsrM=",
version = "v0.8.3",
sum = "h1:TzssWan6orBiLYVqewCG8faud9qlFntJE30ACpzmGME=",
version = "v0.9.5",
)

go_repository(
Expand All @@ -3090,6 +3106,13 @@ def go_deps():
sum = "h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk=",
version = "v0.2.2",
)
go_repository(
name = "com_github_nunnatsa_ginkgolinter",
build_file_proto_mode = "disable",
importpath = "github.com/nunnatsa/ginkgolinter",
sum = "h1:j4mzqx1hkE75mXHs3AUlWghZBi59c3GDWXp6zzcI+kE=",
version = "v0.7.1",
)

go_repository(
name = "com_github_nxadm_tail",
Expand Down Expand Up @@ -3406,8 +3429,8 @@ def go_deps():
name = "com_github_polyfloyd_go_errorlint",
build_file_proto_mode = "disable",
importpath = "github.com/polyfloyd/go-errorlint",
sum = "h1:AHB5JRCjlmelh9RrLxT9sgzpalIwwq4hqE8EkwIwKdY=",
version = "v1.0.5",
sum = "h1:ZevdyEGxDoHAMQUVvdTT06hnYuKULe8TQkOmIYx6s1c=",
version = "v1.0.6",
)

go_repository(
Expand Down Expand Up @@ -3493,8 +3516,8 @@ def go_deps():
name = "com_github_quasilyte_go_ruleguard_dsl",
build_file_proto_mode = "disable",
importpath = "github.com/quasilyte/go-ruleguard/dsl",
sum = "h1:vNkC6fC6qMLzCOGbnIHOd5ixUGgTbp3Z4fGnUgULlDA=",
version = "v0.3.21",
sum = "h1:wd8zkOhSNr+I+8Qeciml08ivDt1pSXe60+5DqOpCjPE=",
version = "v0.3.22",
)
go_repository(
name = "com_github_quasilyte_gogrep",
Expand Down Expand Up @@ -3603,8 +3626,8 @@ def go_deps():
name = "com_github_ryancurrah_gomodguard",
build_file_proto_mode = "disable",
importpath = "github.com/ryancurrah/gomodguard",
sum = "h1:CpMSDKan0LtNGGhPrvupAoLeObRFjND8/tU1rEOtBp4=",
version = "v1.2.4",
sum = "h1:q15RT/pd6UggBXVBuLps8BXRvl5GPBcwVA7BJHMLuTw=",
version = "v1.3.0",
)
go_repository(
name = "com_github_ryanrolds_sqlclosecheck",
Expand Down Expand Up @@ -3654,8 +3677,8 @@ def go_deps():
name = "com_github_sashamelentyev_usestdlibvars",
build_file_proto_mode = "disable",
importpath = "github.com/sashamelentyev/usestdlibvars",
sum = "h1:K6CXjqqtSYSsuyRDDC7Sjn6vTMLiSJa4ZmDkiokoqtw=",
version = "v1.20.0",
sum = "h1:GQGlReyL9Ek8DdJmwtwhHbhwHnuPfsKaprpjnrPcjxc=",
version = "v1.21.1",
)

go_repository(
Expand Down Expand Up @@ -3684,8 +3707,8 @@ def go_deps():
name = "com_github_securego_gosec_v2",
build_file_proto_mode = "disable",
importpath = "github.com/securego/gosec/v2",
sum = "h1:7mU32qn2dyC81MH9L2kefnQyRMUarfDER3iQyMHcjYM=",
version = "v2.13.1",
sum = "h1:U1hfs0oBackChXA72plCYVA4cOlQ4gO+209dHiSNZbI=",
version = "v2.14.0",
)

go_repository(
Expand Down Expand Up @@ -3714,8 +3737,8 @@ def go_deps():
name = "com_github_shirou_gopsutil_v3",
build_file_proto_mode = "disable_global",
importpath = "github.com/shirou/gopsutil/v3",
sum = "h1:yibtJhIVEMcdw+tCTbOPiF1VcsuDeTE4utJ8Dm4c5eA=",
version = "v3.22.9",
sum = "h1:oG0ns6poeUSxf78JtOsfygNWuEHYYz8hnnNg7P04TJs=",
version = "v3.22.12",
)
go_repository(
name = "com_github_shopify_goreferrer",
Expand Down Expand Up @@ -3800,8 +3823,8 @@ def go_deps():
name = "com_github_sivchari_tenv",
build_file_proto_mode = "disable",
importpath = "github.com/sivchari/tenv",
sum = "h1:d4laZMBK6jpe5PWepxlV9S+LC0yXqvYHiq8E6ceoVVE=",
version = "v1.7.0",
sum = "h1:PSpuD4bu6fSmtWMxSGWcvqUUgIn7k3yOJhOIzVWn8Ak=",
version = "v1.7.1",
)
go_repository(
name = "com_github_smallnest_chanx",
Expand Down Expand Up @@ -3843,8 +3866,8 @@ def go_deps():
name = "com_github_sourcegraph_go_diff",
build_file_proto_mode = "disable",
importpath = "github.com/sourcegraph/go-diff",
sum = "h1:hmA1LzxW0n1c3Q4YbrFgg4P99GSnebYa3x8gr0HZqLQ=",
version = "v0.6.1",
sum = "h1:FEIBISvqa2IsyC4KQQBQ1Ef2QvweGUgEIjCdE3gz+zs=",
version = "v0.6.2-0.20221031073116-7ef5f68ebea1",
)

go_repository(
Expand Down Expand Up @@ -3991,6 +4014,13 @@ def go_deps():
sum = "h1:1oFLiOyVl+W7bnBzGhf7BbIv9loSFQcieWWYIjLqcAw=",
version = "v1.0.1-0.20190318030020-c3a204f8e965",
)
go_repository(
name = "com_github_t_yuki_gocover_cobertura",
build_file_proto_mode = "disable",
importpath = "github.com/t-yuki/gocover-cobertura",
sum = "h1:+aPplBwWcHBo6q9xrfWdMrT9o4kltkmmvpemgIjep/8=",
version = "v0.0.0-20180217150009-aaee18c8195c",
)

go_repository(
name = "com_github_tdakkota_asciicheck",
Expand Down Expand Up @@ -4077,8 +4107,8 @@ def go_deps():
name = "com_github_timakin_bodyclose",
build_file_proto_mode = "disable",
importpath = "github.com/timakin/bodyclose",
sum = "h1:kl4KhGNsJIbDHS9/4U9yQo1UcPQM0kOMJHn29EoH/Ro=",
version = "v0.0.0-20210704033933-f49887972144",
sum = "h1:MV6KaVu/hzByHP0UvJ4HcMGE/8a6A4Rggc/0wx2AvJo=",
version = "v0.0.0-20221125081123-e39cf3fc478e",
)
go_repository(
name = "com_github_timonwong_loggercheck",
Expand All @@ -4100,15 +4130,15 @@ def go_deps():
name = "com_github_tklauser_go_sysconf",
build_file_proto_mode = "disable_global",
importpath = "github.com/tklauser/go-sysconf",
sum = "h1:IJ1AZGZRWbY8T5Vfk04D9WOA5WSejdflXxP03OUqALw=",
version = "v0.3.10",
sum = "h1:89WgdJhk5SNwJfu+GKyYveZ4IaJ7xAkecBo+KdJV0CM=",
version = "v0.3.11",
)
go_repository(
name = "com_github_tklauser_numcpus",
build_file_proto_mode = "disable_global",
importpath = "github.com/tklauser/numcpus",
sum = "h1:E53Dm1HjH1/R2/aoCtXtPgzmElmn51aOkhCFSuZq//o=",
version = "v0.4.0",
sum = "h1:kebhY2Qt+3U6RNK7UqpYNA+tJ23IBEGKkB7JQBfDYms=",
version = "v0.6.0",
)
go_repository(
name = "com_github_tmc_grpc_websocket_proxy",
Expand Down Expand Up @@ -5826,8 +5856,8 @@ def go_deps():
name = "org_golang_x_exp_typeparams",
build_file_proto_mode = "disable",
importpath = "golang.org/x/exp/typeparams",
sum = "h1:Ic/qN6TEifvObMGQy72k0n1LlJr7DjWWEi+MOsDOiSk=",
version = "v0.0.0-20220827204233-334a2380cb91",
sum = "h1:Jw5wfR+h9mnIYH+OtGT2im5wV1YGGDora5vTv/aa5bE=",
version = "v0.0.0-20221208152030-732eee02a75a",
)

go_repository(
Expand Down
22 changes: 11 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ require (
github.com/cockroachdb/pebble v0.0.0-20210719141320-8c3bd06debb5
github.com/coocood/freecache v1.2.1
github.com/coreos/go-semver v0.3.0
github.com/daixiang0/gci v0.8.5
github.com/daixiang0/gci v0.9.0
github.com/danjacques/gofslock v0.0.0-20191023191349-0a45f885bc37
github.com/dgraph-io/ristretto v0.1.1
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13
Expand All @@ -41,9 +41,9 @@ require (
github.com/golang/protobuf v1.5.2
github.com/golang/snappy v0.0.4
github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2
github.com/golangci/golangci-lint v1.50.1
github.com/golangci/golangci-lint v1.51.0
github.com/golangci/gosec v0.0.0-20180901114220-8afd9cbb6cfb
github.com/golangci/misspell v0.3.5
github.com/golangci/misspell v0.4.0
github.com/golangci/prealloc v0.0.0-20180630174525-215b22d4de21
github.com/google/btree v1.1.2
github.com/google/pprof v0.0.0-20211122183932-1daafda22083
Expand All @@ -57,9 +57,9 @@ require (
github.com/jedib0t/go-pretty/v6 v6.2.2
github.com/jingyugao/rowserrcheck v1.1.1
github.com/joho/sqltocsv v0.0.0-20210428211105-a6d6801d59df
github.com/kisielk/errcheck v1.6.2
github.com/kisielk/errcheck v1.6.3
github.com/klauspost/compress v1.15.13
github.com/kyoh86/exportloopref v0.1.8
github.com/kyoh86/exportloopref v0.1.11
github.com/lestrrat-go/jwx/v2 v2.0.6
github.com/mgechev/revive v1.2.5
github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7
Expand All @@ -82,7 +82,7 @@ require (
github.com/prometheus/common v0.39.0
github.com/prometheus/prometheus v0.0.0-20190525122359-d20e84d0fb64
github.com/sasha-s/go-deadlock v0.2.0
github.com/shirou/gopsutil/v3 v3.22.9
github.com/shirou/gopsutil/v3 v3.22.12
github.com/shurcooL/httpgzip v0.0.0-20190720172056-320755c1c1b0
github.com/soheilhy/cmux v0.1.5
github.com/spf13/cobra v1.6.1
Expand All @@ -95,7 +95,7 @@ require (
github.com/tikv/client-go/v2 v2.0.5-0.20230202101145-8fd09cd88cce
github.com/tikv/pd v1.1.0-beta.0.20230202094356-18df271ce57f
github.com/tikv/pd/client v0.0.0-20230202094356-18df271ce57f
github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144
github.com/timakin/bodyclose v0.0.0-20221125081123-e39cf3fc478e
github.com/twmb/murmur3 v1.1.3
github.com/uber/jaeger-client-go v2.22.1+incompatible
github.com/vbauerster/mpb/v7 v7.5.3
Expand Down Expand Up @@ -125,7 +125,7 @@ require (
google.golang.org/api v0.103.0
google.golang.org/grpc v1.51.0
gopkg.in/yaml.v2 v2.4.0
honnef.co/go/tools v0.3.3
honnef.co/go/tools v0.4.0
k8s.io/apimachinery v0.26.0
sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0
sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67
Expand Down Expand Up @@ -239,8 +239,8 @@ require (
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/tiancaiamao/gp v0.0.0-20221230034425-4025bc8a4d4a // indirect
github.com/tklauser/go-sysconf v0.3.10 // indirect
github.com/tklauser/numcpus v0.4.0 // indirect
github.com/tklauser/go-sysconf v0.3.11 // indirect
github.com/tklauser/numcpus v0.6.0 // indirect
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 // indirect
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
Expand All @@ -260,7 +260,7 @@ require (
go.opentelemetry.io/otel/trace v0.20.0 // indirect
go.opentelemetry.io/proto/otlp v0.7.0 // indirect
golang.org/x/crypto v0.5.0 // indirect
golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 // indirect
golang.org/x/exp/typeparams v0.0.0-20221208152030-732eee02a75a // indirect
golang.org/x/mod v0.7.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/appengine v1.6.7 // indirect
Expand Down
Loading

0 comments on commit 807bf40

Please sign in to comment.