aergoio/aergo

View on GitHub
cmd/brick/exec/deployContract.go

Summary

Maintainability
A
1 hr
Test Coverage

Method deployContract.readDefFile has 6 return statements (exceeds 4 allowed).
Open

func (c *deployContract) readDefFile(defPath string) ([]byte, error) {
    if strings.HasPrefix(defPath, "http") {
        // search in the web
        req, err := http.NewRequest("GET", defPath, nil)
        if err != nil {
Severity: Major
Found in cmd/brick/exec/deployContract.go - About 40 mins to fix

    Method deployContract.parse has 5 return statements (exceeds 4 allowed).
    Open

    func (c *deployContract) parse(args string) (string, *big.Int, string, string, string, error) {
        splitArgs := context.SplitSpaceAndAccent(args, false)
        if len(splitArgs) < 4 {
            return "", nil, "", "", "", fmt.Errorf("need 4 arguments. usage: %s", c.Usage())
        }
    Severity: Major
    Found in cmd/brick/exec/deployContract.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status