Preparing report...

Report for github.com/beanworks/rex

A+    Excellent!    Found 6 issues across 16 files

Tweet

gofmt93%

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!


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!


golint68%

Golint is a linter for Go source code.

    • rex/cmd/rex.go
    • Line 13: warning: exported var Version should have comment or be unexported (golint)
    • Line 14: warning: exported var CfgFile should have comment or be unexported (golint)
    • Line 15: warning: exported var Config should have comment or be unexported (golint)
    • Line 17: warning: exported var RexCmd should have comment or be unexported (golint)
    • Line 34: warning: exported function Execute should have comment or be unexported (golint)
    • rex/rabbit/amqp.go
    • Line 5: warning: exported type AmqpCloser should have comment or be unexported (golint)
    • Line 9: warning: exported type AmqpConnection should have comment or be unexported (golint)
    • Line 13: warning: exported type AmqpConnectionCloser should have comment or be unexported (golint)
    • Line 18: warning: exported type AmqpChannel should have comment or be unexported (golint)
    • Line 27: warning: exported type AmqpChannelCloser should have comment or be unexported (golint)
    • Line 32: warning: exported type AmqpConsumer should have comment or be unexported (golint)
    • Line 40: warning: exported type Amqp should have comment or be unexported (golint)
    • Line 45: warning: exported method Amqp.Dial should have comment or be unexported (golint)
    • Line 54: warning: exported method Amqp.Channel should have comment or be unexported (golint)
    • Line 63: warning: exported method Amqp.Qos should have comment or be unexported (golint)
    • Line 67: warning: exported method Amqp.QueueDeclare should have comment or be unexported (golint)
    • Line 71: warning: exported method Amqp.ExchangeDeclare should have comment or be unexported (golint)
    • Line 75: warning: exported method Amqp.QueueBind should have comment or be unexported (golint)
    • Line 79: warning: exported method Amqp.NotifyClose should have comment or be unexported (golint)
    • Line 83: warning: exported method Amqp.Close should have comment or be unexported (golint)
    • Line 93: warning: exported method Amqp.Consume should have comment or be unexported (golint)
    • rex/rabbit/rex.go
    • Line 14: warning: exported const DefaultPrefetchCount should have comment (or a comment on this block) or be unexported (golint)
    • Line 128: warning: exported type NotifyCloseCallback should have comment or be unexported (golint)
    • Line 180: warning: exported type MessageForwarder should have comment or be unexported (golint)
    • rex/rabbit/script.go
    • Line 9: warning: exported type ScriptCaller should have comment or be unexported (golint)
    • Line 13: warning: exported type Script should have comment or be unexported (golint)
    • Line 17: warning: exported method Script.ExecWith 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!


misspell93%

Misspell Finds commonly misspelled English words