Preparing report...

Report for github.com/theoden9014/evbundler

A+    Excellent!    Found 10 issues across 16 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!


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!


golint37%

Golint is a linter for Go source code.

    • evbundler/metrics.go
    • Line 10: warning: exported function NewMetrics should have comment or be unexported (golint)
    • Line 89: warning: exported type LatencyMetrics should have comment or be unexported (golint)
    • Line 101: warning: exported method LatencyMetrics.Add should have comment or be unexported (golint)
    • Line 109: warning: exported method LatencyMetrics.Quantile should have comment or be unexported (golint)
    • Line 120: warning: exported method LatencyMetrics.MarshalJSON should have comment or be unexported (golint)
    • evbundler/event/icmpv4.go
    • Line 14: warning: comment on exported type ICMPv4Event should be of the form "ICMPv4Event ..." (with optional leading article) (golint)
    • Line 21: warning: exported function NewICMPv4Event should have comment or be unexported (golint)
    • Line 25: warning: exported method ICMPv4Event.Name should have comment or be unexported (golint)
    • Line 29: warning: exported method ICMPv4Event.Fire should have comment or be unexported (golint)
    • evbundler/evbundler.go
    • Line 8: warning: exported type Event should have comment or be unexported (golint)
    • Line 13: warning: exported type Producer should have comment or be unexported (golint)
    • Line 17: warning: exported type Dispatcher should have comment or be unexported (golint)
    • Line 21: warning: exported type WorkerPool should have comment or be unexported (golint)
    • Line 27: warning: exported type Metrics should have comment or be unexported (golint)
    • evbundler/result.go
    • Line 5: warning: exported type Result should have comment or be unexported (golint)
    • Line 13: warning: exported method Result.End should have comment or be unexported (golint)
    • Line 15: warning: exported type Results should have comment or be unexported (golint)
    • Line 17: warning: exported method Results.Add should have comment or be unexported (golint)
    • evbundler/stats.go
    • Line 14: warning: exported var KeyEventErr should have comment or be unexported (golint)
    • Line 23: warning: comment on exported var KeyWorkerState should be of the form "KeyWorkerState ..." (golint)
    • evbundler/worker.go
    • Line 10: warning: exported type Worker should have comment or be unexported (golint)
    • Line 16: warning: exported type WorkerFunc should have comment or be unexported (golint)
    • Line 49: warning: exported type WorkerState should have comment or be unexported (golint)
    • Line 52: warning: exported const StateDead should have comment (or a comment on this block) 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!


misspell93%

Misspell Finds commonly misspelled English words