Preparing report...

Report for github.com/wirelessregistry/goprofui

A+    Excellent!    Found 7 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!


gocyclo75%

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.

    • goprofui/internal/profile/legacy_profile.go
    • Line 695: warning: cyclomatic complexity 30 of function parseContention() is high (> 15) (gocyclo)
    • Line 479: warning: cyclomatic complexity 25 of function parseHeap() is high (> 15) (gocyclo)
    • Line 855: warning: cyclomatic complexity 22 of function parseThread() is high (> 15) (gocyclo)
    • Line 59: warning: cyclomatic complexity 17 of function parseGoCount() is high (> 15) (gocyclo)
    • goprofui/internal/profile/profile.go
    • Line 430: warning: cyclomatic complexity 25 of function (*Profile).String() is high (> 15) (gocyclo)
    • Line 320: warning: cyclomatic complexity 23 of function (*Profile).CheckValid() is high (> 15) (gocyclo)
    • Line 387: warning: cyclomatic complexity 20 of function (*Profile).Aggregate() is high (> 15) (gocyclo)

golint66%

Golint is a linter for Go source code.

    • goprofui/tickerHandlers.go
    • Line 13: warning: exported function MemoryHandler should have comment or be unexported (golint)
    • Line 17: warning: exported function GCHandler should have comment or be unexported (golint)
    • Line 21: warning: exported function CollectGCStats should have comment or be unexported (golint)
    • Line 32: warning: exported function CollectMemStats should have comment or be unexported (golint)
    • Line 43: warning: exported function GoRoutinesHandler should have comment or be unexported (golint)
    • Line 47: warning: exported function CollectRoutinesStats should have comment or be unexported (golint)
    • Line 56: warning: exported function TickerHandler should have comment or be unexported (golint)
    • Line 74: warning: exported function CollectStats should have comment or be unexported (golint)
    • goprofui/cpu.go
    • Line 14: warning: exported var ErrProfileFailed should have comment or be unexported (golint)
    • Line 16: warning: exported type Profile should have comment or be unexported (golint)
    • Line 25: warning: exported function EmptyProfile should have comment or be unexported (golint)
    • Line 36: warning: exported function NewProfile should have comment or be unexported (golint)
    • Line 61: warning: exported function LocationsToFuncNames should have comment or be unexported (golint)
    • Line 71: warning: comment on exported method Profile.ParseForD3FlameGraph should be of the form "ParseForD3FlameGraph ..." (golint)
    • Line 115: warning: comment on exported function CPUProfile should be of the form "CPUProfile ..." (golint)
    • goprofui/flameHandlers.go
    • Line 18: warning: exported function StartCPUProfHandler should have comment or be unexported (golint)
    • Line 29: warning: exported function StopCPUProfHandler should have comment or be unexported (golint)
    • goprofui/parse.go
    • Line 7: warning: comment on exported type Node should be of the form "Node ..." (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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!