aergoio/aergo

View on GitHub
cmd/aergocli/cmd/getstate.go

Summary

Maintainability
A
2 hrs
Test Coverage
F
13%

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

func execGetState(cmd *cobra.Command, args []string) {
    var root []byte
    var err error
    if len(stateroot) != 0 {
        root, err = base58.Decode(stateroot)
Severity: Minor
Found in cmd/aergocli/cmd/getstate.go - About 1 hr to fix

    Function execGetState has 9 return statements (exceeds 4 allowed).
    Open

    func execGetState(cmd *cobra.Command, args []string) {
        var root []byte
        var err error
        if len(stateroot) != 0 {
            root, err = base58.Decode(stateroot)
    Severity: Major
    Found in cmd/aergocli/cmd/getstate.go - About 55 mins to fix

      There are no issues that match your filters.

      Category
      Status