brokeyourbike/providusbank-api-client-go

View on GitHub
webhook/webhook.go

Summary

Maintainability
A
1 hr
Test Coverage
B
85%

Method RequestShort.UnmarshalJSON has 52 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (r *RequestShort) UnmarshalJSON(data []byte) error {
    var requestShort struct {
        SessionID           string            `json:"sessionId"`
        SettlementID        string            `json:"settlementId"`
        ChannelID           string            `json:"channelId"`
Severity: Minor
Found in webhook/webhook.go - About 1 hr to fix

    Method RequestShort.UnmarshalJSON has 6 return statements (exceeds 4 allowed).
    Open

    func (r *RequestShort) UnmarshalJSON(data []byte) error {
        var requestShort struct {
            SessionID           string            `json:"sessionId"`
            SettlementID        string            `json:"settlementId"`
            ChannelID           string            `json:"channelId"`
    Severity: Major
    Found in webhook/webhook.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status