Preparing report...

Report for github.com/justjanne/powerline-go

A+    Excellent!    Found 15 issues across 58 files

Tweet

gofmt89%

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.

    • powerline-go/powerline.go
    • Line 318: warning: cyclomatic complexity 18 of function (*powerline).drawRow() is high (> 15) (gocyclo)
    • Line 238: warning: cyclomatic complexity 17 of function (*powerline).truncateRow() is high (> 15) (gocyclo)
    • Line 386: warning: cyclomatic complexity 16 of function (*powerline).draw() is high (> 15) (gocyclo)

golint87%

Golint is a linter for Go source code.

    • powerline-go/segment-goenv.go
    • Line 28: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 61: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 92: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • powerline-go/themes.go
    • Line 3: warning: comment on exported type SymbolTemplate should be of the form "SymbolTemplate ..." (with optional leading article) (golint)
    • powerline-go/config.go
    • Line 10: warning: exported type SymbolMap should have comment or be unexported (golint)
    • Line 11: warning: exported type ShellMap should have comment or be unexported (golint)
    • Line 12: warning: exported type ThemeMap should have comment or be unexported (golint)
    • Line 13: warning: exported type AliasMap should have comment or be unexported (golint)
    • Line 15: warning: exported type Config should have comment or be unexported (golint)
    • Line 58: warning: exported method SymbolTemplate.UnmarshalJSON should have comment or be unexported (golint)
    • Line 68: warning: exported method Theme.UnmarshalJSON should have comment or be unexported (golint)
    • Line 83: warning: exported method Config.Load should have comment or be unexported (golint)
    • Line 92: warning: exported method Config.Save should have comment or be unexported (golint)
    • powerline-go/defaults.go
    • Line 1633: warning: don't use underscores in Go names; const gruvbox_dark0 should be gruvboxDark0 (golint)
    • Line 1634: warning: don't use underscores in Go names; const gruvbox_dark1 should be gruvboxDark1 (golint)
    • Line 1635: warning: don't use underscores in Go names; const gruvbox_dark2 should be gruvboxDark2 (golint)
    • Line 1636: warning: don't use underscores in Go names; const gruvbox_dark3 should be gruvboxDark3 (golint)
    • Line 1637: warning: don't use underscores in Go names; const gruvbox_dark4 should be gruvboxDark4 (golint)
    • Line 1639: warning: don't use underscores in Go names; const gruvbox_light0 should be gruvboxLight0 (golint)
    • Line 1640: warning: don't use underscores in Go names; const gruvbox_light1 should be gruvboxLight1 (golint)
    • Line 1641: warning: don't use underscores in Go names; const gruvbox_light2 should be gruvboxLight2 (golint)
    • Line 1642: warning: don't use underscores in Go names; const gruvbox_light3 should be gruvboxLight3 (golint)
    • Line 1643: warning: don't use underscores in Go names; const gruvbox_light4 should be gruvboxLight4 (golint)
    • Line 1645: warning: don't use underscores in Go names; const gruvbox_dark_gray should be gruvboxDarkGray (golint)
    • Line 1646: warning: don't use underscores in Go names; const gruvbox_light_gray should be gruvboxLightGray (golint)
    • Line 1648: warning: don't use underscores in Go names; const gruvbox_neutral_red should be gruvboxNeutralRed (golint)
    • Line 1649: warning: don't use underscores in Go names; const gruvbox_neutral_green should be gruvboxNeutralGreen (golint)
    • Line 1650: warning: don't use underscores in Go names; const gruvbox_neutral_yellow should be gruvboxNeutralYellow (golint)
    • Line 1651: warning: don't use underscores in Go names; const gruvbox_neutral_blue should be gruvboxNeutralBlue (golint)
    • Line 1652: warning: don't use underscores in Go names; const gruvbox_neutral_purple should be gruvboxNeutralPurple (golint)
    • Line 1653: warning: don't use underscores in Go names; const gruvbox_neutral_aqua should be gruvboxNeutralAqua (golint)
    • Line 1654: warning: don't use underscores in Go names; const gruvbox_neutral_orange should be gruvboxNeutralOrange (golint)
    • Line 1656: warning: don't use underscores in Go names; const gruvbox_bright_red should be gruvboxBrightRed (golint)
    • Line 1657: warning: don't use underscores in Go names; const gruvbox_bright_green should be gruvboxBrightGreen (golint)
    • Line 1658: warning: don't use underscores in Go names; const gruvbox_bright_yellow should be gruvboxBrightYellow (golint)
    • Line 1659: warning: don't use underscores in Go names; const gruvbox_bright_blue should be gruvboxBrightBlue (golint)
    • Line 1660: warning: don't use underscores in Go names; const gruvbox_bright_purple should be gruvboxBrightPurple (golint)
    • Line 1661: warning: don't use underscores in Go names; const gruvbox_bright_aqua should be gruvboxBrightAqua (golint)
    • Line 1662: warning: don't use underscores in Go names; const gruvbox_bright_orange should be gruvboxBrightOrange (golint)
    • Line 1664: warning: don't use underscores in Go names; const gruvbox_faded_red should be gruvboxFadedRed (golint)
    • Line 1665: warning: don't use underscores in Go names; const gruvbox_faded_green should be gruvboxFadedGreen (golint)
    • Line 1666: warning: don't use underscores in Go names; const gruvbox_faded_yellow should be gruvboxFadedYellow (golint)
    • Line 1667: warning: don't use underscores in Go names; const gruvbox_faded_blue should be gruvboxFadedBlue (golint)
    • Line 1668: warning: don't use underscores in Go names; const gruvbox_faded_purple should be gruvboxFadedPurple (golint)
    • Line 1669: warning: don't use underscores in Go names; const gruvbox_faded_aqua should be gruvboxFadedAqua (golint)
    • Line 1670: warning: don't use underscores in Go names; const gruvbox_faded_orange should be gruvboxFadedOrange (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!