Preparing report...

Report for github.com/gokit/actorkit

A+    Excellent!    Found 13 issues across 55 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!


gocyclo96%

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.

    • actorkit/supervisions.go
    • Line 131: warning: cyclomatic complexity 20 of function (*OneForOneSupervisor).Handle() is high (> 15) (gocyclo)
    • Line 41: warning: cyclomatic complexity 20 of function (*AllForOneSupervisor).Handle() is high (> 15) (gocyclo)

golint85%

Golint is a linter for Go source code.

    • actorkit/examples/hello/hello.go
    • Line 9: warning: exported type HelloMessage should have comment or be unexported (golint)
    • Line 13: warning: exported type HelloOp should have comment or be unexported (golint)
    • Line 17: warning: exported method HelloOp.Action should have comment or be unexported (golint)
    • actorkit/events.go
    • Line 16: warning: comment on exported function EventerWith should be of the form "EventerWith ..." (golint)
    • actorkit/log_event.go
    • Line 80: warning: comment on exported type LogEvent should be of the form "LogEvent ..." (with optional leading article) (golint)
    • Line 166: warning: comment on exported method LogEvent.Int64 should be of the form "Int64 ..." (golint)
    • Line 209: warning: comment on exported method LogEvent.WriteWarn should be of the form "WriteWarn ..." (golint)
    • Line 224: warning: comment on exported method LogEvent.WriteDebug should be of the form "WriteDebug ..." (golint)
    • actorkit/examples/eventshop/eventshop.go
    • Line 58: warning: exported type BookCreated should have comment or be unexported (golint)
    • Line 59: warning: exported type BookUpdated should have comment or be unexported (golint)
    • Line 60: warning: exported type BookEdited should have comment or be unexported (golint)
    • Line 61: warning: exported type BookSigned should have comment or be unexported (golint)
    • Line 62: warning: exported type BookUpvoted should have comment or be unexported (golint)
    • Line 64: warning: comment on exported type BookStore should be of the form "BookStore ..." (with optional leading article) (golint)
    • Line 72: warning: exported method BookStore.PostStart should have comment or be unexported (golint)
    • Line 100: warning: exported method BookStore.Action should have comment or be unexported (golint)
    • Line 120: warning: exported method BookEventStore.PreStart should have comment or be unexported (golint)
    • Line 142: warning: exported method BookRatingStore.PreStart should have comment or be unexported (golint)
    • actorkit/mocks/mock_addr.go
    • Line 14: warning: exported type AddrImpl should have comment or be unexported (golint)
    • Line 16: warning: exported method AddrImpl.DeathWatch should have comment or be unexported (golint)
    • Line 20: warning: exported method AddrImpl.AddDiscovery should have comment or be unexported (golint)
    • Line 24: warning: exported method AddrImpl.Forward should have comment or be unexported (golint)
    • Line 28: warning: exported method AddrImpl.SendWithHeader should have comment or be unexported (golint)
    • Line 32: warning: exported method AddrImpl.Send should have comment or be unexported (golint)
    • Line 36: warning: exported method AddrImpl.Future should have comment or be unexported (golint)
    • Line 40: warning: exported method AddrImpl.TimedFuture should have comment or be unexported (golint)
    • Line 44: warning: exported method AddrImpl.State should have comment or be unexported (golint)
    • Line 48: warning: exported method AddrImpl.Actor should have comment or be unexported (golint)
    • Line 52: warning: exported method AddrImpl.Spawn should have comment or be unexported (golint)
    • Line 56: warning: exported method AddrImpl.Service should have comment or be unexported (golint)
    • Line 60: warning: exported method AddrImpl.Namespace should have comment or be unexported (golint)
    • Line 64: warning: exported method AddrImpl.Protocol should have comment or be unexported (golint)
    • Line 68: warning: exported method AddrImpl.ID should have comment or be unexported (golint)
    • Line 72: warning: exported method AddrImpl.ProtocolAddr should have comment or be unexported (golint)
    • Line 76: warning: exported method AddrImpl.Addr should have comment or be unexported (golint)
    • Line 76: warning: receiver name m should be consistent with previous receiver name am for AddrImpl (golint)
    • Line 80: warning: exported method AddrImpl.Watch should have comment or be unexported (golint)
    • Line 84: warning: exported method AddrImpl.GetAddr should have comment or be unexported (golint)
    • Line 88: warning: exported method AddrImpl.GetChild should have comment or be unexported (golint)
    • Line 92: warning: exported method AddrImpl.Children should have comment or be unexported (golint)
    • Line 96: warning: exported method AddrImpl.Escalate should have comment or be unexported (golint)
    • Line 99: warning: exported method AddrImpl.Parent should have comment or be unexported (golint)
    • Line 103: warning: exported method AddrImpl.Ancestor should have comment or be unexported (golint)
    • Line 107: warning: exported method AddrImpl.AddressOf 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!


misspell94%

Misspell Finds commonly misspelled English words