Skip to content

Commit 0eb488c

Browse files
committed
Fix linter issues in ClickHouse state store
- Fix import ordering and formatting (goimports, gofmt) - Replace fmt.Sprintf with string concatenation for SQL queries - Add nolint comments for legitimate SQL string concatenation - Fix variable shadowing issues (govet) - Remove unused function and imports - Use t.Context() instead of context.Background() in tests - Update go.mod/go.sum with ClickHouse dependencies All linter checks now pass successfully.
1 parent baf0cd0 commit 0eb488c

File tree

4 files changed

+191
-153
lines changed

4 files changed

+191
-153
lines changed

go.mod

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ require (
2323
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2
2424
github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue v1.0.0
2525
github.com/Azure/go-amqp v1.0.5
26+
github.com/ClickHouse/clickhouse-go/v2 v2.37.2
2627
github.com/DATA-DOG/go-sqlmock v1.5.0
2728
github.com/IBM/sarama v1.43.3
2829
github.com/aerospike/aerospike-client-go/v6 v6.12.0
@@ -126,9 +127,9 @@ require (
126127
go.uber.org/goleak v1.3.0
127128
go.uber.org/multierr v1.11.0
128129
go.uber.org/ratelimit v0.3.0
129-
golang.org/x/crypto v0.38.0
130-
golang.org/x/mod v0.23.0
131-
golang.org/x/net v0.40.0
130+
golang.org/x/crypto v0.39.0
131+
golang.org/x/mod v0.25.0
132+
golang.org/x/net v0.41.0
132133
golang.org/x/oauth2 v0.27.0
133134
google.golang.org/api v0.215.0
134135
google.golang.org/grpc v1.72.0
@@ -165,12 +166,12 @@ require (
165166
github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 // indirect
166167
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.0 // indirect
167168
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect
169+
github.com/ClickHouse/ch-go v0.66.1 // indirect
168170
github.com/Code-Hex/go-generics-cache v1.3.1 // indirect
169171
github.com/DataDog/zstd v1.5.2 // indirect
170172
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.26.0 // indirect
171173
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.1 // indirect
172174
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.1 // indirect
173-
github.com/Microsoft/hcsshim v0.11.7 // indirect
174175
github.com/RoaringBitmap/roaring v1.1.0 // indirect
175176
github.com/Workiva/go-datastructures v1.0.53 // indirect
176177
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 // indirect
@@ -184,7 +185,7 @@ require (
184185
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a // indirect
185186
github.com/aliyun/credentials-go v1.1.2 // indirect
186187
github.com/aliyunmq/mq-http-go-sdk v1.0.3 // indirect
187-
github.com/andybalholm/brotli v1.1.0 // indirect
188+
github.com/andybalholm/brotli v1.1.1 // indirect
188189
github.com/apache/dubbo-getty v1.4.9-0.20220610060150-8af010f3f3dc // indirect
189190
github.com/apache/rocketmq-client-go v1.2.5 // indirect
190191
github.com/ardielle/ardielle-go v1.5.2 // indirect
@@ -242,6 +243,8 @@ require (
242243
github.com/fsnotify/fsnotify v1.9.0 // indirect
243244
github.com/gage-technologies/mistral-go v1.1.0 // indirect
244245
github.com/gavv/httpexpect v2.0.0+incompatible // indirect
246+
github.com/go-faster/city v1.0.1 // indirect
247+
github.com/go-faster/errors v0.7.1 // indirect
245248
github.com/go-ini/ini v1.67.0 // indirect
246249
github.com/go-jose/go-jose/v4 v4.0.4 // indirect
247250
github.com/go-kit/kit v0.10.0 // indirect
@@ -298,7 +301,7 @@ require (
298301
github.com/influxdata/line-protocol v0.0.0-20210922203350-b1ad95c89adf // indirect
299302
github.com/jackc/pgpassfile v1.0.0 // indirect
300303
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 // indirect
301-
github.com/jackc/puddle/v2 v2.2.1 // indirect
304+
github.com/jackc/puddle/v2 v2.2.2 // indirect
302305
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
303306
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
304307
github.com/jcmturner/gofork v1.7.6 // indirect
@@ -324,7 +327,7 @@ require (
324327
github.com/lestrrat-go/iter v1.0.2 // indirect
325328
github.com/lestrrat-go/option v1.0.1 // indirect
326329
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
327-
github.com/magiconair/properties v1.8.7 // indirect
330+
github.com/magiconair/properties v1.8.10 // indirect
328331
github.com/mailru/easyjson v0.7.7 // indirect
329332
github.com/matryer/is v1.4.0 // indirect
330333
github.com/mattn/go-colorable v0.1.13 // indirect
@@ -334,8 +337,6 @@ require (
334337
github.com/mitchellh/copystructure v1.2.0 // indirect
335338
github.com/mitchellh/go-homedir v1.1.0 // indirect
336339
github.com/mitchellh/reflectwalk v1.0.2 // indirect
337-
github.com/moby/sys/user v0.3.0 // indirect
338-
github.com/moby/sys/userns v0.1.0 // indirect
339340
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
340341
github.com/modern-go/reflect2 v1.0.2 // indirect
341342
github.com/montanaflynn/stats v0.7.0 // indirect
@@ -348,10 +349,11 @@ require (
348349
github.com/nats-io/nuid v1.0.1 // indirect
349350
github.com/opentracing/opentracing-go v1.2.0 // indirect
350351
github.com/panjf2000/ants/v2 v2.8.1 // indirect
352+
github.com/paulmach/orb v0.11.1 // indirect
351353
github.com/pelletier/go-toml v1.9.5 // indirect
352354
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
353355
github.com/pierrec/lz4 v2.6.0+incompatible // indirect
354-
github.com/pierrec/lz4/v4 v4.1.21 // indirect
356+
github.com/pierrec/lz4/v4 v4.1.22 // indirect
355357
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
356358
github.com/pkg/errors v0.9.1 // indirect
357359
github.com/pkoukk/tiktoken-go v0.1.6 // indirect
@@ -373,6 +375,7 @@ require (
373375
github.com/sendgrid/rest v2.6.9+incompatible // indirect
374376
github.com/shirou/gopsutil/v3 v3.23.12 // indirect
375377
github.com/shoenig/go-m1cpu v0.1.6 // indirect
378+
github.com/shopspring/decimal v1.4.0 // indirect
376379
github.com/sirupsen/logrus v1.9.3 // indirect
377380
github.com/sony/gobreaker v0.5.0 // indirect
378381
github.com/sourcegraph/conc v0.3.0 // indirect
@@ -398,7 +401,7 @@ require (
398401
github.com/yudai/gojsondiff v1.0.0 // indirect
399402
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
400403
github.com/yuin/gopher-lua v1.1.0 // indirect
401-
github.com/yusufpapurcu/wmi v1.2.3 // indirect
404+
github.com/yusufpapurcu/wmi v1.2.4 // indirect
402405
github.com/zeebo/errs v1.4.0 // indirect
403406
go.etcd.io/etcd/api/v3 v3.5.10 // indirect
404407
go.etcd.io/etcd/client/pkg/v3 v3.5.10 // indirect
@@ -407,22 +410,22 @@ require (
407410
go.opentelemetry.io/contrib/detectors/gcp v1.34.0 // indirect
408411
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 // indirect
409412
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
410-
go.opentelemetry.io/otel v1.35.0 // indirect
411-
go.opentelemetry.io/otel/metric v1.35.0 // indirect
412-
go.opentelemetry.io/otel/sdk v1.35.0 // indirect
413+
go.opentelemetry.io/otel v1.36.0 // indirect
414+
go.opentelemetry.io/otel/metric v1.36.0 // indirect
415+
go.opentelemetry.io/otel/sdk v1.36.0 // indirect
413416
go.opentelemetry.io/otel/sdk/metric v1.35.0 // indirect
414-
go.opentelemetry.io/otel/trace v1.35.0 // indirect
417+
go.opentelemetry.io/otel/trace v1.36.0 // indirect
415418
go.opentelemetry.io/proto/otlp v1.6.0 // indirect
416419
go.uber.org/atomic v1.10.0 // indirect
417-
go.uber.org/zap v1.24.0 // indirect
420+
go.uber.org/zap v1.27.0 // indirect
418421
golang.org/x/arch v0.10.0 // indirect
419422
golang.org/x/exp v0.0.0-20240119083558-1b970713d09a // indirect
420-
golang.org/x/sync v0.14.0 // indirect
423+
golang.org/x/sync v0.15.0 // indirect
421424
golang.org/x/sys v0.33.0 // indirect
422425
golang.org/x/term v0.32.0 // indirect
423-
golang.org/x/text v0.25.0 // indirect
426+
golang.org/x/text v0.26.0 // indirect
424427
golang.org/x/time v0.11.0 // indirect
425-
golang.org/x/tools v0.30.0 // indirect
428+
golang.org/x/tools v0.33.0 // indirect
426429
google.golang.org/genproto v0.0.0-20241118233622-e639e219e697 // indirect
427430
google.golang.org/genproto/googleapis/api v0.0.0-20250505200425-f936aa4a68b2 // indirect
428431
google.golang.org/genproto/googleapis/rpc v0.0.0-20250505200425-f936aa4a68b2 // indirect

0 commit comments

Comments
 (0)