Preparing report...

Report for github.com/zalando/gin-oauth2

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


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!


golint12%

Golint is a linter for Go source code.

    • gin-oauth2/google/google.go
    • Line 72: warning: exported function Session should have comment or be unexported (golint)
    • Line 76: warning: exported function LoginHandler should have comment or be unexported (golint)
    • Line 84: warning: exported function GetLoginURL should have comment or be unexported (golint)
    • gin-oauth2/github/github.go
    • Line 44: warning: exported function Setup should have comment or be unexported (golint)
    • Line 64: warning: exported function Session should have comment or be unexported (golint)
    • Line 68: warning: exported function LoginHandler should have comment or be unexported (golint)
    • Line 76: warning: exported function GetLoginURL should have comment or be unexported (golint)
    • Line 80: warning: exported type AuthUser should have comment or be unexported (golint)
    • Line 92: warning: exported function Auth should have comment or be unexported (golint)
    • gin-oauth2/ginoauth2.go
    • Line 92: warning: exported type Options should have comment or be unexported (golint)
    • Line 168: warning: exported function RequestAuthInfo should have comment or be unexported (golint)
    • Line 172: warning: exported function ParseTokenContainer should have comment or be unexported (golint)
    • Line 231: warning: exported function GetTokenContainer should have comment or be unexported (golint)
    • Line 257: warning: comment on exported method TokenContainer.Valid should be of the form "Valid ..." (golint)
    • Line 268: warning: comment on exported function Auth should be of the form "Auth ..." (golint)
    • Line 312: warning: exported function AuthChainOptions should have comment or be unexported (golint)
    • gin-oauth2/zalando/zalando.go
    • Line 31: warning: don't use underscores in Go names; struct field Id_name should be IDName (golint)
    • Line 32: warning: don't use underscores in Go names; struct field Team_id should be TeamID (golint)
    • Line 52: warning: don't use underscores in Go names; var info_url should be infoURL (golint)
    • gin-oauth2/example/zalando/main.go
    • Line 16: warning: exported var USERS should have comment or be unexported (golint)
    • Line 21: warning: exported var TEAMS should have comment or be unexported (golint)
    • Line 26: warning: exported var SERVICES should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign87%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!