Preparing report...

Report for github.com/chenarmy/goth

A+    Excellent!    Found 54 issues across 254 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


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!


golint79%

Golint is a linter for Go source code.

    • goth/provider.go
    • Line 24: warning: exported const NoAuthUrlErrorMessage should have comment or be unexported (golint)
    • goth/providers/apple/apple.go
    • Line 1: warning: package comment should be of the form "Package apple ..." (golint)
    • Line 24: warning: exported const ScopeEmail should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type Provider should have comment or be unexported (golint)
    • Line 41: warning: exported function New should have comment or be unexported (golint)
    • Line 53: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 57: warning: exported method Provider.SetName should have comment or be unexported (golint)
    • Line 61: warning: exported method Provider.ClientId should have comment or be unexported (golint)
    • Line 65: warning: exported type SecretParams should have comment or be unexported (golint)
    • Line 70: warning: exported function MakeSecret should have comment or be unexported (golint)
    • Line 91: warning: exported method Provider.Secret should have comment or be unexported (golint)
    • Line 95: warning: exported method Provider.RedirectURL should have comment or be unexported (golint)
    • Line 99: warning: exported method Provider.BeginAuth should have comment or be unexported (golint)
    • Line 109: warning: exported method Provider.UnmarshalSession should have comment or be unexported (golint)
    • Line 115: warning: comment on exported method Provider.FetchUser should be of the form "FetchUser ..." (golint)
    • Line 140: warning: exported method Provider.Client should have comment or be unexported (golint)
    • Line 144: warning: exported method Provider.RefreshToken should have comment or be unexported (golint)
    • Line 154: warning: exported method Provider.RefreshTokenAvailable should have comment or be unexported (golint)
    • goth/providers/apple/session.go
    • Line 22: warning: exported type ID should have comment or be unexported (golint)
    • Line 28: warning: exported type Session should have comment or be unexported (golint)
    • Line 36: warning: exported method Session.GetAuthURL should have comment or be unexported (golint)
    • Line 43: warning: exported method Session.Marshal should have comment or be unexported (golint)
    • Line 48: warning: exported type IDTokenClaims should have comment or be unexported (golint)
    • Line 56: warning: exported method Session.Authorize should have comment or be unexported (golint)
    • goth/providers/discord/discord.go
    • Line 25: warning: comment on exported const ScopeIdentify should be of the form "ScopeIdentify ..." (golint)
    • Line 27: warning: comment on exported const ScopeEmail should be of the form "ScopeEmail ..." (golint)
    • Line 29: warning: comment on exported const ScopeConnections should be of the form "ScopeConnections ..." (golint)
    • Line 31: warning: comment on exported const ScopeGuilds should be of the form "ScopeGuilds ..." (golint)
    • Line 33: warning: comment on exported const ScopeJoinGuild should be of the form "ScopeJoinGuild ..." (golint)
    • Line 35: warning: comment on exported const ScopeGroupDMjoin should be of the form "ScopeGroupDMjoin ..." (golint)
    • Line 37: warning: comment on exported const ScopeBot should be of the form "ScopeBot ..." (golint)
    • Line 39: warning: comment on exported const ScopeWebhook should be of the form "ScopeWebhook ..." (golint)
    • Line 77: warning: exported method Provider.Client should have comment or be unexported (golint)
    • goth/providers/spotify/spotify.go
    • Line 22: warning: comment on exported const ScopePlaylistReadCollaborative should be of the form "ScopePlaylistReadCollaborative ..." (golint)
    • Line 107: warning: exported method Provider.Client should have comment or be unexported (golint)
    • goth/providers/openidConnect/openidConnect.go
    • Line 1: warning: don't use MixedCaps in package name; openidConnect should be openidconnect (golint)
    • Line 26: warning: exported const PreferredUsernameClaim should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: comment on exported const MiddleNameClaim should be of the form "MiddleNameClaim ..." (golint)
    • Line 73: warning: exported type OpenIDConfig should have comment or be unexported (golint)
    • Line 125: warning: exported method Provider.Client should have comment or be unexported (golint)
    • goth/providers/auth0/auth0.go
    • Line 68: warning: exported method Provider.Client should have comment or be unexported (golint)
    • Line 86: warning: exported method Provider.FetchUser should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!