Preparing report...

Report for github.com/looplab/eventhorizon

A+    Excellent!    Found 31 issues across 153 files

Tweet

gofmt99%

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!


gocyclo86%

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.


golint90%

Golint is a linter for Go source code.

    • eventhorizon/mocks/mocks.go
    • Line 109: warning: exported method Command.AggregateID should have comment or be unexported (golint)
    • Line 110: warning: exported method Command.AggregateType should have comment or be unexported (golint)
    • Line 111: warning: exported method Command.CommandType should have comment or be unexported (golint)
    • Line 121: warning: exported method CommandOther.AggregateID should have comment or be unexported (golint)
    • Line 122: warning: exported method CommandOther.AggregateType should have comment or be unexported (golint)
    • Line 123: warning: exported method CommandOther.CommandType should have comment or be unexported (golint)
    • Line 133: warning: exported method CommandOther2.AggregateID should have comment or be unexported (golint)
    • Line 134: warning: exported method CommandOther2.AggregateType should have comment or be unexported (golint)
    • Line 135: warning: exported method CommandOther2.CommandType should have comment or be unexported (golint)
    • eventhorizon/examples/todomvc/backend/domains/todo/commands.go
    • Line 69: warning: exported method Create.AggregateType should have comment or be unexported (golint)
    • Line 70: warning: exported method Create.AggregateID should have comment or be unexported (golint)
    • Line 71: warning: exported method Create.CommandType should have comment or be unexported (golint)
    • Line 78: warning: exported method Delete.AggregateType should have comment or be unexported (golint)
    • Line 79: warning: exported method Delete.AggregateID should have comment or be unexported (golint)
    • Line 80: warning: exported method Delete.CommandType should have comment or be unexported (golint)
    • Line 88: warning: exported method AddItem.AggregateType should have comment or be unexported (golint)
    • Line 89: warning: exported method AddItem.AggregateID should have comment or be unexported (golint)
    • Line 90: warning: exported method AddItem.CommandType should have comment or be unexported (golint)
    • Line 98: warning: exported method RemoveItem.AggregateType should have comment or be unexported (golint)
    • Line 99: warning: exported method RemoveItem.AggregateID should have comment or be unexported (golint)
    • Line 100: warning: exported method RemoveItem.CommandType should have comment or be unexported (golint)
    • Line 107: warning: exported method RemoveCompletedItems.AggregateType should have comment or be unexported (golint)
    • Line 108: warning: exported method RemoveCompletedItems.AggregateID should have comment or be unexported (golint)
    • Line 109: warning: exported method RemoveCompletedItems.CommandType should have comment or be unexported (golint)
    • Line 118: warning: exported method SetItemDescription.AggregateType should have comment or be unexported (golint)
    • Line 119: warning: exported method SetItemDescription.AggregateID should have comment or be unexported (golint)
    • Line 120: warning: exported method SetItemDescription.CommandType should have comment or be unexported (golint)
    • Line 129: warning: exported method CheckItem.AggregateType should have comment or be unexported (golint)
    • Line 130: warning: exported method CheckItem.AggregateID should have comment or be unexported (golint)
    • Line 131: warning: exported method CheckItem.CommandType should have comment or be unexported (golint)
    • Line 139: warning: exported method CheckAllItems.AggregateType should have comment or be unexported (golint)
    • Line 140: warning: exported method CheckAllItems.AggregateID should have comment or be unexported (golint)
    • Line 141: warning: exported method CheckAllItems.CommandType should have comment or be unexported (golint)
    • eventhorizon/examples/guestlist/domains/guestlist/commands.go
    • Line 31: warning: exported const CreateInviteCommand should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported method CreateInvite.AggregateID should have comment or be unexported (golint)
    • Line 48: warning: exported method CreateInvite.AggregateType should have comment or be unexported (golint)
    • Line 49: warning: exported method CreateInvite.CommandType should have comment or be unexported (golint)
    • Line 56: warning: exported method AcceptInvite.AggregateID should have comment or be unexported (golint)
    • Line 57: warning: exported method AcceptInvite.AggregateType should have comment or be unexported (golint)
    • Line 58: warning: exported method AcceptInvite.CommandType should have comment or be unexported (golint)
    • Line 65: warning: exported method DeclineInvite.AggregateID should have comment or be unexported (golint)
    • Line 66: warning: exported method DeclineInvite.AggregateType should have comment or be unexported (golint)
    • Line 67: warning: exported method DeclineInvite.CommandType should have comment or be unexported (golint)
    • Line 74: warning: exported method ConfirmInvite.AggregateID should have comment or be unexported (golint)
    • Line 75: warning: exported method ConfirmInvite.AggregateType should have comment or be unexported (golint)
    • Line 76: warning: exported method ConfirmInvite.CommandType should have comment or be unexported (golint)
    • Line 83: warning: exported method DenyInvite.AggregateID should have comment or be unexported (golint)
    • Line 84: warning: exported method DenyInvite.AggregateType should have comment or be unexported (golint)
    • Line 85: warning: exported method DenyInvite.CommandType should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words