synapsecns/sanguine

View on GitHub
services/explorer/testutil/clickhouse/clickhouse.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function NewClickhouseStore has 64 lines of code (exceeds 50 allowed). Consider refactoring.
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)
Severity: Minor
Found in services/explorer/testutil/clickhouse/clickhouse.go - About 1 hr to fix

    Function NewClickhouseStore has 8 return statements (exceeds 4 allowed).
    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)
    Severity: Major
    Found in services/explorer/testutil/clickhouse/clickhouse.go - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status