osamingo/jsonrpc

View on GitHub
jsonrpc.go

Summary

Maintainability
A
55 mins
Test Coverage

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

func ParseRequest(r *http.Request) ([]*Request, bool, *Error) {
    var rerr *Error

    if !strings.HasPrefix(r.Header.Get(contentTypeKey), contentTypeValue) {
        return nil, false, ErrInvalidRequest()
Severity: Major
Found in jsonrpc.go - About 55 mins to fix

    There are no issues that match your filters.

    Category
    Status