Preparing report...

Report for github.com/MuShare/pluto

A    Great!    Found 55 issues across 62 files

Tweet

gofmt83%

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!


gocyclo91%

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/user.go
    • Line 942: warning: cyclomatic complexity 19 of function (*Manager).ResetPassword() is high (> 15) (gocyclo)
    • Line 467: warning: cyclomatic complexity 18 of function (*Manager).WechatLoginMobile() is high (> 15) (gocyclo)
    • Line 737: warning: cyclomatic complexity 17 of function (*Manager).AppleLoginMobile() is high (> 15) (gocyclo)
    • Line 378: warning: cyclomatic complexity 17 of function (*Manager).WechatLoginWeb() is high (> 15) (gocyclo)
    • Line 249: warning: cyclomatic complexity 16 of function (*Manager).GoogleLoginMobile() is high (> 15) (gocyclo)
    • Line 1156: warning: cyclomatic complexity 16 of function (*Manager).RegisterWithEmail() is high (> 15) (gocyclo)
    • pluto/manage/admin.go
    • Line 383: warning: cyclomatic complexity 18 of function (*Manager).ListRoles() is high (> 15) (gocyclo)
    • Line 239: warning: cyclomatic complexity 17 of function (*Manager).RoleScopeUpdate() is high (> 15) (gocyclo)

golint12%

Golint is a linter for Go source code.

    • 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/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/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/manage/oauth.go
    • Line 25: warning: exported const ClientPend should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type GrantResult should have comment or be unexported (golint)
    • Line 37: warning: exported type AuthorizeResult should have comment or be unexported (golint)
    • Line 102: warning: exported method Manager.GetClientByKey should have comment or be unexported (golint)
    • Line 132: warning: exported method Manager.AuthorizationCodeGrant should have comment or be unexported (golint)
    • Line 179: warning: exported method Manager.PasswordGrant should have comment or be unexported (golint)
    • Line 214: warning: exported method Manager.ClientCredentialGrant should have comment or be unexported (golint)
    • Line 230: warning: exported method Manager.RefreshTokenGrant should have comment or be unexported (golint)
    • Line 452: warning: exported method Manager.GrantAuthorizationCode should have comment or be unexported (golint)
    • Line 517: warning: exported method Manager.GrantAccessToken should have comment or be unexported (golint)
    • Line 577: warning: exported method Manager.OAuthGetClient should have comment or be unexported (golint)
    • Line 609: warning: exported method Manager.OAuthCreateClient should have comment or be unexported (golint)
    • Line 650: warning: exported method Manager.UpdateOAuthClientStatus should have comment or be unexported (golint)
    • pluto/modelexts/exts.go
    • Line 9: warning: exported type User should have comment or be unexported (golint)
    • Line 17: warning: exported method User.Format should have comment or be unexported (golint)
    • Line 41: warning: exported method User.PublicInfo should have comment or be unexported (golint)
    • Line 49: warning: exported type Scopes should have comment or be unexported (golint)
    • Line 54: warning: exported method Scopes.Format should have comment or be unexported (golint)
    • Line 75: warning: exported type Roles should have comment or be unexported (golint)
    • Line 80: warning: exported type Role should have comment or be unexported (golint)
    • Line 85: warning: exported method Roles.Format should have comment or be unexported (golint)
    • Line 117: warning: exported type UserApplicationRole should have comment or be unexported (golint)
    • Line 122: warning: exported type FindUser should have comment or be unexported (golint)
    • Line 128: warning: exported method FindUser.Format should have comment or be unexported (golint)
    • Line 164: warning: exported type OauthClient should have comment or be unexported (golint)
    • Line 169: warning: exported method OauthClient.Format should have comment or be unexported (golint)
    • Line 178: warning: exported type ApplicationI18nName should have comment or be unexported (golint)
    • Line 183: warning: exported type ApplicationI18nNameInfo should have comment or be unexported (golint)
    • Line 189: warning: exported method ApplicationI18nNameInfo.Format should have comment or be unexported (golint)
    • Line 197: warning: exported type GoogleLogin should have comment or be unexported (golint)
    • Line 201: warning: exported type WechatLogin should have comment or be unexported (golint)
    • Line 211: warning: exported type AppleLogin should have comment or be unexported (golint)
    • pluto/utils/mail/mail.go
    • Line 19: warning: exported type Mail should have comment or be unexported (golint)
    • Line 24: warning: exported type SendMailRequest should have comment or be unexported (golint)
    • Line 31: warning: exported type SendMailResponse should have comment or be unexported (golint)
    • Line 36: warning: exported method Mail.Send should have comment or be unexported (golint)
    • Line 58: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 61: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 66: warning: exported method Mail.SendPlainText should have comment or be unexported (golint)
    • Line 74: warning: exported method Mail.SendRegisterVerify should have comment or be unexported (golint)
    • Line 113: warning: exported method Mail.SendResetPassword should have comment or be unexported (golint)
    • Line 152: warning: exported function NewMail should have comment or be unexported (golint)
    • pluto/utils/admin/admin.go
    • Line 22: warning: exported function Init should have comment or be unexported (golint)
    • Line 130: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (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 UpdateApplicationI18Name should have comment or be unexported (golint)
    • Line 57: warning: exported method UpdateApplicationI18Name.Validation should have comment or be unexported (golint)
    • Line 66: warning: exported type ApplicationI18Name should have comment or be unexported (golint)
    • Line 70: warning: exported method ApplicationI18Name.Validation should have comment or be unexported (golint)
    • Line 77: warning: exported type RoleScope should have comment or be unexported (golint)
    • Line 82: warning: exported method RoleScope.Validation should have comment or be unexported (golint)
    • Line 92: warning: exported type RoleScopeUpdate should have comment or be unexported (golint)
    • Line 97: warning: exported method RoleScopeUpdate.Validation should have comment or be unexported (golint)
    • Line 107: warning: exported type ApplicationRole should have comment or be unexported (golint)
    • Line 112: warning: exported method ApplicationRole.Validation should have comment or be unexported (golint)
    • Line 120: warning: exported type ListRoles should have comment or be unexported (golint)
    • Line 124: warning: exported method ListRoles.Validation should have comment or be unexported (golint)
    • Line 132: warning: exported type ListScopes should have comment or be unexported (golint)
    • Line 136: warning: exported method ListScopes.Validation should have comment or be unexported (golint)
    • Line 144: warning: exported type UserRole should have comment or be unexported (golint)
    • Line 150: warning: exported method UserRole.Validation should have comment or be unexported (golint)
    • pluto/utils/route/route.go
    • Line 28: warning: exported function GetBaseURL should have comment or be unexported (golint)
    • Line 44: warning: exported function GetRequestData should have comment or be unexported (golint)
    • Line 83: warning: exported function GetAccessPayload should have comment or be unexported (golint)
    • Line 108: warning: exported function ResponseOK should have comment or be unexported (golint)
    • Line 125: warning: exported function ResponseError should have comment or be unexported (golint)
    • Line 146: warning: exported function ResponseHTMLOK should have comment or be unexported (golint)
    • Line 169: warning: exported function ResponseHTMLError should have comment or be unexported (golint)
    • Line 210: warning: comment on exported function RedirectWithQueryString should be of the form "RedirectWithQueryString ..." (golint)
    • Line 215: warning: comment on exported function RedirectWithFragment should be of the form "RedirectWithFragment ..." (golint)
    • Line 220: warning: comment on exported function ErrorRedirect should be of the form "ErrorRedirect ..." (golint)
    • Line 235: warning: comment on exported function GetQueryString should be of the form "GetQueryString ..." (golint)
    • Line 254: warning: exported function PlutoLog 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/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/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/server/server.go
    • Line 20: warning: exported type Server should have comment or be unexported (golint)
    • Line 23: warning: exported function NewMux should have comment or be unexported (golint)
    • pluto/route/routes.go
    • Line 21: warning: exported type PlutoRoute should have comment or be unexported (golint)
    • Line 29: warning: exported type Router should have comment or be unexported (golint)
    • Line 47: warning: exported method Router.RegisterV1 should have comment or be unexported (golint)
    • Line 57: warning: exported method Router.Register should have comment or be unexported (golint)
    • Line 70: warning: exported function NewRouter should have comment or be unexported (golint)
    • pluto/route/v1/utils.go
    • Line 10: warning: exported type Router should have comment or be unexported (golint)
    • Line 17: 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 124: warning: exported function NewPasswordResetPayload should have comment or be unexported (golint)
    • Line 135: warning: exported type PasswordResetResultPayload should have comment or be unexported (golint)
    • Line 140: warning: exported function GenerateRSA256JWT should have comment or be unexported (golint)
    • Line 170: warning: exported function VerifyRS256JWT should have comment or be unexported (golint)
    • Line 195: warning: exported function VerifyB64RS256JWT 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/manage/user.go
    • Line 36: warning: exported const MAILLOGIN should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: comment on exported const WECHATLOGIN should be of the form "WECHATLOGIN ..." (golint)
    • Line 61: warning: exported method Manager.RandomUserName should have comment or be unexported (golint)
    • Line 79: warning: exported method Manager.MailPasswordLogin should have comment or be unexported (golint)
    • Line 141: warning: exported method Manager.NamePasswordLogin should have comment or be unexported (golint)
    • Line 249: warning: exported method Manager.GoogleLoginMobile should have comment or be unexported (golint)
    • Line 378: warning: exported method Manager.WechatLoginWeb should have comment or be unexported (golint)
    • Line 467: warning: exported method Manager.WechatLoginMobile should have comment or be unexported (golint)
    • Line 737: warning: exported method Manager.AppleLoginMobile should have comment or be unexported (golint)
    • Line 885: warning: exported method Manager.ResetPasswordMail should have comment or be unexported (golint)
    • Line 898: warning: exported method Manager.ResetPasswordPage should have comment or be unexported (golint)
    • Line 942: warning: exported method Manager.ResetPassword should have comment or be unexported (golint)
    • Line 1027: warning: exported method Manager.UserInfo should have comment or be unexported (golint)
    • Line 1066: warning: exported method Manager.UpdateUserInfo should have comment or be unexported (golint)
    • Line 1156: warning: exported method Manager.RegisterWithEmail should have comment or be unexported (golint)
    • Line 1236: warning: exported method Manager.RegisterVerifyMail should have comment or be unexported (golint)
    • Line 1272: warning: exported method Manager.RegisterVerify should have comment or be unexported (golint)
    • Line 1335: warning: exported method Manager.BindMail should have comment or be unexported (golint)
    • Line 1356: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1389: warning: exported method Manager.BindGoogle should have comment or be unexported (golint)
    • Line 1441: warning: exported method Manager.BindApple should have comment or be unexported (golint)
    • Line 1498: warning: exported method Manager.BindWechat should have comment or be unexported (golint)
    • Line 1559: warning: exported method Manager.Unbind should have comment or be unexported (golint)
    • Line 1594: warning: exported method Manager.PublicUserInfo 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/manage/admin.go
    • Line 19: warning: exported method Manager.CreateRole should have comment or be unexported (golint)
    • Line 54: warning: exported method Manager.CreateScope should have comment or be unexported (golint)
    • Line 89: warning: exported method Manager.CreateApplication should have comment or be unexported (golint)
    • Line 116: warning: exported method Manager.UpdateApplicationI18nNames should have comment or be unexported (golint)
    • Line 130: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 147: warning: exported method Manager.GetApplication should have comment or be unexported (golint)
    • Line 160: warning: exported method Manager.ApplicationI18nName should have comment or be unexported (golint)
    • Line 172: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 210: warning: exported method Manager.ApplicationI18nNameList should have comment or be unexported (golint)
    • Line 239: warning: exported method Manager.RoleScopeUpdate should have comment or be unexported (golint)
    • Line 305: warning: exported method Manager.ApplicationDefaultRole should have comment or be unexported (golint)
    • Line 333: warning: exported method Manager.RoleDefaultScope should have comment or be unexported (golint)
    • Line 372: warning: exported method Manager.ListApplications should have comment or be unexported (golint)
    • Line 383: warning: exported method Manager.ListRoles should have comment or be unexported (golint)
    • Line 458: warning: exported method Manager.ListScopes should have comment or be unexported (golint)
    • Line 482: warning: exported method Manager.SetUserRole should have comment or be unexported (golint)
    • Line 528: warning: exported method Manager.UserSummary should have comment or be unexported (golint)
    • Line 538: warning: exported method Manager.FindUser should have comment or be unexported (golint)
    • pluto/manage/utils.go
    • Line 159: warning: exported type Manager should have comment or be unexported (golint)
    • Line 165: warning: exported function NewManager 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/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/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.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 MiscConfig should have comment or be unexported (golint)
    • Line 30: warning: exported type Config should have comment or be unexported (golint)
    • Line 47: warning: exported function NewConfig should have comment or be unexported (golint)
    • pluto/route/v1/user.go
    • Line 18: warning: exported method Router.Login should have comment or be unexported (golint)
    • Line 43: warning: exported method Router.GoogleLoginMobile should have comment or be unexported (golint)
    • Line 61: warning: exported method Router.WechatLoginWeb should have comment or be unexported (golint)
    • Line 91: warning: exported method Router.WechatLoginMobile should have comment or be unexported (golint)
    • Line 109: warning: exported method Router.AppleLoginMobile should have comment or be unexported (golint)
    • Line 127: warning: exported method Router.Binding should have comment or be unexported (golint)
    • Line 194: warning: exported method Router.Unbinding should have comment or be unexported (golint)
    • Line 222: warning: exported method Router.PasswordResetMail should have comment or be unexported (golint)
    • Line 255: warning: exported method Router.UserInfo should have comment or be unexported (golint)
    • Line 272: warning: exported method Router.UpdateUserInfo should have comment or be unexported (golint)
    • Line 292: warning: exported method Router.Register should have comment or be unexported (golint)
    • Line 333: warning: exported method Router.VerifyMail should have comment or be unexported (golint)
    • Line 367: warning: exported method Router.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/datatype/request/user.go
    • Line 13: warning: exported type MailRegister should have comment or be unexported (golint)
    • Line 21: warning: exported method MailRegister.Validation should have comment or be unexported (golint)
    • Line 28: warning: exported type PasswordLogin should have comment or be unexported (golint)
    • Line 35: warning: exported method PasswordLogin.Validation should have comment or be unexported (golint)
    • Line 52: warning: exported type GoogleMobileLogin should have comment or be unexported (golint)
    • Line 58: warning: exported method GoogleMobileLogin.Validation should have comment or be unexported (golint)
    • Line 75: warning: exported type WechatMobileLogin should have comment or be unexported (golint)
    • Line 83: warning: exported type WechatWebLoginState should have comment or be unexported (golint)
    • Line 90: warning: exported method WechatMobileLogin.Validation should have comment or be unexported (golint)
    • Line 107: warning: exported type AppleMobileLogin should have comment or be unexported (golint)
    • Line 115: warning: exported method AppleMobileLogin.Validation should have comment or be unexported (golint)
    • Line 132: warning: exported type RegisterVerifyMail should have comment or be unexported (golint)
    • Line 138: warning: exported method RegisterVerifyMail.Validation should have comment or be unexported (golint)
    • Line 146: warning: exported type ResetPasswordMail should have comment or be unexported (golint)
    • Line 151: warning: exported method ResetPasswordMail.Validation should have comment or be unexported (golint)
    • Line 159: warning: exported type ResetPasswordWeb should have comment or be unexported (golint)
    • Line 163: warning: exported method ResetPasswordWeb.Validation should have comment or be unexported (golint)
    • Line 171: warning: exported type UpdateUserInfo should have comment or be unexported (golint)
    • Line 177: warning: exported method UpdateUserInfo.Validation should have comment or be unexported (golint)
    • Line 197: warning: exported type VerifyAccessToken should have comment or be unexported (golint)
    • Line 201: warning: exported method VerifyAccessToken.Validation should have comment or be unexported (golint)
    • Line 209: warning: exported type VerifyIDToken should have comment or be unexported (golint)
    • Line 213: warning: exported method VerifyIDToken.Validation should have comment or be unexported (golint)
    • Line 221: warning: exported type Binding should have comment or be unexported (golint)
    • Line 228: warning: exported method Binding.Validation should have comment or be unexported (golint)
    • Line 235: warning: exported type UnBinding should have comment or be unexported (golint)
    • Line 239: warning: exported method UnBinding.Validation should have comment or be unexported (golint)
    • Line 247: warning: exported type PublicUserInfos 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.UpdateI18nName should have comment or be unexported (golint)
    • Line 90: warning: exported method Router.ApplicationI18nName should have comment or be unexported (golint)
    • Line 105: warning: exported method Router.ApplicationDefaultRole should have comment or be unexported (golint)
    • Line 120: warning: exported method Router.RoleDefaultScope should have comment or be unexported (golint)
    • Line 135: warning: exported method Router.ListApplications should have comment or be unexported (golint)
    • Line 162: warning: exported method Router.ListRoles should have comment or be unexported (golint)
    • Line 182: warning: exported method Router.ListScopes should have comment or be unexported (golint)
    • Line 219: warning: exported method Router.SetUserRole should have comment or be unexported (golint)
    • Line 237: warning: exported method Router.FindUser should have comment or be unexported (golint)
    • Line 260: warning: exported method Router.UserSummary 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_mail.go
    • Line 3: warning: exported type MailConfig should have comment or be unexported (golint)
    • Line 7: warning: exported type SMTP should have comment or be unexported (golint)
    • Line 11: warning: exported method SMTP.Set 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/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/config/config_server.go
    • Line 3: warning: exported type ServerConfig should have comment or be unexported (golint)
    • Line 12: warning: exported type Port should have comment or be unexported (golint)
    • Line 16: warning: exported method Port.Set should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell98%

Misspell Finds commonly misspelled English words