ziscky/mock-pesa

View on GitHub

Showing 13 of 13 total issues

Your code does not pass gofmt in 27 places. Go fmt your code!
Open

/*
Severity: Minor
Found in c2b_test.go by gofmt

Your code does not pass gofmt in 13 places. Go fmt your code!
Open

/*
Severity: Minor
Found in c2b/api.go by gofmt

Your code does not pass gofmt in 11 places. Go fmt your code!
Open

/*
Severity: Minor
Found in c2b/parser.go by gofmt

Your code does not pass gofmt in 9 places. Go fmt your code!
Open

/*
Severity: Minor
Found in c2b/validator.go by gofmt

Method C2B.parseRequest has 5 return statements (exceeds 4 allowed).
Open

func (c2b *C2B) parseRequest(r *http.Request) http.HandlerFunc {
    body, err := ioutil.ReadAll(r.Body)

    processCheckoutOp := &ProcessCheckoutRequest{}
    confirmTrxOp := &ConfirmTransactionRequest{}
Severity: Major
Found in c2b/api.go - About 35 mins to fix

    Your code does not pass gofmt in 3 places. Go fmt your code!
    Open

    /*
    Severity: Minor
    Found in main.go by gofmt

    Your code does not pass gofmt in 2 places. Go fmt your code!
    Open

    /*
    Severity: Minor
    Found in c2b/tpl.go by gofmt

    Your code does not pass gofmt in 2 places. Go fmt your code!
    Open

    /*
    Severity: Minor
    Found in common/config.go by gofmt

    Your code does not pass gofmt in 2 places. Go fmt your code!
    Open

    /*
    Severity: Minor
    Found in common/middleware.go by gofmt

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    /*
    Severity: Minor
    Found in c2b/response_codes.go by gofmt

    exported method C2B.Clear should have comment or be unexported
    Open

    func (c2b *C2B) Clear() {
    Severity: Minor
    Found in c2b/api.go by golint

    2: cannot find package "github.com/gorilla/mux" in any of:
    Open

        "github.com/gorilla/mux"
    Severity: Minor
    Found in c2b/api.go by govet

    package comment should be of the form "Package c2b ..."
    Open

    /*
    Severity: Minor
    Found in c2b/api.go by golint
    Severity
    Category
    Status
    Source
    Language