zephinzer/dev

View on GitHub
pkg/oauth/grant_response.go

Summary

Maintainability
A
40 mins
Test Coverage

Method GrantResponse.LoadFromJSON has 6 return statements (exceeds 4 allowed).
Open

func (r *GrantResponse) LoadFromJSON(responseBody []byte, mapping ...map[GrantResponseKey]string) error {
    responseFieldMap := DefaultGrantResponseMapping
    if len(mapping) > 0 {
        responseFieldMap = mapping[0]
    }
Severity: Major
Found in pkg/oauth/grant_response.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status