synapsecns/sanguine

View on GitHub
agents/testcli/main.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function main has 59 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func main() {
    fmt.Println("Enter Sending Chain URL (eg https://polygon-rpc.com, https://api.avax.network/ext/bc/C/rpc, https://optimism-mainnet.public.blastapi.io): ")
    var sendingChainURL string
    fmt.Scanln(&sendingChainURL)

Severity: Minor
Found in agents/testcli/main.go - About 1 hr to fix

    Function main has 6 return statements (exceeds 4 allowed).
    Open

    func main() {
        fmt.Println("Enter Sending Chain URL (eg https://polygon-rpc.com, https://api.avax.network/ext/bc/C/rpc, https://optimism-mainnet.public.blastapi.io): ")
        var sendingChainURL string
        fmt.Scanln(&sendingChainURL)
    
    
    Severity: Major
    Found in agents/testcli/main.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status