Preparing report...

Report for github.com/valinurovam/garagemq

A+    Excellent!    Found 23 issues across 64 files

Tweet

gofmt92%

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!


gocyclo93%

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.

    • garagemq/amqp/methods_generated.go
    • Line 4468: warning: cyclomatic complexity 134 of function ReadMethod() is high (> 15) (gocyclo)
    • Line 2528: warning: cyclomatic complexity 29 of function (*BasicPropertyList).Read() is high (> 15) (gocyclo)
    • Line 2646: warning: cyclomatic complexity 29 of function (*BasicPropertyList).Write() is high (> 15) (gocyclo)
    • garagemq/amqp/readers_writers.go
    • Line 582: warning: cyclomatic complexity 39 of function writeValue091() is high (> 15) (gocyclo)
    • Line 685: warning: cyclomatic complexity 39 of function writeValueRabbit() is high (> 15) (gocyclo)
    • Line 298: warning: cyclomatic complexity 38 of function readValue091() is high (> 15) (gocyclo)
    • Line 439: warning: cyclomatic complexity 28 of function readValueRabbit() is high (> 15) (gocyclo)

golint78%

Golint is a linter for Go source code.

    • garagemq/storage/storage_badger.go
    • Line 109: warning: comment on exported method Badger.IterateByPrefix should be of the form "IterateByPrefix ..." (golint)
    • Line 134: warning: exported method Badger.KeysByPrefixCount should have comment or be unexported (golint)
    • Line 153: warning: comment on exported method Badger.DeleteByPrefix should be of the form "DeleteByPrefix ..." (golint)
    • Line 204: warning: comment on exported method Badger.IterateByPrefixFrom should be of the form "IterateByPrefixFrom ..." (golint)
    • garagemq/server/server.go
    • Line 24: warning: exported type ServerState should have comment or be unexported (golint)
    • Line 33: warning: exported type SrvMetricsState should have comment or be unexported (golint)
    • Line 361: warning: exported method Server.GetVhost should have comment or be unexported (golint)
    • Line 365: warning: exported method Server.GetVhosts should have comment or be unexported (golint)
    • Line 369: warning: exported method Server.GetConnections should have comment or be unexported (golint)
    • Line 373: warning: exported method Server.GetProtoVersion should have comment or be unexported (golint)
    • Line 377: warning: exported method Server.GetMetrics should have comment or be unexported (golint)
    • Line 381: warning: exported method Server.GetStatus should have comment or be unexported (golint)
    • garagemq/admin/handler_bindings.go
    • Line 9: warning: exported type BindingsHandler should have comment or be unexported (golint)
    • Line 13: warning: exported type BindingsResponse should have comment or be unexported (golint)
    • Line 17: warning: exported type Binding should have comment or be unexported (golint)
    • Line 23: warning: exported function NewBindingsHandler should have comment or be unexported (golint)
    • garagemq/admin/handler_connections.go
    • Line 11: warning: exported type ConnectionsHandler should have comment or be unexported (golint)
    • Line 15: warning: exported type ConnectionsResponse should have comment or be unexported (golint)
    • Line 19: warning: exported type Connection should have comment or be unexported (golint)
    • Line 30: warning: exported function NewConnectionsHandler should have comment or be unexported (golint)
    • garagemq/admin/handler_queues.go
    • Line 11: warning: exported type QueuesHandler should have comment or be unexported (golint)
    • Line 15: warning: exported type QueuesResponse should have comment or be unexported (golint)
    • Line 19: warning: exported type Queue should have comment or be unexported (golint)
    • Line 29: warning: exported function NewQueuesHandler should have comment or be unexported (golint)
    • garagemq/admin/server.go
    • Line 10: warning: exported type AdminServer should have comment or be unexported (golint)
    • Line 14: warning: exported function NewAdminServer should have comment or be unexported (golint)
    • Line 31: warning: exported method AdminServer.Start should have comment or be unexported (golint)
    • garagemq/storage/storage_bunt.go
    • Line 98: warning: comment on exported method BuntDB.IterateByPrefix should be of the form "IterateByPrefix ..." (golint)
    • Line 111: warning: exported method BuntDB.IterateByPrefixFrom should have comment or be unexported (golint)
    • Line 115: warning: exported method BuntDB.DeleteByPrefix should have comment or be unexported (golint)
    • Line 119: warning: exported method BuntDB.KeysByPrefixCount should have comment or be unexported (golint)
    • garagemq/server/channel.go
    • Line 30: warning: exported type ChannelMetricsState should have comment or be unexported (golint)
    • Line 476: warning: exported method Channel.GetQos should have comment or be unexported (golint)
    • garagemq/server/connection.go
    • Line 45: warning: exported type ConnMetricsState should have comment or be unexported (golint)
    • Line 418: warning: exported method Connection.GetVirtualHost should have comment or be unexported (golint)
    • Line 422: warning: exported method Connection.GetRemoteAddr should have comment or be unexported (golint)
    • Line 426: warning: exported method Connection.GetChannels should have comment or be unexported (golint)
    • Line 430: warning: exported method Connection.GetID should have comment or be unexported (golint)
    • Line 434: warning: exported method Connection.GetUsername should have comment or be unexported (golint)
    • garagemq/admin/handler_channels.go
    • Line 12: warning: exported type ChannelsHandler should have comment or be unexported (golint)
    • Line 16: warning: exported type ChannelsResponse should have comment or be unexported (golint)
    • Line 20: warning: exported type Channel should have comment or be unexported (golint)
    • Line 32: warning: exported function NewChannelsHandler should have comment or be unexported (golint)
    • Line 74: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • garagemq/admin/handler_exchanges.go
    • Line 11: warning: exported type ExchangesHandler should have comment or be unexported (golint)
    • Line 15: warning: exported type ExchangesResponse should have comment or be unexported (golint)
    • Line 19: warning: exported type Exchange should have comment or be unexported (golint)
    • Line 30: warning: exported function NewExchangesHandler should have comment or be unexported (golint)
    • garagemq/admin/handler_overview.go
    • Line 10: warning: exported type OverviewHandler should have comment or be unexported (golint)
    • Line 14: warning: exported type OverviewResponse should have comment or be unexported (golint)
    • Line 19: warning: exported type Metric should have comment or be unexported (golint)
    • Line 24: warning: exported function NewOverviewHandler should have comment or be unexported (golint)
    • garagemq/server/vhost.go
    • Line 177: warning: exported method VirtualHost.GetExchanges should have comment or be unexported (golint)
    • Line 383: warning: exported method VirtualHost.GetName should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell98%

Misspell Finds commonly misspelled English words