Preparing report...

Report for github.com/jedruniu/spotify-cli

A    Great!    Found 11 issues across 14 files

Tweet

gofmt78%

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!


gocyclo100%

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.

No problems detected. Good job!


golint42%

Golint is a linter for Go source code.

    • spotify-cli/pkg/player/interfaces.go
    • Line 19: warning: exported type Player should have comment or be unexported (golint)
    • Line 24: warning: exported type Searcher should have comment or be unexported (golint)
    • Line 28: warning: exported type UserAlbumFetcher should have comment or be unexported (golint)
    • spotify-cli/pkg/player/search.go
    • Line 10: warning: exported type URIName should have comment or be unexported (golint)
    • Line 15: warning: exported type Search should have comment or be unexported (golint)
    • Line 132: warning: exported function NewSearchResults should have comment or be unexported (golint)
    • spotify-cli/pkg/web/auth.go
    • Line 11: warning: exported type AuthHandler should have comment or be unexported (golint)
    • Line 28: warning: exported type SpotifyAuthenticatorInterface should have comment or be unexported (golint)
    • spotify-cli/pkg/web/websocket.go
    • Line 12: warning: exported type WebsocketHandler should have comment or be unexported (golint)
    • Line 28: warning: exported type WebPlaybackReadyDevice should have comment or be unexported (golint)
    • Line 32: warning: exported type WebPlaybackState should have comment or be unexported (golint)
    • spotify-cli/pkg/player/fixtures.go
    • Line 27: warning: exported type DebugPlayer should have comment or be unexported (golint)
    • Line 40: warning: exported type DebugSearcher should have comment or be unexported (golint)
    • Line 47: warning: exported type DebugUserAlbumFetcher should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell64%

Misspell Finds commonly misspelled English words