Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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)
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)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!