Preparing report...

Report for github.com/chop-dbhi/eda

A+    Excellent!    Found 6 issues across 12 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!


gocyclo91%

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.

    • eda/stan.go
    • Line 122: warning: cyclomatic complexity 16 of function (*stanConn).Subscribe() is high (> 15) (gocyclo)

golint50%

Golint is a linter for Go source code.

    • eda/examples/aggregated-state/consumer/main.go
    • Line 17: warning: exported type Store should have comment or be unexported (golint)
    • Line 24: warning: exported method Store.AddTestRecord should have comment or be unexported (golint)
    • Line 61: warning: exported method Store.AddVisit should have comment or be unexported (golint)
    • Line 83: warning: exported type Patient should have comment or be unexported (golint)
    • Line 93: warning: exported type Test should have comment or be unexported (golint)
    • Line 100: warning: exported type PatientTestRecordedEvent should have comment or be unexported (golint)
    • Line 106: warning: exported type PatientLastVisitedEvent should have comment or be unexported (golint)
    • eda/conn.go
    • Line 48: warning: comment on exported method Event.Is should be of the form "Is ..." (golint)
    • Line 74: warning: exported type Subscription should have comment or be unexported (golint)
    • Line 82: warning: exported type SubscriptionOptions should have comment or be unexported (golint)
    • eda/doc.go
    • Line 1: warning: package comment should be of the form "Package eda ..." (golint)
    • eda/stan.go
    • Line 267: warning: exported type ConnectOptions should have comment or be unexported (golint)
    • Line 271: warning: exported method ConnectOptions.Apply should have comment or be unexported (golint)
    • Line 277: warning: exported type ConnectOption should have comment or be unexported (golint)
    • Line 279: warning: exported function WithLogger 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!