Preparing report...

Report for github.com/rakyll/gom

A+    Excellent!    Found 15 issues across 25 files

Tweet

gofmt96%

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!


gocyclo64%

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.

    • gom/internal/profile/profile.go
    • Line 333: warning: cyclomatic complexity 23 of function (*Profile).String() is high (> 15) (gocyclo)
    • Line 228: warning: cyclomatic complexity 21 of function (*Profile).CheckValid() is high (> 15) (gocyclo)
    • Line 290: warning: cyclomatic complexity 20 of function (*Profile).Aggregate() is high (> 15) (gocyclo)
    • gom/internal/driver/driver.go
    • Line 334: warning: cyclomatic complexity 26 of function grabProfile() is high (> 15) (gocyclo)
    • Line 494: warning: cyclomatic complexity 19 of function (*flags).String() is high (> 15) (gocyclo)
    • Line 710: warning: cyclomatic complexity 19 of function processFlags() is high (> 15) (gocyclo)
    • Line 34: warning: cyclomatic complexity 17 of function PProf() is high (> 15) (gocyclo)
    • Line 129: warning: cyclomatic complexity 16 of function adjustURL() is high (> 15) (gocyclo)
    • gom/internal/report/report.go
    • Line 1137: warning: cyclomatic complexity 36 of function (*graph).preprocess() is high (> 15) (gocyclo)
    • Line 1584: warning: cyclomatic complexity 30 of function timeLabel() is high (> 15) (gocyclo)
    • Line 1541: warning: cyclomatic complexity 16 of function memoryLabel() is high (> 15) (gocyclo)
    • gom/internal/profile/legacy_profile.go
    • Line 693: warning: cyclomatic complexity 30 of function parseContention() is high (> 15) (gocyclo)
    • Line 477: warning: cyclomatic complexity 25 of function parseHeap() is high (> 15) (gocyclo)
    • Line 853: warning: cyclomatic complexity 22 of function parseThread() is high (> 15) (gocyclo)
    • Line 57: warning: cyclomatic complexity 17 of function parseGoCount() is high (> 15) (gocyclo)
    • gom/internal/profile/encode.go
    • Line 20: warning: cyclomatic complexity 18 of function (*Profile).preEncode() is high (> 15) (gocyclo)
    • Line 205: warning: cyclomatic complexity 16 of function (*Profile).postDecode() is high (> 15) (gocyclo)

golint96%

Golint is a linter for Go source code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign56%

IneffAssign detects ineffectual assignments in Go code.

    • gom/internal/symbolizer/symbolizer.go
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: could not import github.com/rakyll/gom/internal/plugin (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import github.com/rakyll/gom/internal/profile (invalid package name: "") (ineffassign)
    • gom/internal/driver/driver.go
    • Line 24: warning: cannot find package "." in: (ineffassign)
    • Line 25: warning: cannot find package "." in: (ineffassign)
    • Line 26: warning: cannot find package "." in: (ineffassign)
    • Line 27: warning: cannot find package "." in: (ineffassign)
    • Line 28: warning: cannot find package "." in: (ineffassign)
    • Line 24: warning: could not import github.com/rakyll/gom/internal/commands (invalid package name: "") (ineffassign)
    • Line 25: warning: could not import github.com/rakyll/gom/internal/plugin (invalid package name: "") (ineffassign)
    • Line 26: warning: could not import github.com/rakyll/gom/internal/profile (invalid package name: "") (ineffassign)
    • Line 27: warning: could not import github.com/rakyll/gom/internal/report (invalid package name: "") (ineffassign)
    • Line 28: warning: could not import github.com/rakyll/gom/internal/tempfile (invalid package name: "") (ineffassign)
    • Line 943: warning: cmd declared but not used (ineffassign)
    • gom/internal/commands/commands.go
    • Line 19: warning: cannot find package "." in: (ineffassign)
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 21: warning: cannot find package "." in: (ineffassign)
    • Line 22: warning: cannot find package "." in: (ineffassign)
    • Line 19: warning: could not import github.com/rakyll/gom/internal/plugin (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/rakyll/gom/internal/report (invalid package name: "") (ineffassign)
    • Line 21: warning: could not import github.com/rakyll/gom/internal/svg (invalid package name: "") (ineffassign)
    • Line 22: warning: could not import github.com/rakyll/gom/internal/tempfile (invalid package name: "") (ineffassign)
    • gom/internal/report/report.go
    • Line 22: warning: cannot find package "." in: (ineffassign)
    • Line 23: warning: cannot find package "." in: (ineffassign)
    • Line 22: warning: could not import github.com/rakyll/gom/internal/plugin (invalid package name: "") (ineffassign)
    • Line 23: warning: could not import github.com/rakyll/gom/internal/profile (invalid package name: "") (ineffassign)
    • gom/internal/fetch/fetch.go
    • Line 19: warning: cannot find package "." in: (ineffassign)
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 19: warning: could not import github.com/rakyll/gom/internal/plugin (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/rakyll/gom/internal/profile (invalid package name: "") (ineffassign)
    • gom/internal/symbolz/symbolz.go
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: could not import github.com/rakyll/gom/internal/profile (invalid package name: "") (ineffassign)
    • Line 62: warning: addr declared but not used (ineffassign)
    • gom/cmd/gom/gom.go
    • Line 26: warning: cannot find package "." in: (ineffassign)
    • Line 26: warning: could not import github.com/gizak/termui (invalid package name: "") (ineffassign)
    • gom/cmd/gom/report.go
    • Line 25: warning: cannot find package "." in: (ineffassign)
    • Line 26: warning: cannot find package "." in: (ineffassign)
    • Line 27: warning: cannot find package "." in: (ineffassign)
    • Line 28: warning: cannot find package "." in: (ineffassign)
    • Line 25: warning: could not import github.com/rakyll/gom/internal/fetch (invalid package name: "") (ineffassign)
    • Line 26: warning: could not import github.com/rakyll/gom/internal/profile (invalid package name: "") (ineffassign)
    • Line 27: warning: could not import github.com/rakyll/gom/internal/report (invalid package name: "") (ineffassign)
    • Line 28: warning: could not import github.com/rakyll/gom/internal/symbolz (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!