Preparing report...

Report for github.com/giovaneliberato/your-oauth2-server-here

A+    Excellent!    Found 24 issues across 36 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!


golint38%

Golint is a linter for Go source code.

    • your-oauth2-server-here/test/token.go
    • Line 11: warning: exported type ExternalServiceClientMock should have comment or be unexported (golint)
    • Line 15: warning: exported method ExternalServiceClientMock.GetAccessToken should have comment or be unexported (golint)
    • Line 28: warning: exported method ExternalServiceClientMock.RefreshAccessToken should have comment or be unexported (golint)
    • your-oauth2-server-here/app/routes/token.go
    • Line 13: warning: exported function TokenRouter should have comment or be unexported (golint)
    • Line 20: warning: exported type TokenRoutes should have comment or be unexported (golint)
    • Line 28: warning: exported function NewTokenRoutes should have comment or be unexported (golint)
    • your-oauth2-server-here/domain/errors.go
    • Line 3: warning: exported type OAuthError should have comment or be unexported (golint)
    • Line 9: warning: exported method OAuthError.Empty should have comment or be unexported (golint)
    • Line 17: warning: exported var InvalidAuthorizationCodeRequestError should have comment or be unexported (golint)
    • Line 23: warning: exported var InvalidApproveAuthorizationError should have comment or be unexported (golint)
    • Line 29: warning: exported var InvalidRequestError should have comment or be unexported (golint)
    • Line 35: warning: exported var AccessDeniedError should have comment or be unexported (golint)
    • Line 41: warning: exported var InvalidClientError should have comment or be unexported (golint)
    • Line 47: warning: exported var UnsupportedResponseTypeError should have comment or be unexported (golint)
    • Line 53: warning: exported var InvalidGrantTypeError should have comment or be unexported (golint)
    • Line 59: warning: exported var InvalidScopeError should have comment or be unexported (golint)
    • your-oauth2-server-here/domain/token/models.go
    • Line 3: warning: exported type AuthorizationCodeRequest should have comment or be unexported (golint)
    • Line 11: warning: exported type RefreshTokenRequest should have comment or be unexported (golint)
    • Line 18: warning: exported type AccessTokenResponse should have comment or be unexported (golint)
    • your-oauth2-server-here/app/routes/client.go
    • Line 12: warning: exported function ClienRouter should have comment or be unexported (golint)
    • Line 20: warning: exported type ClientRoutes should have comment or be unexported (golint)
    • Line 28: warning: exported function NewClientRoutes should have comment or be unexported (golint)
    • your-oauth2-server-here/domain/authorization/models.go
    • Line 5: warning: exported type Authorization should have comment or be unexported (golint)
    • Line 13: warning: exported type AuthorizationApproval should have comment or be unexported (golint)
    • Line 19: warning: exported type AuthorizationContext should have comment or be unexported (golint)
    • Line 27: warning: exported type AuthorizationReponse should have comment or be unexported (golint)
    • Line 35: warning: exported type AuthorizationCodeExchange should have comment or be unexported (golint)
    • your-oauth2-server-here/domain/context/context.go
    • Line 10: warning: exported type Context should have comment or be unexported (golint)
    • Line 19: warning: exported type Signer should have comment or be unexported (golint)
    • Line 31: warning: exported function NewContextSignerWith should have comment or be unexported (golint)
    • Line 39: warning: exported function NewContextSigner should have comment or be unexported (golint)
    • your-oauth2-server-here/test/client.go
    • Line 9: warning: exported type ClientServiceMock should have comment or be unexported (golint)
    • Line 14: warning: exported method ClientServiceMock.GetByID should have comment or be unexported (golint)
    • Line 18: warning: exported method ClientServiceMock.Save should have comment or be unexported (golint)
    • Line 22: warning: exported method ClientServiceMock.ValidateSecret should have comment or be unexported (golint)
    • Line 26: warning: exported var TestClient should have comment or be unexported (golint)
    • your-oauth2-server-here/test/server.go
    • Line 16: warning: exported function LoadConfig should have comment or be unexported (golint)
    • Line 27: warning: exported function ConfigureTestScenario should have comment or be unexported (golint)
    • Line 37: warning: exported function TestServerFor should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words