Preparing report...

Report for github.com/wework/grabbit

A+    Excellent!    Found 17 issues across 56 files

Tweet

gofmt96%

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!


golint71%

Golint is a linter for Go source code.

    • grabbit/tests/saga_reply_to_creator.go
    • Line 5: warning: exported type ReplyToInitiatorSaga1 should have comment or be unexported (golint)
    • Line 9: warning: exported method ReplyToInitiatorSaga1.StartedBy should have comment or be unexported (golint)
    • Line 14: warning: exported method ReplyToInitiatorSaga1.IsComplete should have comment or be unexported (golint)
    • Line 18: warning: exported method ReplyToInitiatorSaga1.New should have comment or be unexported (golint)
    • Line 22: warning: exported method ReplyToInitiatorSaga1.RegisterAllHandlers should have comment or be unexported (golint)
    • Line 27: warning: exported method ReplyToInitiatorSaga1.HandleCommand1 should have comment or be unexported (golint)
    • Line 33: warning: exported method ReplyToInitiatorSaga1.HandleRepl2 should have comment or be unexported (golint)
    • Line 39: warning: exported type ReplyToCreatorSaga2 should have comment or be unexported (golint)
    • Line 42: warning: exported method ReplyToCreatorSaga2.StartedBy should have comment or be unexported (golint)
    • Line 47: warning: exported method ReplyToCreatorSaga2.IsComplete should have comment or be unexported (golint)
    • Line 51: warning: exported method ReplyToCreatorSaga2.New should have comment or be unexported (golint)
    • Line 55: warning: exported method ReplyToCreatorSaga2.RegisterAllHandlers should have comment or be unexported (golint)
    • Line 60: warning: exported method ReplyToCreatorSaga2.HandleCommand2 should have comment or be unexported (golint)
    • Line 66: warning: exported method ReplyToCreatorSaga2.HandleCommand3 should have comment or be unexported (golint)
    • Line 72: warning: exported type ReplyToInitiatorSaga3 should have comment or be unexported (golint)
    • Line 75: warning: exported method ReplyToInitiatorSaga3.StartedBy should have comment or be unexported (golint)
    • Line 80: warning: exported method ReplyToInitiatorSaga3.IsComplete should have comment or be unexported (golint)
    • Line 84: warning: exported method ReplyToInitiatorSaga3.New should have comment or be unexported (golint)
    • Line 88: warning: exported method ReplyToInitiatorSaga3.RegisterAllHandlers should have comment or be unexported (golint)
    • Line 93: warning: exported method ReplyToInitiatorSaga3.HandleCommand1 should have comment or be unexported (golint)
    • Line 99: warning: exported method ReplyToInitiatorSaga3.HandleCommand2 should have comment or be unexported (golint)
    • grabbit/examples/vacation_app/saga/booking_saga.go
    • Line 10: warning: exported type BookingSaga should have comment or be unexported (golint)
    • Line 17: warning: exported method BookingSaga.StartedBy should have comment or be unexported (golint)
    • Line 23: warning: exported method BookingSaga.RegisterAllHandlers should have comment or be unexported (golint)
    • Line 30: warning: exported method BookingSaga.IsComplete should have comment or be unexported (golint)
    • Line 34: warning: exported method BookingSaga.New should have comment or be unexported (golint)
    • Line 38: warning: exported method BookingSaga.HandleBookingCommand should have comment or be unexported (golint)
    • Line 58: warning: exported method BookingSaga.HandleBookFlightsRsp should have comment or be unexported (golint)
    • Line 67: warning: exported method BookingSaga.HandleBookHotelRsp should have comment or be unexported (golint)
    • Line 89: warning: exported method BookingSaga.HandleCancelFlightsRsp should have comment or be unexported (golint)
    • Line 97: warning: context.Context should be the first parameter of a function (golint)
    • grabbit/examples/vacation_app/messages/allinone.go
    • Line 5: warning: exported type BookVacationCmd should have comment or be unexported (golint)
    • Line 9: warning: exported method BookVacationCmd.SchemaName should have comment or be unexported (golint)
    • Line 13: warning: exported type BookVacationRsp should have comment or be unexported (golint)
    • Line 17: warning: exported method BookVacationRsp.SchemaName should have comment or be unexported (golint)
    • Line 23: warning: exported type BookFlightsCmd should have comment or be unexported (golint)
    • Line 27: warning: exported method BookFlightsCmd.SchemaName should have comment or be unexported (golint)
    • Line 31: warning: exported type BookFlightsRsp should have comment or be unexported (golint)
    • Line 35: warning: exported method BookFlightsRsp.SchemaName should have comment or be unexported (golint)
    • Line 39: warning: exported type CancelFlightsCmd should have comment or be unexported (golint)
    • Line 43: warning: exported method CancelFlightsCmd.SchemaName should have comment or be unexported (golint)
    • Line 47: warning: exported type CancelFlightsRsp should have comment or be unexported (golint)
    • Line 51: warning: exported method CancelFlightsRsp.SchemaName should have comment or be unexported (golint)
    • Line 57: warning: exported type BookHotelCmd should have comment or be unexported (golint)
    • Line 61: warning: exported method BookHotelCmd.SchemaName should have comment or be unexported (golint)
    • Line 65: warning: exported type BookHotelRsp should have comment or be unexported (golint)
    • Line 69: warning: exported method BookHotelRsp.SchemaName should have comment or be unexported (golint)
    • Line 73: warning: exported type BookingComplete should have comment or be unexported (golint)
    • Line 78: warning: exported method BookingComplete.SchemaName should have comment or be unexported (golint)
    • grabbit/gbus/metrics/outbox_metrics.go
    • Line 8: warning: exported var OutboxSize should have comment or be unexported (golint)
    • Line 15: warning: exported var PendingMessages should have comment or be unexported (golint)
    • Line 22: warning: exported var SentMessages should have comment or be unexported (golint)
    • grabbit/gbus/messages.go
    • Line 61: warning: exported method BusMessage.GetAMQPHeaders should have comment or be unexported (golint)
    • Line 102: warning: exported method BusMessage.SetIdempotencyKey should have comment or be unexported (golint)
    • Line 125: warning: exported function GetDeliveryLogEntries should have comment or be unexported (golint)
    • grabbit/gbus/policy/generic.go
    • Line 5: warning: exported type Generic should have comment or be unexported (golint)
    • Line 9: warning: exported method Generic.Apply 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!