Preparing report...

Report for github.com/Bo0mer/mozzle

A+    Excellent!    Found 8 issues across 11 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!


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign27%

IneffAssign detects ineffectual assignments in Go code.

    • mozzle/containermetrics.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/cloudfoundry/sonde-go/events (invalid package name: "") (ineffassign)
    • Line 16: warning: m.GetInstanceIndex undefined (type containerMetrics has no field or method GetInstanceIndex) (ineffassign)
    • Line 20: warning: m.GetMemoryBytes undefined (type containerMetrics has no field or method GetMemoryBytes) (ineffassign)
    • Line 26: warning: m.GetMemoryBytesQuota undefined (type containerMetrics has no field or method GetMemoryBytesQuota) (ineffassign)
    • Line 32: warning: m.GetMemoryBytes undefined (type containerMetrics has no field or method GetMemoryBytes) (ineffassign)
    • Line 32: warning: m.GetMemoryBytesQuota undefined (type containerMetrics has no field or method GetMemoryBytesQuota) (ineffassign)
    • Line 39: warning: m.GetDiskBytes undefined (type containerMetrics has no field or method GetDiskBytes) (ineffassign)
    • Line 45: warning: m.GetDiskBytesQuota undefined (type containerMetrics has no field or method GetDiskBytesQuota) (ineffassign)
    • Line 51: warning: m.GetDiskBytes undefined (type containerMetrics has no field or method GetDiskBytes) (ineffassign)
    • Line 51: warning: m.GetDiskBytesQuota undefined (type containerMetrics has no field or method GetDiskBytesQuota) (ineffassign)
    • Line 58: warning: m.GetCpuPercentage undefined (type containerMetrics has no field or method GetCpuPercentage) (ineffassign)
    • mozzle/appmetrics.go
    • Line 13: warning: m.RunningInstances undefined (type applicationMetrics has no field or method RunningInstances) (ineffassign)
    • Line 13: warning: m.Instances undefined (type applicationMetrics has no field or method Instances) (ineffassign)
    • Line 15: warning: m.RunningInstances undefined (type applicationMetrics has no field or method RunningInstances) (ineffassign)
    • Line 22: warning: m.RunningInstances undefined (type applicationMetrics has no field or method RunningInstances) (ineffassign)
    • Line 29: warning: m.Instances undefined (type applicationMetrics has no field or method Instances) (ineffassign)
    • mozzle/httpmetrics.go
    • Line 16: warning: r.GetInstanceIndex undefined (type httpMetrics has no field or method GetInstanceIndex) (ineffassign)
    • Line 17: warning: r.GetMethod undefined (type httpMetrics has no field or method GetMethod) (ineffassign)
    • Line 18: warning: r.GetRequestId undefined (type httpMetrics has no field or method GetRequestId) (ineffassign)
    • Line 19: warning: r.GetStatusCode undefined (type httpMetrics has no field or method GetStatusCode) (ineffassign)
    • Line 21: warning: r.GetPeerType undefined (type httpMetrics has no field or method GetPeerType) (ineffassign)
    • Line 30: warning: r.GetStopTimestamp undefined (type httpMetrics has no field or method GetStopTimestamp) (ineffassign)
    • Line 30: warning: r.GetStartTimestamp undefined (type httpMetrics has no field or method GetStartTimestamp) (ineffassign)
    • Line 39: warning: r.GetContentLength undefined (type httpMetrics has no field or method GetContentLength) (ineffassign)
    • mozzle/metric.go
    • Line 34: warning: app.Entity undefined (type application has no field or method Entity) (ineffassign)
    • Line 35: warning: app.GUID undefined (type application has no field or method GUID) (ineffassign)
    • Line 52: warning: app.Entity undefined (type application has no field or method Entity) (ineffassign)
    • Line 53: warning: app.GUID undefined (type application has no field or method GUID) (ineffassign)
    • mozzle/cmd/mozzle/main.go
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: could not import golang.org/x/oauth2 (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/Bo0mer/mozzle (invalid package name: "") (ineffassign)
    • mozzle/appeventmetrics.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import github.com/Bo0mer/ccv2 (invalid package name: "") (ineffassign)
    • Line 12: warning: e.Entity undefined (type applicationEvent has no field or method Entity) (ineffassign)
    • Line 13: warning: e.Entity undefined (type applicationEvent has no field or method Entity) (ineffassign)
    • Line 14: warning: e.Entity undefined (type applicationEvent has no field or method Entity) (ineffassign)
    • Line 15: warning: e.Entity undefined (type applicationEvent has no field or method Entity) (ineffassign)
    • Line 16: warning: e.Entity undefined (type applicationEvent has no field or method Entity) (ineffassign)
    • Line 19: warning: e.Entity undefined (type applicationEvent has no field or method Entity) (ineffassign)
    • mozzle/riemann.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/amir/raidman (invalid package name: "") (ineffassign)
    • mozzle/monitor.go
    • Line 19: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: could not import golang.org/x/oauth2 (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import github.com/cloudfoundry/noaa/consumer (invalid package name: "") (ineffassign)
    • Line 218: warning: app.GUID undefined (type application has no field or method GUID) (ineffassign)
    • Line 221: warning: app.GUID undefined (type application has no field or method GUID) (ineffassign)
    • Line 236: warning: app.GUID undefined (type application has no field or method GUID) (ineffassign)
    • Line 267: warning: app.GUID undefined (type application has no field or method GUID) (ineffassign)
    • Line 279: warning: app.GUID undefined (type application has no field or method GUID) (ineffassign)
    • Line 318: warning: app.GUID undefined (type application has no field or method GUID) (ineffassign)
    • Line 388: warning: tr.Token undefined (type *tokenRefresher has no field or method Token) (ineffassign)

misspell81%

Misspell Finds commonly misspelled English words