Preparing report...

Report for github.com/wgliang/goappmonitor

A    Great!    Found 9 issues across 16 files

Tweet

gofmt87%

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!


golint50%

Golint is a linter for Go source code.

    • goappmonitor/metrics.go
    • Line 42: warning: comment on exported function GaugeFloat64 should be of the form "GaugeFloat64 ..." (golint)
    • Line 47: warning: comment on exported function SetGauge should be of the form "SetGauge ..." (golint)
    • Line 81: warning: comment on exported function SetMeter should be of the form "SetMeter ..." (golint)
    • goappmonitor/pusher.go
    • Line 15: warning: comment on exported const GAUGE should be of the form "GAUGE ..." (golint)
    • Line 232: warning: comment on exported type MetricValue should be of the form "MetricValue ..." (with optional leading article) (golint)
    • Line 474: warning: exported type Point should have comment or be unexported (golint)
    • goappmonitor/runtime.go
    • Line 20: warning: comment on exported function CollectRuntimeMemStats should be of the form "CollectRuntimeMemStats ..." (golint)
    • Line 28: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • goappmonitor/example/main.go
    • Line 12: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 32: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • goappmonitor/config.go
    • Line 75: warning: exported type OpenFalconx should have comment or be unexported (golint)
    • Line 80: warning: exported type InfluxDBx should have comment or be unexported (golint)
    • goappmonitor/debug.go
    • Line 15: warning: comment on exported function CollectDebugGCStats should be of the form "CollectDebugGCStats ..." (golint)
    • goappmonitor/http.go
    • Line 171: warning: comment on exported function InfluxDBJson should be of the form "InfluxDBJson ..." (golint)
    • Line 188: warning: comment on exported function InfluxDBString should be of the form "InfluxDBString ..." (golint)
    • Line 203: warning: exported type InfluxDBResponse should have comment or be unexported (golint)
    • goappmonitor/httplib.go
    • Line 171: warning: comment on exported method BeegoHttpRequest.SetProtocolVersion should be of the form "SetProtocolVersion ..." (golint)
    • Line 194: warning: comment on exported method BeegoHttpRequest.SetTransport should be of the form "SetTransport ..." (golint)
    • Line 200: warning: comment on exported method BeegoHttpRequest.SetProxy should be of the form "SetProxy ..." (golint)
    • Line 219: warning: exported method BeegoHttpRequest.PostFile should have comment or be unexported (golint)

gocyclo87%

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.


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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!