Preparing report...

Report for github.com/steffen25/mobilepay-go

(v0.0.3)

A+    Excellent!    Found 7 issues across 14 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint50%

Golint is a linter for Go source code.

    • client.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 64: warning: exported type Response should have comment or be unexported (golint)
    • Line 79: warning: exported type ConflictError should have comment or be unexported (golint)
    • Line 94: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • Line 102: warning: exported function New should have comment or be unexported (golint)
    • Line 138: warning: exported method Client.NewRequest should have comment or be unexported (golint)
    • Line 181: warning: exported function DoRequestWithClient should have comment or be unexported (golint)
    • Line 221: warning: exported method Client.Do should have comment or be unexported (golint)
    • Line 280: warning: exported function CheckResponse should have comment or be unexported (golint)
    • errors.go
    • Line 9: warning: exported var ErrMissingVerifierProperties should have comment or be unexported (golint)
    • log.go
    • Line 35: warning: exported var WarnLeveledLogger should have comment or be unexported (golint)
    • Line 39: warning: exported var InfoLeveledLogger should have comment or be unexported (golint)
    • Line 43: warning: exported var DebugLeveledLogger should have comment or be unexported (golint)
    • payment.go
    • Line 12: warning: exported type ListOptions should have comment or be unexported (golint)
    • Line 17: warning: exported type RefundsListOptions should have comment or be unexported (golint)
    • Line 25: warning: exported type PaymentService should have comment or be unexported (golint)
    • Line 34: warning: exported type PaymentServiceOp should have comment or be unexported (golint)
    • Line 41: warning: exported type Payment should have comment or be unexported (golint)
    • Line 56: warning: exported type PaymentsRoot should have comment or be unexported (golint)
    • Line 62: warning: exported type CreatePaymentResponse should have comment or be unexported (golint)
    • Line 67: warning: exported type PaymentParams should have comment or be unexported (golint)
    • Line 76: warning: exported method PaymentServiceOp.Get should have comment or be unexported (golint)
    • Line 99: warning: exported method PaymentServiceOp.Find should have comment or be unexported (golint)
    • Line 122: warning: exported method PaymentServiceOp.Create should have comment or be unexported (golint)
    • Line 145: warning: exported method PaymentServiceOp.Cancel should have comment or be unexported (golint)
    • Line 167: warning: exported method PaymentServiceOp.Capture should have comment or be unexported (golint)
    • refund.go
    • Line 10: warning: exported type RefundService should have comment or be unexported (golint)
    • Line 15: warning: exported type RefundParams should have comment or be unexported (golint)
    • Line 23: warning: exported type Refund should have comment or be unexported (golint)
    • Line 33: warning: exported type RefundsRoot should have comment or be unexported (golint)
    • Line 39: warning: exported type RefundServiceOp should have comment or be unexported (golint)
    • Line 45: warning: exported method RefundServiceOp.Create should have comment or be unexported (golint)
    • Line 68: warning: exported method RefundServiceOp.List should have comment or be unexported (golint)
    • verifier.go
    • Line 15: warning: exported type WebhooksVerifier should have comment or be unexported (golint)
    • Line 48: warning: exported method WebhooksVerifier.Ensure should have comment or be unexported (golint)
    • webhook.go
    • Line 13: warning: exported type GetWebhookRequest should have comment or be unexported (golint)
    • Line 16: warning: exported type WebhookEventEnum should have comment or be unexported (golint)
    • Line 17: warning: exported type WebhookEvent should have comment or be unexported (golint)
    • Line 20: warning: exported const Unknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported method WebhookEventEnum.Name should have comment or be unexported (golint)
    • Line 30: warning: exported type WebhookService should have comment or be unexported (golint)
    • Line 38: warning: exported type WebhookServiceOp should have comment or be unexported (golint)
    • Line 44: warning: exported type GetWebhookResponse should have comment or be unexported (golint)
    • Line 62: warning: exported type Webhook should have comment or be unexported (golint)
    • Line 69: warning: comment on exported type WebhooksRoot should be of the form "WebhooksRoot ..." (with optional leading article) (golint)
    • Line 74: warning: comment on exported method WebhookServiceOp.Get should be of the form "Get ..." (golint)
    • Line 114: warning: comment on exported method WebhookServiceOp.Find should be of the form "Find ..." (golint)
    • Line 132: warning: exported method WebhookServiceOp.Update should have comment or be unexported (golint)
    • Line 149: warning: exported method WebhookServiceOp.Delete should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!