Preparing report...

Report for github.com/go-echarts/statsview

A+    Excellent!    Found 9 issues across 13 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!


golint38%

Golint is a linter for Go source code.

    • statsview/viewer/gccpufraction.go
    • Line 35: warning: exported method GCCPUFractionViewer.SetStatsMgr should have comment or be unexported (golint)
    • Line 39: warning: exported method GCCPUFractionViewer.Name should have comment or be unexported (golint)
    • Line 43: warning: exported method GCCPUFractionViewer.View should have comment or be unexported (golint)
    • Line 47: warning: exported method GCCPUFractionViewer.Serve should have comment or be unexported (golint)
    • statsview/viewer/gcnum.go
    • Line 35: warning: exported method GCNumViewer.SetStatsMgr should have comment or be unexported (golint)
    • Line 39: warning: exported method GCNumViewer.Name should have comment or be unexported (golint)
    • Line 43: warning: exported method GCNumViewer.View should have comment or be unexported (golint)
    • Line 47: warning: exported method GCNumViewer.Serve should have comment or be unexported (golint)
    • statsview/viewer/gcsize.go
    • Line 12: warning: comment on exported const VGCSize should be of the form "VGCSize ..." (golint)
    • Line 36: warning: exported method GCSizeViewer.SetStatsMgr should have comment or be unexported (golint)
    • Line 40: warning: exported method GCSizeViewer.Name should have comment or be unexported (golint)
    • Line 44: warning: exported method GCSizeViewer.View should have comment or be unexported (golint)
    • Line 48: warning: exported method GCSizeViewer.Serve should have comment or be unexported (golint)
    • statsview/viewer/goroutine.go
    • Line 37: warning: exported method GoroutinesViewer.SetStatsMgr should have comment or be unexported (golint)
    • Line 41: warning: exported method GoroutinesViewer.Name should have comment or be unexported (golint)
    • Line 45: warning: exported method GoroutinesViewer.View should have comment or be unexported (golint)
    • Line 49: warning: exported method GoroutinesViewer.Serve should have comment or be unexported (golint)
    • statsview/viewer/heap.go
    • Line 37: warning: exported method HeapViewer.SetStatsMgr should have comment or be unexported (golint)
    • Line 40: warning: exported method HeapViewer.Name should have comment or be unexported (golint)
    • Line 44: warning: exported method HeapViewer.View should have comment or be unexported (golint)
    • Line 48: warning: exported method HeapViewer.Serve should have comment or be unexported (golint)
    • statsview/viewer/stack.go
    • Line 38: warning: exported method StackViewer.SetStatsMgr should have comment or be unexported (golint)
    • Line 42: warning: exported method StackViewer.Name should have comment or be unexported (golint)
    • Line 46: warning: exported method StackViewer.View should have comment or be unexported (golint)
    • Line 50: warning: exported method StackViewer.Serve should have comment or be unexported (golint)
    • statsview/viewer/viewer.go
    • Line 18: warning: comment on exported type Metrics should be of the form "Metrics ..." (with optional leading article) (golint)
    • Line 34: warning: exported type Theme should have comment or be unexported (golint)
    • Line 37: warning: exported const ThemeWesteros should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported const DefaultTemplate should have comment (or a comment on this block) or be unexported (golint)
    • Line 89: warning: exported type Option should have comment or be unexported (golint)
    • Line 157: warning: exported function SetConfiguration should have comment or be unexported (golint)
    • Line 178: warning: exported type StatsMgr should have comment or be unexported (golint)
    • Line 184: warning: exported function NewStatsMgr should have comment or be unexported (golint)
    • Line 192: warning: exported method StatsMgr.Tick should have comment or be unexported (golint)
    • statsview/statsview.go
    • Line 18: warning: comment on exported type ViewManager should be of the form "ViewManager ..." (with optional leading article) (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!


misspell92%

Misspell Finds commonly misspelled English words