Preparing report...

Report for github.com/leeif/pluto

A    Great!    Found 58 issues across 64 files

Tweet

gofmt95%

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!


gocyclo93%

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.

    • pluto/manage/admin.go
    • Line 256: warning: cyclomatic complexity 18 of function (*Manager).ListRoles() is high (> 15) (gocyclo)
    • Line 112: warning: cyclomatic complexity 17 of function (*Manager).RoleScopeUpdate() is high (> 15) (gocyclo)

golint12%

Golint is a linter for Go source code.

    • pluto/utils/mail/mail.go
    • Line 20: warning: exported type Mail should have comment or be unexported (golint)
    • Line 24: warning: exported method Mail.Send should have comment or be unexported (golint)
    • Line 107: warning: exported method Mail.SendPlainText should have comment or be unexported (golint)
    • Line 115: warning: exported method Mail.SendRegisterVerify should have comment or be unexported (golint)
    • Line 144: warning: exported method Mail.SendResetPassword should have comment or be unexported (golint)
    • Line 173: warning: exported function NewMail should have comment or be unexported (golint)
    • pluto/config/config_server.go
    • Line 3: warning: exported type ServerConfig should have comment or be unexported (golint)
    • Line 11: warning: exported type Port should have comment or be unexported (golint)
    • Line 15: warning: exported method Port.Set should have comment or be unexported (golint)
    • pluto/route/routes.go
    • Line 20: warning: exported type PlutoRoute should have comment or be unexported (golint)
    • Line 28: warning: exported type Router should have comment or be unexported (golint)
    • Line 46: warning: exported method Router.RegisterV1 should have comment or be unexported (golint)
    • Line 56: warning: exported method Router.Register should have comment or be unexported (golint)
    • Line 69: warning: exported function NewRouter should have comment or be unexported (golint)
    • pluto/manage/oauth.go
    • Line 26: warning: exported const ClientPend should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type GrantResult should have comment or be unexported (golint)
    • Line 38: warning: exported type AuthorizeResult should have comment or be unexported (golint)
    • Line 103: warning: exported method Manager.GetClientByKey should have comment or be unexported (golint)
    • Line 133: warning: exported method Manager.AuthorizationCodeGrant should have comment or be unexported (golint)
    • Line 180: warning: exported method Manager.PasswordGrant should have comment or be unexported (golint)
    • Line 215: warning: exported method Manager.ClientCredentialGrant should have comment or be unexported (golint)
    • Line 231: warning: exported method Manager.RefreshTokenGrant should have comment or be unexported (golint)
    • Line 449: warning: exported method Manager.GrantAuthorizationCode should have comment or be unexported (golint)
    • Line 514: warning: exported method Manager.GrantAccessToken should have comment or be unexported (golint)
    • Line 574: warning: exported method Manager.OAuthGetClient should have comment or be unexported (golint)
    • Line 606: warning: exported method Manager.OAuthCreateClient should have comment or be unexported (golint)
    • Line 647: warning: exported method Manager.UpdateOAuthClientStatus should have comment or be unexported (golint)
    • pluto/manage/user.go
    • Line 35: warning: exported const MAILLOGIN should have comment (or a comment on this block) or be unexported (golint)
    • Line 59: warning: exported method Manager.RandomUserName should have comment or be unexported (golint)
    • Line 77: warning: exported method Manager.MailPasswordLogin should have comment or be unexported (golint)
    • Line 136: warning: exported method Manager.NamePasswordLogin should have comment or be unexported (golint)
    • Line 223: warning: exported method Manager.GoogleLoginMobile should have comment or be unexported (golint)
    • Line 347: warning: exported method Manager.WechatLoginMobile should have comment or be unexported (golint)
    • Line 543: warning: exported method Manager.AppleLoginMobile should have comment or be unexported (golint)
    • Line 680: warning: exported method Manager.ResetPasswordMail should have comment or be unexported (golint)
    • Line 693: warning: exported method Manager.ResetPasswordPage should have comment or be unexported (golint)
    • Line 737: warning: exported method Manager.ResetPassword should have comment or be unexported (golint)
    • Line 813: warning: exported method Manager.UserInfo should have comment or be unexported (golint)
    • Line 846: warning: exported method Manager.UpdateUserInfo should have comment or be unexported (golint)
    • Line 906: warning: exported method Manager.RegisterWithEmail should have comment or be unexported (golint)
    • Line 981: warning: exported method Manager.RegisterVerifyMail should have comment or be unexported (golint)
    • Line 1004: warning: exported method Manager.RegisterVerify should have comment or be unexported (golint)
    • Line 1067: warning: exported method Manager.BindMail should have comment or be unexported (golint)
    • Line 1106: warning: exported method Manager.BindGoogle should have comment or be unexported (golint)
    • Line 1153: warning: exported method Manager.BindApple should have comment or be unexported (golint)
    • Line 1199: warning: exported method Manager.BindWechat should have comment or be unexported (golint)
    • Line 1252: warning: exported method Manager.Unbind should have comment or be unexported (golint)
    • Line 1281: warning: exported method Manager.PublicUserInfo should have comment or be unexported (golint)
    • pluto/route/v1/web.go
    • Line 13: warning: exported method Router.RegistrationVerifyPage should have comment or be unexported (golint)
    • Line 45: warning: exported method Router.ResetPasswordPage should have comment or be unexported (golint)
    • Line 82: warning: exported method Router.ResetPassword should have comment or be unexported (golint)
    • Line 123: warning: exported method Router.LoginPage should have comment or be unexported (golint)
    • Line 150: warning: exported method Router.AuthorizePage should have comment or be unexported (golint)
    • pluto/manage/admin.go
    • Line 15: warning: exported method Manager.CreateRole should have comment or be unexported (golint)
    • Line 50: warning: exported method Manager.CreateScope should have comment or be unexported (golint)
    • Line 85: warning: exported method Manager.CreateApplication should have comment or be unexported (golint)
    • Line 112: warning: exported method Manager.RoleScopeUpdate should have comment or be unexported (golint)
    • Line 178: warning: exported method Manager.ApplicationDefaultRole should have comment or be unexported (golint)
    • Line 206: warning: exported method Manager.RoleDefaultScope should have comment or be unexported (golint)
    • Line 245: warning: exported method Manager.ListApplications should have comment or be unexported (golint)
    • Line 256: warning: exported method Manager.ListRoles should have comment or be unexported (golint)
    • Line 331: warning: exported method Manager.ListScopes should have comment or be unexported (golint)
    • Line 355: warning: exported method Manager.SetUserRole should have comment or be unexported (golint)
    • Line 401: warning: exported method Manager.UserSummary should have comment or be unexported (golint)
    • Line 411: warning: exported method Manager.FindUser should have comment or be unexported (golint)
    • pluto/datatype/response/response.go
    • Line 4: warning: exported const STATUSOK should have comment (or a comment on this block) or be unexported (golint)
    • Line 8: warning: exported type ReponseOK should have comment or be unexported (golint)
    • Line 13: warning: exported type ReponseError should have comment or be unexported (golint)
    • pluto/config/config_mail.go
    • Line 3: warning: exported type MailConfig should have comment or be unexported (golint)
    • Line 9: warning: exported type SMTP should have comment or be unexported (golint)
    • Line 13: warning: exported method SMTP.Set should have comment or be unexported (golint)
    • pluto/utils/salt/salt.go
    • Line 12: warning: exported const DEFAULTRANDLEN should have comment or be unexported (golint)
    • Line 14: warning: exported function EncodePassword should have comment or be unexported (golint)
    • Line 23: warning: exported function RandomSalt should have comment or be unexported (golint)
    • Line 28: warning: exported function DecodeSalt should have comment or be unexported (golint)
    • Line 51: warning: exported function RandomToken should have comment or be unexported (golint)
    • pluto/datatype/pluto_error/error.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported type PlutoError should have comment or be unexported (golint)
    • Line 15: warning: exported method PlutoError.Wrapper should have comment or be unexported (golint)
    • Line 23: warning: exported function NewPlutoError should have comment or be unexported (golint)
    • pluto/datatype/request/oauth.go
    • Line 3: warning: exported type OAuthAuthorize should have comment or be unexported (golint)
    • Line 13: warning: exported method OAuthAuthorize.Validation should have comment or be unexported (golint)
    • Line 24: warning: exported type OAuthTokens should have comment or be unexported (golint)
    • Line 38: warning: exported method OAuthTokens.Validation should have comment or be unexported (golint)
    • Line 50: warning: exported method OAuthTokens.ValidateAuthorizationCode should have comment or be unexported (golint)
    • Line 57: warning: exported method OAuthTokens.ValidatePasswordGrant should have comment or be unexported (golint)
    • Line 69: warning: exported method OAuthTokens.ValidateClientCredentials should have comment or be unexported (golint)
    • Line 76: warning: exported method OAuthTokens.ValidateRefreshToken should have comment or be unexported (golint)
    • Line 85: warning: exported type RefreshAccessToken should have comment or be unexported (golint)
    • Line 91: warning: exported method RefreshAccessToken.Validation should have comment or be unexported (golint)
    • Line 98: warning: exported type OAuthCreateClient should have comment or be unexported (golint)
    • Line 104: warning: exported method OAuthCreateClient.Validation should have comment or be unexported (golint)
    • Line 112: warning: exported type OAuthClientStatus should have comment or be unexported (golint)
    • Line 117: warning: exported method OAuthClientStatus.Validation should have comment or be unexported (golint)
    • pluto/middleware/utils.go
    • Line 11: warning: exported type HandlerWrapper should have comment or be unexported (golint)
    • Line 13: warning: exported function AccessTokenAuthMiddleware should have comment or be unexported (golint)
    • Line 22: warning: exported function PlutoUserAuthMiddleware should have comment or be unexported (golint)
    • Line 31: warning: exported function PlutoAdminAuthMiddleware should have comment or be unexported (golint)
    • Line 40: warning: exported function NoAuthMiddleware should have comment or be unexported (golint)
    • pluto/route/v1/utils.go
    • Line 9: warning: exported type Router should have comment or be unexported (golint)
    • Line 15: warning: exported function NewRouter should have comment or be unexported (golint)
    • pluto/utils/jwt/jwt.go
    • Line 17: warning: exported const RS256ALGRAS should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type JWT should have comment or be unexported (golint)
    • Line 33: warning: exported method JWT.B64String should have comment or be unexported (golint)
    • Line 38: warning: exported method JWT.UnmarshalPayload should have comment or be unexported (golint)
    • Line 50: warning: exported type Head should have comment or be unexported (golint)
    • Line 55: warning: exported type Payload should have comment or be unexported (golint)
    • Line 61: warning: exported type AccessPayload should have comment or be unexported (golint)
    • Line 68: warning: exported function NewAccessPayload should have comment or be unexported (golint)
    • Line 80: warning: exported type IDTokenPayload should have comment or be unexported (golint)
    • Line 89: warning: exported function NewIDTokenPayload should have comment or be unexported (golint)
    • Line 103: warning: exported type RegisterVerifyPayload should have comment or be unexported (golint)
    • Line 108: warning: exported function NewRegisterVerifyPayload should have comment or be unexported (golint)
    • Line 118: warning: exported type PasswordResetPayload should have comment or be unexported (golint)
    • Line 123: warning: exported function NewPasswordResetPayload should have comment or be unexported (golint)
    • Line 133: warning: exported type PasswordResetResultPayload should have comment or be unexported (golint)
    • Line 138: warning: exported function GenerateRSA256JWT should have comment or be unexported (golint)
    • Line 168: warning: exported function VerifyRS256JWT should have comment or be unexported (golint)
    • Line 193: warning: exported function VerifyB64RS256JWT should have comment or be unexported (golint)
    • pluto/route/v1/admin.go
    • Line 12: warning: exported method Router.CreateRole should have comment or be unexported (golint)
    • Line 25: warning: exported method Router.CreateScope should have comment or be unexported (golint)
    • Line 40: warning: exported method Router.RoleScopeUpdate should have comment or be unexported (golint)
    • Line 55: warning: exported method Router.CreateApplication should have comment or be unexported (golint)
    • Line 76: warning: exported method Router.ApplicationDefaultRole should have comment or be unexported (golint)
    • Line 91: warning: exported method Router.RoleDefaultScope should have comment or be unexported (golint)
    • Line 106: warning: exported method Router.ListApplications should have comment or be unexported (golint)
    • Line 133: warning: exported method Router.ListRoles should have comment or be unexported (golint)
    • Line 153: warning: exported method Router.ListScopes should have comment or be unexported (golint)
    • Line 190: warning: exported method Router.SetUserRole should have comment or be unexported (golint)
    • Line 208: warning: exported method Router.FindUser should have comment or be unexported (golint)
    • Line 231: warning: exported method Router.UserSummary should have comment or be unexported (golint)
    • pluto/modelexts/exts.go
    • Line 5: warning: exported type User should have comment or be unexported (golint)
    • Line 12: warning: exported method User.Format should have comment or be unexported (golint)
    • Line 33: warning: exported method User.PublicInfo should have comment or be unexported (golint)
    • Line 41: warning: exported type Scopes should have comment or be unexported (golint)
    • Line 46: warning: exported method Scopes.Format should have comment or be unexported (golint)
    • Line 67: warning: exported type Roles should have comment or be unexported (golint)
    • Line 72: warning: exported type Role should have comment or be unexported (golint)
    • Line 77: warning: exported method Roles.Format should have comment or be unexported (golint)
    • Line 109: warning: exported type UserApplicationRole should have comment or be unexported (golint)
    • Line 114: warning: exported type FindUser should have comment or be unexported (golint)
    • Line 120: warning: exported method FindUser.Format should have comment or be unexported (golint)
    • Line 156: warning: exported type OauthClient should have comment or be unexported (golint)
    • Line 161: warning: exported method OauthClient.Format should have comment or be unexported (golint)
    • pluto/log/log.go
    • Line 12: warning: exported type PlutoLog should have comment or be unexported (golint)
    • Line 20: warning: exported method PlutoLog.Info should have comment or be unexported (golint)
    • Line 24: warning: exported method PlutoLog.Debug should have comment or be unexported (golint)
    • Line 28: warning: exported method PlutoLog.Warn should have comment or be unexported (golint)
    • Line 32: warning: exported method PlutoLog.With should have comment or be unexported (golint)
    • Line 39: warning: exported function NewLogger should have comment or be unexported (golint)
    • pluto/route/v1/oauth.go
    • Line 26: warning: exported method Router.OAuthTokens should have comment or be unexported (golint)
    • Line 82: warning: exported method Router.OAuthAuthorize should have comment or be unexported (golint)
    • Line 137: warning: exported method Router.OAuthLogin should have comment or be unexported (golint)
    • Line 200: warning: exported method Router.OAuthGetClient should have comment or be unexported (golint)
    • Line 222: warning: exported method Router.OAuthCreateClient should have comment or be unexported (golint)
    • Line 247: warning: exported method Router.OAuthApproveClient should have comment or be unexported (golint)
    • pluto/config/config.go
    • Line 14: warning: exported type PlutoConfig should have comment or be unexported (golint)
    • Line 17: warning: exported type PlutoValue should have comment or be unexported (golint)
    • Line 22: warning: exported type Config should have comment or be unexported (golint)
    • Line 41: warning: exported function NewConfig should have comment or be unexported (golint)
    • pluto/middleware/pluto.go
    • Line 46: warning: exported function PlutoAdmin should have comment or be unexported (golint)
    • Line 64: warning: exported function PlutoUser should have comment or be unexported (golint)
    • pluto/config/config_log.go
    • Line 9: warning: exported type LogConfig should have comment or be unexported (golint)
    • Line 15: warning: exported type AllowedLevel should have comment or be unexported (golint)
    • Line 24: warning: exported method AllowedLevel.Set should have comment or be unexported (golint)
    • Line 41: warning: exported method AllowedLevel.GetLevelOption should have comment or be unexported (golint)
    • Line 45: warning: exported type AllowedFormat should have comment or be unexported (golint)
    • Line 49: warning: exported method AllowedFormat.Set should have comment or be unexported (golint)
    • pluto/utils/avatar/avatar.go
    • Line 28: warning: exported type AvatarGen should have comment or be unexported (golint)
    • Line 31: warning: exported type AvatarReader should have comment or be unexported (golint)
    • Line 37: warning: exported method AvatarGen.GenFromBase64String should have comment or be unexported (golint)
    • Line 58: warning: exported method AvatarGen.GenFromGravatar should have comment or be unexported (golint)
    • Line 78: warning: exported method AvatarSaver.SaveAvatarImageInOSS should have comment or be unexported (golint)
    • Line 112: warning: exported method AvatarSaver.SaveAvatarImageInLocal should have comment or be unexported (golint)
    • Line 116: warning: exported type AvatarSaver should have comment or be unexported (golint)
    • Line 124: warning: exported function NewAvatarSaver should have comment or be unexported (golint)
    • pluto/route/v1/user.go
    • Line 14: warning: exported method Router.Login should have comment or be unexported (golint)
    • Line 39: warning: exported method Router.GoogleLoginMobile should have comment or be unexported (golint)
    • Line 57: warning: exported method Router.WechatLoginMobile should have comment or be unexported (golint)
    • Line 75: warning: exported method Router.AppleLoginMobile should have comment or be unexported (golint)
    • Line 93: warning: exported method Router.Binding should have comment or be unexported (golint)
    • Line 137: warning: exported method Router.Unbinding should have comment or be unexported (golint)
    • Line 165: warning: exported method Router.PasswordResetMail should have comment or be unexported (golint)
    • Line 193: warning: exported method Router.UserInfo should have comment or be unexported (golint)
    • Line 210: warning: exported method Router.UpdateUserInfo should have comment or be unexported (golint)
    • Line 230: warning: exported method Router.Register should have comment or be unexported (golint)
    • Line 264: warning: exported method Router.VerifyMail should have comment or be unexported (golint)
    • Line 292: warning: exported method Router.PublicUserInfo should have comment or be unexported (golint)
    • pluto/utils/view/view.go
    • Line 19: warning: exported type View should have comment or be unexported (golint)
    • Line 25: warning: exported function GetView should have comment or be unexported (golint)
    • Line 33: warning: exported function InitView should have comment or be unexported (golint)
    • Line 70: warning: exported method View.IsExist should have comment or be unexported (golint)
    • Line 77: warning: exported method View.GetMatchLanguage should have comment or be unexported (golint)
    • Line 77: warning: receiver name v should be consistent with previous receiver name view for View (golint)
    • Line 91: warning: exported method View.GetMatchLanguageFile should have comment or be unexported (golint)
    • Line 91: warning: receiver name v should be consistent with previous receiver name view for View (golint)
    • Line 108: warning: exported method View.Parse should have comment or be unexported (golint)
    • Line 108: warning: receiver name v should be consistent with previous receiver name view for View (golint)
    • pluto/utils/route/route.go
    • Line 25: warning: exported function GetBaseURL should have comment or be unexported (golint)
    • Line 41: warning: exported function GetRequestData should have comment or be unexported (golint)
    • Line 80: warning: exported function GetAccessPayload should have comment or be unexported (golint)
    • Line 105: warning: exported function ResponseOK should have comment or be unexported (golint)
    • Line 122: warning: exported function ResponseError should have comment or be unexported (golint)
    • Line 143: warning: exported function ResponseHTMLOK should have comment or be unexported (golint)
    • Line 162: warning: exported function ResponseHTMLError should have comment or be unexported (golint)
    • Line 184: warning: comment on exported function RedirectWithQueryString should be of the form "RedirectWithQueryString ..." (golint)
    • Line 189: warning: comment on exported function RedirectWithFragment should be of the form "RedirectWithFragment ..." (golint)
    • Line 194: warning: comment on exported function ErrorRedirect should be of the form "ErrorRedirect ..." (golint)
    • Line 209: warning: comment on exported function GetQueryString should be of the form "GetQueryString ..." (golint)
    • Line 228: warning: exported function PlutoLog should have comment or be unexported (golint)
    • pluto/datatype/request/user.go
    • Line 7: warning: exported type MailRegister should have comment or be unexported (golint)
    • Line 13: warning: exported method MailRegister.Validation should have comment or be unexported (golint)
    • Line 20: warning: exported type PasswordLogin should have comment or be unexported (golint)
    • Line 27: warning: exported method PasswordLogin.Validation should have comment or be unexported (golint)
    • Line 44: warning: exported type GoogleMobileLogin should have comment or be unexported (golint)
    • Line 50: warning: exported method GoogleMobileLogin.Validation should have comment or be unexported (golint)
    • Line 67: warning: exported type WechatMobileLogin should have comment or be unexported (golint)
    • Line 73: warning: exported method WechatMobileLogin.Validation should have comment or be unexported (golint)
    • Line 90: warning: exported type AppleMobileLogin should have comment or be unexported (golint)
    • Line 96: warning: exported method AppleMobileLogin.Validation should have comment or be unexported (golint)
    • Line 113: warning: exported type RegisterVerifyMail should have comment or be unexported (golint)
    • Line 117: warning: exported method RegisterVerifyMail.Validation should have comment or be unexported (golint)
    • Line 125: warning: exported type ResetPasswordMail should have comment or be unexported (golint)
    • Line 129: warning: exported method ResetPasswordMail.Validation should have comment or be unexported (golint)
    • Line 137: warning: exported type ResetPasswordWeb should have comment or be unexported (golint)
    • Line 141: warning: exported method ResetPasswordWeb.Validation should have comment or be unexported (golint)
    • Line 149: warning: exported type UpdateUserInfo should have comment or be unexported (golint)
    • Line 154: warning: exported method UpdateUserInfo.Validation should have comment or be unexported (golint)
    • Line 162: warning: exported type VerifyAccessToken should have comment or be unexported (golint)
    • Line 166: warning: exported method VerifyAccessToken.Validation should have comment or be unexported (golint)
    • Line 174: warning: exported type VerifyIDToken should have comment or be unexported (golint)
    • Line 178: warning: exported method VerifyIDToken.Validation should have comment or be unexported (golint)
    • Line 186: warning: exported type Binding should have comment or be unexported (golint)
    • Line 193: warning: exported method Binding.Validation should have comment or be unexported (golint)
    • Line 200: warning: exported type UnBinding should have comment or be unexported (golint)
    • Line 204: warning: exported method UnBinding.Validation should have comment or be unexported (golint)
    • Line 212: warning: exported type PublicUserInfos should have comment or be unexported (golint)
    • pluto/server/server.go
    • Line 23: warning: exported type Server should have comment or be unexported (golint)
    • Line 26: warning: exported function NewMux should have comment or be unexported (golint)
    • pluto/manage/token.go
    • Line 14: warning: exported method Manager.RefreshAccessToken should have comment or be unexported (golint)
    • Line 75: warning: exported method Manager.VerifyAccessToken should have comment or be unexported (golint)
    • pluto/config/config_database.go
    • Line 5: warning: exported type DatabaseConfig should have comment or be unexported (golint)
    • Line 16: warning: exported type DBType should have comment or be unexported (golint)
    • Line 20: warning: exported method DBType.Set should have comment or be unexported (golint)
    • pluto/datatype/request/admin.go
    • Line 3: warning: exported type FindUser should have comment or be unexported (golint)
    • Line 7: warning: exported method FindUser.Validation should have comment or be unexported (golint)
    • Line 14: warning: exported type CreateRole should have comment or be unexported (golint)
    • Line 19: warning: exported method CreateRole.Validation should have comment or be unexported (golint)
    • Line 26: warning: exported type CreateScope should have comment or be unexported (golint)
    • Line 31: warning: exported method CreateScope.Validation should have comment or be unexported (golint)
    • Line 38: warning: exported type CreateApplication should have comment or be unexported (golint)
    • Line 42: warning: exported method CreateApplication.Validation should have comment or be unexported (golint)
    • Line 49: warning: exported type RoleScope should have comment or be unexported (golint)
    • Line 54: warning: exported method RoleScope.Validation should have comment or be unexported (golint)
    • Line 64: warning: exported type RoleScopeUpdate should have comment or be unexported (golint)
    • Line 69: warning: exported method RoleScopeUpdate.Validation should have comment or be unexported (golint)
    • Line 79: warning: exported type ApplicationRole should have comment or be unexported (golint)
    • Line 84: warning: exported method ApplicationRole.Validation should have comment or be unexported (golint)
    • Line 92: warning: exported type ListRoles should have comment or be unexported (golint)
    • Line 96: warning: exported method ListRoles.Validation should have comment or be unexported (golint)
    • Line 104: warning: exported type ListScopes should have comment or be unexported (golint)
    • Line 108: warning: exported method ListScopes.Validation should have comment or be unexported (golint)
    • Line 116: warning: exported type UserRole should have comment or be unexported (golint)
    • Line 122: warning: exported method UserRole.Validation should have comment or be unexported (golint)
    • pluto/route/v1/token.go
    • Line 12: warning: exported method Router.RefreshToken should have comment or be unexported (golint)
    • Line 31: warning: exported method Router.PublicKey should have comment or be unexported (golint)
    • Line 48: warning: exported method Router.VerifyAccessToken should have comment or be unexported (golint)
    • pluto/manage/utils.go
    • Line 158: warning: exported type Manager should have comment or be unexported (golint)
    • Line 164: warning: exported function NewManager should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.

    • pluto/manage/admin.go
    • Line 10: warning: could not import github.com/leeif/pluto/models (invalid package name: "") (ineffassign)
    • Line 322: warning: r.ID undefined (type modelexts.Role has no field or method ID) (ineffassign)
    • pluto/modelexts/exts.go
    • Line 3: warning: no required module provides package github.com/leeif/pluto/models; to add it: (ineffassign)
    • Line 3: warning: could not import github.com/leeif/pluto/models (invalid package name: "") (ineffassign)
    • Line 89: warning: role.ID undefined (type Role has no field or method ID) (ineffassign)
    • Line 90: warning: role.Name undefined (type Role has no field or method Name) (ineffassign)
    • Line 91: warning: role.DefaultScope undefined (type Role has no field or method DefaultScope) (ineffassign)
    • Line 129: warning: application.ID undefined (type *UserApplicationRole has no field or method ID) (ineffassign)
    • Line 130: warning: application.Name undefined (type *UserApplicationRole has no field or method Name) (ineffassign)
    • /home/shawn/mygo/src/github.com/gojp/goreportcard/_repos/src/github.com/leeif/pluto/modelexts/exts.go
    • Line 3: warning: no required module provides package github.com/leeif/pluto/models; to add it: (ineffassign)
    • Line 3: warning: could not import github.com/leeif/pluto/models (invalid package name: "") (ineffassign)
    • Line 3: warning: no required module provides package github.com/leeif/pluto/models; to add it: (ineffassign)
    • Line 3: warning: could not import github.com/leeif/pluto/models (invalid package name: "") (ineffassign)
    • Line 3: warning: no required module provides package github.com/leeif/pluto/models; to add it: (ineffassign)
    • Line 3: warning: could not import github.com/leeif/pluto/models (invalid package name: "") (ineffassign)
    • Line 3: warning: no required module provides package github.com/leeif/pluto/models; to add it: (ineffassign)
    • Line 3: warning: could not import github.com/leeif/pluto/models (invalid package name: "") (ineffassign)
    • Line 3: warning: no required module provides package github.com/leeif/pluto/models; to add it: (ineffassign)
    • Line 3: warning: could not import github.com/leeif/pluto/models (invalid package name: "") (ineffassign)

misspell98%

Misspell Finds commonly misspelled English words