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.
Golint is a linter for Go source code.
-
go-lmstfy-client/client/client.go
- Line 18: warning: exported type Job should have comment or be unexported (golint)
- Line 29: warning: exported type LmstfyClient should have comment or be unexported (golint)
- Line 52: warning: exported function NewLmstfyClient should have comment or be unexported (golint)
- Line 96: warning: exported method LmstfyClient.ConfigRetry should have comment or be unexported (golint)
- Line 406: warning: comment on exported method LmstfyClient.BatchConsumeWithFreezeTries should be of the form "BatchConsumeWithFreezeTries ..." (golint)
- Line 516: warning: comment on exported method LmstfyClient.ConsumeFromQueues should be of the form "ConsumeFromQueues ..." (golint)
- Line 524: warning: exported method LmstfyClient.ConsumeFromQueuesWithFreezeTries should have comment or be unexported (golint)
- Line 599: warning: comment on exported method LmstfyClient.Ack should be of the form "Ack ..." (golint)
- Line 626: warning: comment on exported method LmstfyClient.QueueSize should be of the form "QueueSize ..." (golint)
- Line 674: warning: comment on exported method LmstfyClient.PeekQueue should be of the form "PeekQueue ..." (golint)
- Line 724: warning: comment on exported method LmstfyClient.PeekJob should be of the form "PeekJob ..." (golint)
- Line 774: warning: comment on exported method LmstfyClient.PeekDeadLetter should be of the form "PeekDeadLetter ..." (golint)
- Line 823: warning: exported method LmstfyClient.RespawnDeadLetter should have comment or be unexported (golint)
- Line 883: warning: exported method LmstfyClient.DeleteDeadLetter should have comment or be unexported (golint)
-
go-lmstfy-client/client/errors.go
- Line 5: warning: comment on exported type ErrType should be of the form "ErrType ..." (with optional leading article) (golint)
- Line 9: warning: exported const RequestErr should have comment (or a comment on this block) or be unexported (golint)
- Line 23: warning: comment on exported type APIError should be of the form "APIError ..." (with optional leading article) (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!