fix: consumer batch #21
Annotations
11 errors
sonarcloud
Process completed with exit code 1.
|
sonarcloud:
client.go#L145
error returned from external package is unwrapped: sig: func (github.com/twmb/franz-go/pkg/kgo.ProduceResults).FirstErr() error (wrapcheck)
|
sonarcloud:
codec.go#L10
Comment should end in a period (godot)
|
sonarcloud:
codec.go#L52
error returned from external package is unwrapped: sig: func encoding/json.Marshal(v any) ([]byte, error) (wrapcheck)
|
sonarcloud:
codec.go#L55
Decode returns interface (T) (ireturn)
|
sonarcloud:
codec.go#L59
error returned from external package is unwrapped: sig: func encoding/json.Unmarshal(data []byte, v any) error (wrapcheck)
|
sonarcloud:
codec.go#L76
Decode returns interface (T) (ireturn)
|
sonarcloud:
codec.go#L77
type assertion must be checked (forcetypeassert)
|
sonarcloud:
consumerbatch.go#L59
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
sonarcloud:
consumerbatch.go#L67
cognitive complexity 32 of func `(consumerBatch).batchIteration` is high (> 30) (gocognit)
|
sonarcloud:
consumersingle.go#L59
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|