Preparing report...

Report for github.com/xyctruth/final

(v0.0.0-20220118102700-8eba06058266)

A+    Excellent!    Found 11 issues across 21 files

Tweet

gofmt100%

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

No problems detected. Good job!


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.


golint52%

Golint is a linter for Go source code.

    • message/message_policy.go
    • Line 15: warning: exported function DefaultMessagePolicy should have comment or be unexported (golint)
    • Line 24: warning: exported type PolicyOption should have comment or be unexported (golint)
    • mq/amqp/marshaler.go
    • Line 11: warning: exported function NewMessageFromDelivery should have comment or be unexported (golint)
    • Line 22: warning: exported function NewPublishingFromMessage should have comment or be unexported (golint)
    • mq/amqp/provider.go
    • Line 15: warning: exported type Provider should have comment or be unexported (golint)
    • Line 41: warning: exported function NewProvider should have comment or be unexported (golint)
    • Line 51: warning: exported method Provider.Init should have comment or be unexported (golint)
    • Line 116: warning: exported method Provider.Publish should have comment or be unexported (golint)
    • Line 136: warning: exported method Provider.NotifyConfirm should have comment or be unexported (golint)
    • Line 140: warning: exported method Provider.Subscribe should have comment or be unexported (golint)
    • Line 331: warning: exported method Provider.Exit should have comment or be unexported (golint)
    • context.go
    • Line 8: warning: exported type Context should have comment or be unexported (golint)
    • Line 19: warning: exported method Context.Next should have comment or be unexported (golint)
    • Line 31: warning: exported method Context.Reset should have comment or be unexported (golint)
    • options.go
    • Line 5: warning: exported type Options should have comment or be unexported (golint)
    • outbox.go
    • Line 221: warning: exported type Record should have comment or be unexported (golint)
    • mq/provider.go
    • Line 9: warning: exported type IProvider should have comment or be unexported (golint)
    • final.go
    • Line 17: warning: exported type Bus should have comment or be unexported (golint)
    • Line 40: warning: exported type TxBus should have comment or be unexported (golint)
    • Line 102: warning: exported method Bus.Start should have comment or be unexported (golint)
    • Line 141: warning: exported method Bus.Shutdown should have comment or be unexported (golint)
    • Line 151: warning: exported method Bus.Subscribe should have comment or be unexported (golint)
    • Line 164: warning: exported method Bus.Publish should have comment or be unexported (golint)
    • Line 184: warning: exported method Bus.WithTx should have comment or be unexported (golint)
    • Line 193: warning: exported method Bus.Transaction should have comment or be unexported (golint)
    • Line 209: warning: exported method TxBus.Publish should have comment or be unexported (golint)
    • Line 224: warning: exported method TxBus.Commit should have comment or be unexported (golint)
    • Line 233: warning: exported method TxBus.RollBack should have comment or be unexported (golint)
    • router.go
    • Line 12: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 13: warning: exported type HandlerMiddleware should have comment or be unexported (golint)
    • message/message.go
    • Line 10: warning: exported type Message should have comment or be unexported (golint)
    • Line 25: warning: exported type Header should have comment or be unexported (golint)
    • Line 28: warning: exported function NewMessage should have comment or be unexported (golint)
    • Line 50: warning: exported method Message.Reset should have comment or be unexported (golint)
    • Line 66: warning: exported method Message.Ack should have comment or be unexported (golint)
    • Line 72: warning: exported method Message.Reject should have comment or be unexported (golint)
    • Line 78: warning: exported method Message.Acked should have comment or be unexported (golint)
    • Line 82: warning: exported method Message.Rejected should have comment or be unexported (golint)
    • Line 86: warning: exported method Header.Get should have comment or be unexported (golint)
    • Line 93: warning: exported method Header.Set should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!