Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
go-checkout/payment/client.go
- Line 24: warning: exported type SourceType should have comment or be unexported (golint)
- Line 26: warning: exported type SourceScheme should have comment or be unexported (golint)
- Line 28: warning: exported type CardType should have comment or be unexported (golint)
- Line 30: warning: exported type Status should have comment or be unexported (golint)
- Line 32: warning: exported type Source should have comment or be unexported (golint)
- Line 53: warning: exported type BillingAddress should have comment or be unexported (golint)
- Line 62: warning: exported type Customer should have comment or be unexported (golint)
- Line 68: warning: exported type Risk should have comment or be unexported (golint)
- Line 72: warning: exported type Payment should have comment or be unexported (golint)
- Line 91: warning: exported type CreationSource should have comment or be unexported (golint)
- Line 101: warning: exported type CreateParams should have comment or be unexported (golint)
- Line 111: warning: exported type VoidParams should have comment or be unexported (golint)
- Line 116: warning: exported type RefundParams should have comment or be unexported (golint)
- Line 122: warning: exported type CaptureParams should have comment or be unexported (golint)
- Line 128: warning: exported type Error should have comment or be unexported (golint)
- Line 138: warning: exported const StatusAuthorized should have comment (or a comment on this block) or be unexported (golint)
- Line 164: warning: exported var ErrPaymentNotFound should have comment or be unexported (golint)
- Line 170: warning: exported function NewClient should have comment or be unexported (golint)
-
go-checkout/client.go
- Line 33: warning: exported const EndpointLive should have comment (or a comment on this block) or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!