Preparing report...

Report for github.com/lcd1232/paddle

A+    Excellent!    Found 15 issues across 29 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!


golint48%

Golint is a linter for Go source code.

    • paddle/webhook_transfer_paid.go
    • Line 10: warning: exported method Client.ParseTransferPaidWebhook should have comment or be unexported (golint)
    • Line 31: warning: exported type TransferPaid should have comment or be unexported (golint)
    • paddle/webhook_transfer_created.go
    • Line 10: warning: exported method Client.ParseTransferCreatedWebhook should have comment or be unexported (golint)
    • Line 31: warning: exported type TransferCreated should have comment or be unexported (golint)
    • paddle/webhook_invoice_paid.go
    • Line 10: warning: exported method Client.ParseInvoicePaidWebhook should have comment or be unexported (golint)
    • Line 63: warning: exported type InvoicePaid should have comment or be unexported (golint)
    • paddle/webhook_invoice_sent.go
    • Line 10: warning: exported method Client.ParseInvoiceSentWebhook should have comment or be unexported (golint)
    • Line 58: warning: exported type InvoiceSent should have comment or be unexported (golint)
    • paddle/webhooks.go
    • Line 70: warning: exported function GetAlertName should have comment or be unexported (golint)
    • Line 102: warning: exported type Client should have comment or be unexported (golint)
    • Line 107: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 118: warning: exported method Client.SetVerification should have comment or be unexported (golint)
    • paddle/structs.go
    • Line 3: warning: exported type Status should have comment or be unexported (golint)
    • Line 6: warning: exported const StatusActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Alert should have comment or be unexported (golint)
    • Line 19: warning: exported const AlertSubscriptionCreated should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type PausedReason should have comment or be unexported (golint)
    • Line 49: warning: exported const PausedReasonDelinquent should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: exported const PaymentMethodCard should have comment (or a comment on this block) or be unexported (golint)
    • Line 72: warning: exported const RefundTypeFull should have comment (or a comment on this block) or be unexported (golint)
    • paddle/webhook_invoice_overdue.go
    • Line 10: warning: exported method Client.ParseInvoiceOverdueWebhook should have comment or be unexported (golint)
    • Line 58: warning: exported type InvoiceOverdue should have comment or be unexported (golint)
    • paddle/webhook_payment_succeeded.go
    • Line 10: warning: exported method Client.ParsePaymentSucceededWebhook should have comment or be unexported (golint)
    • Line 52: warning: exported type PaymentSucceeded 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!