services/explorer/testutil/clickhouse/clickhouse.go
Function NewClickhouseStore
has 64 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func NewClickhouseStore(src string) (func(), *int, error) {
timeout := time.Second
port := freeport.GetPort()
portStr := strconv.Itoa(port)
conn, err := net.DialTimeout("tcp", net.JoinHostPort("localhost", portStr), timeout)
Function NewClickhouseStore
has 8 return statements (exceeds 4 allowed). Open
Open
func NewClickhouseStore(src string) (func(), *int, error) {
timeout := time.Second
port := freeport.GetPort()
portStr := strconv.Itoa(port)
conn, err := net.DialTimeout("tcp", net.JoinHostPort("localhost", portStr), timeout)