Preparing report...

Report for github.com/asim/mq

A+    Excellent!    Found 14 issues across 24 files

Tweet

gofmt95%

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


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!


gocyclo95%

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.

    • mq/main.go
    • Line 51: warning: cyclomatic complexity 21 of function init() is high (> 15) (gocyclo)

golint45%

Golint is a linter for Go source code.

    • mq/go/client/client.go
    • Line 23: warning: comment on exported var Default should be of the form "Default ..." (golint)
    • Line 25: warning: comment on exported var Servers should be of the form "Servers ..." (golint)
    • Line 27: warning: comment on exported var Retries should be of the form "Retries ..." (golint)
    • mq/broker/options.go
    • Line 7: warning: exported type Options should have comment or be unexported (golint)
    • Line 13: warning: exported type Option should have comment or be unexported (golint)
    • Line 15: warning: exported function Client should have comment or be unexported (golint)
    • Line 21: warning: exported function Proxy should have comment or be unexported (golint)
    • Line 27: warning: exported function Persist should have comment or be unexported (golint)
    • mq/broker/broker.go
    • Line 14: warning: exported var Default should have comment or be unexported (golint)
    • Line 243: warning: exported function Publish should have comment or be unexported (golint)
    • Line 247: warning: exported function Subscribe should have comment or be unexported (golint)
    • Line 251: warning: exported function Unsubscribe should have comment or be unexported (golint)
    • Line 255: warning: exported function New should have comment or be unexported (golint)
    • mq/go/client/options.go
    • Line 3: warning: exported type Options should have comment or be unexported (golint)
    • Line 14: warning: exported type Option should have comment or be unexported (golint)
    • mq/server/options.go
    • Line 3: warning: exported type Options should have comment or be unexported (golint)
    • Line 8: warning: exported type TLS should have comment or be unexported (golint)
    • Line 13: warning: exported type Option should have comment or be unexported (golint)
    • Line 15: warning: exported function WithAddress should have comment or be unexported (golint)
    • Line 21: warning: exported function WithTLS should have comment or be unexported (golint)
    • mq/go/client/selector/selector.go
    • Line 21: warning: exported method All.Get should have comment or be unexported (golint)
    • Line 32: warning: exported method All.Set should have comment or be unexported (golint)
    • Line 39: warning: exported method Shard.Get should have comment or be unexported (golint)
    • Line 57: warning: exported method Shard.Set 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!