synapsecns/sanguine

View on GitHub
ethergo/forker/fork.go

Summary

Maintainability
A
1 hr
Test Coverage

Function Fork has 8 return statements (exceeds 4 allowed).
Open

func Fork(ctx context.Context, rpcURL string, chainID uint64, clientFunc func(client *ethclient.Client)) error {
    processPort, err := freeport.GetFreePort()
    if err != nil {
        return fmt.Errorf("failed to get free port: %w", err)
    }
Severity: Major
Found in ethergo/forker/fork.go - About 50 mins to fix

    Function getForkClientHandler has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func getForkClientHandler(ctx context.Context, cmd *exec.Cmd, chainID uint64, processPort int, clientFunc func(client *ethclient.Client)) func() error {
    Severity: Minor
    Found in ethergo/forker/fork.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status