Preparing report...

Report for github.com/inklabs/goauth2

A+    Excellent!    Found 10 issues across 43 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.

    • goauth2/authorization_code_commands.go
    • Line 5: warning: exported type RequestAccessTokenViaAuthorizationCodeGrant should have comment or be unexported (golint)
    • Line 11: warning: exported type IssueAuthorizationCodeToUser should have comment or be unexported (golint)
    • goauth2/authorization_code_events.go
    • Line 7: warning: exported type AuthorizationCodeWasIssuedToUser should have comment or be unexported (golint)
    • Line 14: warning: exported type AccessTokenWasIssuedToUserViaAuthorizationCodeGrant should have comment or be unexported (golint)
    • Line 21: warning: exported type RefreshTokenWasIssuedToUserViaAuthorizationCodeGrant should have comment or be unexported (golint)
    • Line 28: warning: exported type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToInvalidClientApplicationID should have comment or be unexported (golint)
    • Line 32: warning: exported type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToInvalidClientApplicationSecret should have comment or be unexported (golint)
    • Line 36: warning: exported type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToUnmatchedClientApplicationID should have comment or be unexported (golint)
    • Line 41: warning: exported type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToInvalidClientApplicationRedirectURI should have comment or be unexported (golint)
    • Line 46: warning: exported type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToInvalidAuthorizationCode should have comment or be unexported (golint)
    • Line 50: warning: exported type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToExpiredAuthorizationCode should have comment or be unexported (golint)
    • Line 54: warning: exported type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToPreviouslyUsedAuthorizationCode should have comment or be unexported (golint)
    • goauth2/client_application_commands.go
    • Line 5: warning: exported type OnBoardClientApplication should have comment or be unexported (golint)
    • Line 11: warning: exported type RequestAccessTokenViaClientCredentialsGrant should have comment or be unexported (golint)
    • goauth2/client_application_events.go
    • Line 7: warning: exported type ClientApplicationWasOnBoarded should have comment or be unexported (golint)
    • Line 13: warning: exported type OnBoardClientApplicationWasRejectedDueToUnAuthorizeUser should have comment or be unexported (golint)
    • Line 17: warning: exported type OnBoardClientApplicationWasRejectedDueToInsecureRedirectURI should have comment or be unexported (golint)
    • Line 21: warning: exported type OnBoardClientApplicationWasRejectedDueToInvalidRedirectURI should have comment or be unexported (golint)
    • Line 28: warning: exported type AccessTokenWasIssuedToClientApplicationViaClientCredentialsGrant should have comment or be unexported (golint)
    • Line 33: warning: exported type RequestAccessTokenViaClientCredentialsGrantWasRejectedDueToInvalidClientApplicationID should have comment or be unexported (golint)
    • Line 36: warning: exported type RequestAccessTokenViaClientCredentialsGrantWasRejectedDueToInvalidClientApplicationSecret should have comment or be unexported (golint)
    • goauth2/refresh_token_commands.go
    • Line 5: warning: exported type RequestAccessTokenViaRefreshTokenGrant should have comment or be unexported (golint)
    • Line 11: warning: exported type IssueRefreshTokenToUser should have comment or be unexported (golint)
    • Line 17: warning: exported type RevokeRefreshTokenFromUser should have comment or be unexported (golint)
    • goauth2/refresh_token_events.go
    • Line 7: warning: exported type RefreshTokenWasIssuedToUser should have comment or be unexported (golint)
    • Line 13: warning: exported type RefreshTokenWasRevokedFromUser should have comment or be unexported (golint)
    • Line 18: warning: exported type AccessTokenWasIssuedToUserViaRefreshTokenGrant should have comment or be unexported (golint)
    • Line 25: warning: exported type RefreshTokenWasIssuedToUserViaRefreshTokenGrant should have comment or be unexported (golint)
    • Line 32: warning: exported type RequestAccessTokenViaRefreshTokenGrantWasRejectedDueToInvalidRefreshToken should have comment or be unexported (golint)
    • Line 36: warning: exported type RequestAccessTokenViaRefreshTokenGrantWasRejectedDueToInvalidScope should have comment or be unexported (golint)
    • Line 42: warning: exported type RequestAccessTokenViaRefreshTokenGrantWasRejectedDueToInvalidClientApplicationCredentials should have comment or be unexported (golint)
    • Line 46: warning: exported type RequestAccessTokenViaRefreshTokenGrantWasRejectedDueToPreviouslyUsedRefreshToken should have comment or be unexported (golint)
    • Line 49: warning: exported type RequestAccessTokenViaRefreshTokenGrantWasRejectedDueToRevokedRefreshToken should have comment or be unexported (golint)
    • Line 53: warning: exported type AccessTokenWasRevokedDueToPreviouslyUsedRefreshToken should have comment or be unexported (golint)
    • goauth2/resource_owner_commands.go
    • Line 5: warning: exported type OnBoardUser should have comment or be unexported (golint)
    • Line 11: warning: exported type GrantUserAdministratorRole should have comment or be unexported (golint)
    • Line 15: warning: exported type AuthorizeUserToOnBoardClientApplications should have comment or be unexported (golint)
    • Line 19: warning: exported type RequestAccessTokenViaImplicitGrant should have comment or be unexported (golint)
    • Line 26: warning: exported type RequestAccessTokenViaROPCGrant should have comment or be unexported (golint)
    • Line 34: warning: exported type RequestAuthorizationCodeViaAuthorizationCodeGrant should have comment or be unexported (golint)
    • goauth2/commands.go
    • Line 13: warning: exported type CommandHandler should have comment or be unexported (golint)
    • Line 18: warning: exported type PreCommandHandler should have comment or be unexported (golint)
    • Line 24: warning: exported type CommandDispatcher should have comment or be unexported (golint)
    • Line 25: warning: exported type CommandHandlerFactory should have comment or be unexported (golint)
    • goauth2/resource_owner_events.go
    • Line 7: warning: exported type UserWasOnBoarded should have comment or be unexported (golint)
    • Line 13: warning: exported type OnBoardUserWasRejectedDueToNonAdministrator should have comment or be unexported (golint)
    • Line 17: warning: exported type OnBoardUserWasRejectedDueToExistingUser should have comment or be unexported (golint)
    • Line 21: warning: exported type OnBoardUserWasRejectedDueToInsecurePassword should have comment or be unexported (golint)
    • Line 28: warning: exported type UserWasGrantedAdministratorRole should have comment or be unexported (golint)
    • Line 32: warning: exported type GrantUserAdministratorRoleWasRejectedDueToMissingGrantingUser should have comment or be unexported (golint)
    • Line 36: warning: exported type GrantUserAdministratorRoleWasRejectedDueToMissingTargetUser should have comment or be unexported (golint)
    • Line 40: warning: exported type GrantUserAdministratorRoleWasRejectedDueToNonAdministrator should have comment or be unexported (golint)
    • Line 47: warning: exported type UserWasAuthorizedToOnBoardClientApplications should have comment or be unexported (golint)
    • Line 51: warning: exported type AuthorizeUserToOnBoardClientApplicationsWasRejectedDueToMissingAuthorizingUser should have comment or be unexported (golint)
    • Line 55: warning: exported type AuthorizeUserToOnBoardClientApplicationsWasRejectedDueToMissingTargetUser should have comment or be unexported (golint)
    • Line 59: warning: exported type AuthorizeUserToOnBoardClientApplicationsWasRejectedDueToNonAdministrator should have comment or be unexported (golint)
    • Line 66: warning: exported type AccessTokenWasIssuedToUserViaImplicitGrant should have comment or be unexported (golint)
    • Line 70: warning: exported type RequestAccessTokenViaImplicitGrantWasRejectedDueToInvalidClientApplicationID should have comment or be unexported (golint)
    • Line 74: warning: exported type RequestAccessTokenViaImplicitGrantWasRejectedDueToInvalidClientApplicationRedirectURI should have comment or be unexported (golint)
    • Line 79: warning: exported type RequestAccessTokenViaImplicitGrantWasRejectedDueToInvalidUser should have comment or be unexported (golint)
    • Line 83: warning: exported type RequestAccessTokenViaImplicitGrantWasRejectedDueToInvalidUserPassword should have comment or be unexported (golint)
    • Line 90: warning: exported type AccessTokenWasIssuedToUserViaROPCGrant should have comment or be unexported (golint)
    • Line 96: warning: exported type RefreshTokenWasIssuedToUserViaROPCGrant should have comment or be unexported (golint)
    • Line 102: warning: exported type RequestAccessTokenViaROPCGrantWasRejectedDueToInvalidUser should have comment or be unexported (golint)
    • Line 106: warning: exported type RequestAccessTokenViaROPCGrantWasRejectedDueToInvalidUserPassword should have comment or be unexported (golint)
    • Line 110: warning: exported type RequestAccessTokenViaROPCGrantWasRejectedDueToInvalidClientApplicationCredentials should have comment or be unexported (golint)
    • Line 117: warning: exported type AuthorizationCodeWasIssuedToUserViaAuthorizationCodeGrant should have comment or be unexported (golint)
    • Line 124: warning: exported type RequestAuthorizationCodeViaAuthorizationCodeGrantWasRejectedDueToInvalidClientApplicationID should have comment or be unexported (golint)
    • Line 128: warning: exported type RequestAuthorizationCodeViaAuthorizationCodeGrantWasRejectedDueToInvalidClientApplicationRedirectURI should have comment or be unexported (golint)
    • Line 133: warning: exported type RequestAuthorizationCodeViaAuthorizationCodeGrantWasRejectedDueToInvalidUser should have comment or be unexported (golint)
    • Line 137: warning: exported type RequestAuthorizationCodeViaAuthorizationCodeGrantWasRejectedDueToInvalidUserPassword should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!