Preparing report...

Report for github.com/Phantas0s/devdash

A    Great!    Found 27 issues across 49 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!


gocyclo93%

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.

    • devdash/internal/ga_widget.go
    • Line 275: warning: cyclomatic complexity 19 of function (*gaWidget).table() is high (> 15) (gocyclo)
    • Line 54: warning: cyclomatic complexity 16 of function (*gaWidget).CreateWidgets() is high (> 15) (gocyclo)

golint53%

Golint is a linter for Go source code.

    • devdash/internal/platform/travis_ci.go
    • Line 12: warning: exported type TravisCI should have comment or be unexported (golint)
    • Line 16: warning: exported function NewTravisCI should have comment or be unexported (golint)
    • Line 26: warning: exported method TravisCI.Builds should have comment or be unexported (golint)
    • devdash/internal/platform/ga.go
    • Line 27: warning: comment on exported const XHeaderTime should be of the form "XHeaderTime ..." (golint)
    • Line 29: warning: exported const XHeaderOtherDim should have comment (or a comment on this block) or be unexported (golint)
    • devdash/cmd/config.go
    • Line 29: warning: exported type General should have comment or be unexported (golint)
    • Line 44: warning: exported type Project should have comment or be unexported (golint)
    • Line 57: warning: comment on exported type Column should be of the form "Column ..." (with optional leading article) (golint)
    • Line 62: warning: exported type Widgets should have comment or be unexported (golint)
    • Line 67: warning: exported type Services should have comment or be unexported (golint)
    • Line 79: warning: exported type GoogleAnalytics should have comment or be unexported (golint)
    • Line 84: warning: exported type SearchConsole should have comment or be unexported (golint)
    • Line 89: warning: exported type Monitor should have comment or be unexported (golint)
    • Line 93: warning: exported type Github should have comment or be unexported (golint)
    • Line 99: warning: exported type TravisCI should have comment or be unexported (golint)
    • Line 103: warning: exported type Feedly should have comment or be unexported (golint)
    • Line 107: warning: exported type RemoteHost should have comment or be unexported (golint)
    • Line 112: warning: exported type Git should have comment or be unexported (golint)
    • Line 197: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • devdash/internal/ga_widget.go
    • Line 496: warning: exported function ExtractTimeRange should have comment or be unexported (golint)
    • Line 515: warning: exported function ExtractDimensions should have comment or be unexported (golint)
    • Line 526: warning: exported function ExtractMetric should have comment or be unexported (golint)
    • devdash/internal/host_widget.go
    • Line 34: warning: exported type HostWidget should have comment or be unexported (golint)
    • Line 39: warning: exported function NewHostWidget should have comment or be unexported (golint)
    • Line 50: warning: exported method HostWidget.CreateWidgets should have comment or be unexported (golint)
    • devdash/internal/platform/host.go
    • Line 25: warning: exported type Host should have comment or be unexported (golint)
    • Line 33: warning: exported function NewHost should have comment or be unexported (golint)
    • Line 51: warning: comment on exported method Host.Runner should be of the form "Runner ..." (golint)
    • Line 86: warning: exported function HostUptime should have comment or be unexported (golint)
    • Line 107: warning: exported function HostLoad should have comment or be unexported (golint)
    • Line 125: warning: exported function HostProcesses should have comment or be unexported (golint)
    • Line 153: warning: exported function HostMemory should have comment or be unexported (golint)
    • Line 191: warning: exported function HostMemoryRate should have comment or be unexported (golint)
    • Line 233: warning: comment on exported function HostSwapRate should be of the form "HostSwapRate ..." (golint)
    • Line 276: warning: comment on exported function HostCPURate should be of the form "HostCPURate ..." (golint)
    • Line 332: warning: comment on exported function HostNetIO should be of the form "HostNetIO ..." (golint)
    • Line 367: warning: exported function HostDisk should have comment or be unexported (golint)
    • Line 420: warning: exported function HostDiskIO should have comment or be unexported (golint)
    • Line 456: warning: exported function HostBar should have comment or be unexported (golint)
    • Line 483: warning: exported function HostBox should have comment or be unexported (golint)
    • Line 492: warning: exported function HostGauge should have comment or be unexported (golint)
    • Line 508: warning: exported function HostTable should have comment or be unexported (golint)
    • devdash/totime/totime.go
    • Line 15: warning: exported function ThisWeek should have comment or be unexported (golint)
    • Line 29: warning: exported function PrevWeeks should have comment or be unexported (golint)
    • Line 44: warning: exported function NextWeeks should have comment or be unexported (golint)
    • Line 57: warning: exported function ThisMonth should have comment or be unexported (golint)
    • Line 66: warning: exported function PrevMonths should have comment or be unexported (golint)
    • Line 76: warning: exported function NextMonths should have comment or be unexported (golint)
    • Line 86: warning: exported function ThisYear should have comment or be unexported (golint)
    • Line 95: warning: exported function PrevYears should have comment or be unexported (golint)
    • Line 105: warning: exported function NextYears should have comment or be unexported (golint)
    • devdash/gokit/math.go
    • Line 8: warning: exported function Round should have comment or be unexported (golint)
    • Line 24: warning: exported function ConvertBinUnit should have comment or be unexported (golint)
    • Line 49: warning: exported function Min should have comment or be unexported (golint)
    • devdash/internal/templates.go
    • Line 17: warning: exported function CreateBlogConfig should have comment or be unexported (golint)
    • Line 40: warning: exported function CreateGitHubProjectConfig should have comment or be unexported (golint)
    • Line 63: warning: exported function Blog should have comment or be unexported (golint)
    • Line 200: warning: exported function GitHubProject should have comment or be unexported (golint)
    • devdash/internal/tui.go
    • Line 1: warning: package comment should be of the form "Package internal ..." (golint)
    • Line 275: warning: exported function NewTUI should have comment or be unexported (golint)
    • Line 281: warning: exported type Tui should have comment or be unexported (golint)
    • Line 285: warning: comment on exported function MapSize should be of the form "MapSize ..." (golint)
    • Line 384: warning: exported method Tui.AddGauge should have comment or be unexported (golint)
    • Line 523: warning: comment on exported method Tui.AddKQuit should be of the form "AddKQuit ..." (golint)
    • Line 528: warning: exported method Tui.AddKHotReload should have comment or be unexported (golint)
    • Line 532: warning: exported method Tui.AddKEdit should have comment or be unexported (golint)
    • Line 544: warning: exported method Tui.Align should have comment or be unexported (golint)
    • Line 553: warning: comment on exported method Tui.HotReload should be of the form "HotReload ..." (golint)
    • devdash/internal/platform/git.go
    • Line 13: warning: exported type Git should have comment or be unexported (golint)
    • Line 17: warning: exported function NewGit should have comment or be unexported (golint)
    • Line 23: warning: exported method Git.Branches should have comment or be unexported (golint)
    • devdash/internal/project.go
    • Line 204: warning: should omit 2nd value from range; this loop is equivalent to `for r := range ...` (golint)
    • Line 205: warning: should omit 2nd value from range; this loop is equivalent to `for c := range ...` (golint)
    • devdash/internal/platform/github.go
    • Line 40: warning: comment on exported function NewGithubClient should be of the form "NewGithubClient ..." (golint)
    • Line 336: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 633: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • devdash/cmd/root.go
    • Line 43: warning: exported function Execute should have comment or be unexported (golint)
    • Line 230: warning: comment on exported function InitLoggerFile should be of the form "InitLoggerFile ..." (golint)
    • devdash/internal/platform/feedly.go
    • Line 14: warning: exported type Feedly should have comment or be unexported (golint)
    • Line 19: warning: exported type FeedlyResponse should have comment or be unexported (golint)
    • Line 29: warning: exported function NewFeedly should have comment or be unexported (golint)
    • Line 36: warning: exported method Feedly.Subscribers should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell93%

Misspell Finds commonly misspelled English words