Preparing report...

Report for github.com/grokify/oauth2util

A+    Excellent!    Found 58 issues across 73 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!


golint20%

Golint is a linter for Go source code.

    • oauth2util/oauth2more.go
    • Line 15: warning: exported const VERSION should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type AuthorizationType should have comment or be unexported (golint)
    • Line 25: warning: exported const Anonymous should have comment (or a comment on this block) or be unexported (golint)
    • Line 71: warning: exported function PathVersion should have comment or be unexported (golint)
    • Line 75: warning: exported type ServiceType should have comment or be unexported (golint)
    • Line 78: warning: exported const Google should have comment (or a comment on this block) or be unexported (golint)
    • Line 84: warning: comment on exported type AppCredentials should be of the form "AppCredentials ..." (with optional leading article) (golint)
    • Line 103: warning: exported method AppCredentials.Defaultify should have comment or be unexported (golint)
    • Line 118: warning: exported type AppCredentialsWrapper should have comment or be unexported (golint)
    • Line 123: warning: exported method AppCredentialsWrapper.Config should have comment or be unexported (golint)
    • Line 136: warning: exported function NewAppCredentialsWrapperFromBytes should have comment or be unexported (golint)
    • Line 145: warning: exported method AppCredentials.Config should have comment or be unexported (golint)
    • Line 145: warning: receiver name c should be consistent with previous receiver name ac for AppCredentials (golint)
    • Line 166: warning: exported type OAuth2Util should have comment or be unexported (golint)
    • oauth2util/hubspot/contacts_import.go
    • Line 13: warning: exported function WriteContactsXLSX should have comment or be unexported (golint)
    • Line 45: warning: exported const ColumnsString should have comment or be unexported (golint)
    • Line 47: warning: exported function Columns should have comment or be unexported (golint)
    • oauth2util/facebook/facebook_clientutil.go
    • Line 15: warning: exported const FacebookAPIMeURL should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported function DefaultifyConfig should have comment or be unexported (golint)
    • Line 30: warning: exported function NewClientUtil should have comment or be unexported (golint)
    • Line 34: warning: exported method ClientUtil.SetClient should have comment or be unexported (golint)
    • Line 60: warning: exported type FacebookUserinfo should have comment or be unexported (golint)
    • Line 70: warning: exported method ClientUtil.GetSCIMUser should have comment or be unexported (golint)
    • oauth2util/scim/user.go
    • Line 36: warning: exported function NewUser should have comment or be unexported (golint)
    • Line 45: warning: exported method User.DisplayNameAny should have comment or be unexported (golint)
    • Line 84: warning: comment on exported method User.EmailAddress should be of the form "EmailAddress ..." (golint)
    • Line 102: warning: exported method User.PhoneNumber should have comment or be unexported (golint)
    • Line 107: warning: exported function GetOneItem should have comment or be unexported (golint)
    • Line 171: warning: exported method Address.InflateStreetAddress should have comment or be unexported (golint)
    • oauth2util/aha/aha_clientutil.go
    • Line 21: warning: exported function NewClientUtil should have comment or be unexported (golint)
    • Line 25: warning: exported method ClientUtil.SetClient should have comment or be unexported (golint)
    • Line 53: warning: exported type AhaUserinfoWrap should have comment or be unexported (golint)
    • Line 57: warning: exported type AhaUserinfo should have comment or be unexported (golint)
    • Line 63: warning: exported method ClientUtil.GetSCIMUser should have comment or be unexported (golint)
    • oauth2util/auth0/auth0.go
    • Line 1: warning: package comment should be of the form "Package auth0 ..." (golint)
    • Line 18: warning: exported function CreatePKCECodeVerifier should have comment or be unexported (golint)
    • Line 24: warning: exported function CreatePKCEChallengeS256 should have comment or be unexported (golint)
    • Line 29: warning: exported type PKCEAuthorizationUrlInfo should have comment or be unexported (golint)
    • Line 51: warning: exported method PKCEAuthorizationUrlInfo.Data should have comment or be unexported (golint)
    • Line 59: warning: exported type PKCETokenUrlInfo should have comment or be unexported (golint)
    • Line 68: warning: exported method PKCETokenUrlInfo.URL should have comment or be unexported (golint)
    • Line 72: warning: exported method PKCETokenUrlInfo.Body should have comment or be unexported (golint)
    • Line 76: warning: exported method PKCETokenUrlInfo.Exchange should have comment or be unexported (golint)
    • oauth2util/sparkpost/sparkpost.go
    • Line 7: warning: exported const BaseUrl should have comment or be unexported (golint)
    • Line 9: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 16: warning: exported function NewApiClient should have comment or be unexported (golint)
    • oauth2util/metabase/metabase_client.go
    • Line 22: warning: exported const MetabaseSessionHeader should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: comment on exported const EnvMetabaseBaseURL should be of the form "EnvMetabaseBaseURL ..." (golint)
    • Line 36: warning: exported var TLSInsecureSkipVerify should have comment or be unexported (golint)
    • Line 49: warning: exported method Config.Validate should have comment or be unexported (golint)
    • Line 66: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 91: warning: exported type AuthResponse should have comment or be unexported (golint)
    • Line 95: warning: comment on exported function NewClientPassword should be of the form "NewClientPassword ..." (golint)
    • Line 131: warning: exported function NewClientSessionId should have comment or be unexported (golint)
    • Line 148: warning: exported method Config.NewClient should have comment or be unexported (golint)
    • Line 152: warning: exported type ConfigEnvOpts should have comment or be unexported (golint)
    • Line 162: warning: exported method ConfigEnvOpts.Defaultify should have comment or be unexported (golint)
    • Line 180: warning: exported method ConfigEnvOpts.LoadEnv should have comment or be unexported (golint)
    • Line 187: warning: exported method ConfigEnvOpts.Config should have comment or be unexported (golint)
    • Line 196: warning: exported function NewClientEnv should have comment or be unexported (golint)
    • Line 264: warning: exported function BuildURL should have comment or be unexported (golint)
    • oauth2util/credentials_application.go
    • Line 14: warning: exported type ApplicationCredentials should have comment or be unexported (golint)
    • Line 29: warning: exported method ApplicationCredentials.Config should have comment or be unexported (golint)
    • Line 44: warning: exported method ApplicationCredentials.AuthCodeURL should have comment or be unexported (golint)
    • Line 49: warning: exported method ApplicationCredentials.Exchange should have comment or be unexported (golint)
    • Line 87: warning: exported method ApplicationCredentials.AppNameAndVersion should have comment or be unexported (golint)
    • Line 87: warning: receiver name ac should be consistent with previous receiver name app for ApplicationCredentials (golint)
    • Line 100: warning: exported method ApplicationCredentials.IsGrantType should have comment or be unexported (golint)
    • Line 107: warning: exported method ApplicationCredentials.InflateURL should have comment or be unexported (golint)
    • oauth2util/ringcentral/examples/glipbot_auth/glipbot_auth.go
    • Line 20: warning: exported type RingCentralConfig should have comment or be unexported (golint)
    • Line 34: warning: exported type AppHandler should have comment or be unexported (golint)
    • Line 38: warning: exported method AppHandler.HandleBotButton should have comment or be unexported (golint)
    • Line 51: warning: exported method AppHandler.HandleOauth2 should have comment or be unexported (golint)
    • oauth2util/zoom/zoom_clientutil.go
    • Line 13: warning: exported const ZoomAPIOAuth2AuthzURL should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type ClientUtil should have comment or be unexported (golint)
    • Line 27: warning: exported function NewClientUtil should have comment or be unexported (golint)
    • Line 31: warning: exported method ClientUtil.SetClient should have comment or be unexported (golint)
    • Line 35: warning: exported method ClientUtil.LoadUser should have comment or be unexported (golint)
    • Line 52: warning: exported method ClientUtil.GetSCIMUser should have comment or be unexported (golint)
    • Line 62: warning: exported function ZoomUserToScimUser should have comment or be unexported (golint)
    • Line 73: warning: exported type ZoomUser should have comment or be unexported (golint)
    • oauth2util/token_store.go
    • Line 17: warning: exported var RelCredentialsDir should have comment or be unexported (golint)
    • Line 42: warning: exported type TokenStoreFile should have comment or be unexported (golint)
    • Line 47: warning: exported function NewTokenStoreFile should have comment or be unexported (golint)
    • Line 64: warning: exported method TokenStoreFile.NewTokenCliFromWeb should have comment or be unexported (golint)
    • Line 74: warning: exported function UserCredentialsDir should have comment or be unexported (golint)
    • Line 82: warning: exported function UserCredentialsDirMk should have comment or be unexported (golint)
    • Line 91: warning: exported function NewClientWebTokenStore should have comment or be unexported (golint)
    • Line 104: warning: exported function NewTokenStoreFileDefault should have comment or be unexported (golint)
    • oauth2util/ringcentral/credentials_set.go
    • Line 12: warning: exported type CredentialsSet should have comment or be unexported (golint)
    • Line 16: warning: exported function ReadFileCredentialsSet should have comment or be unexported (golint)
    • Line 22: warning: exported method CredentialsSet.Get should have comment or be unexported (golint)
    • Line 29: warning: exported method CredentialsSet.NewSimpleClient should have comment or be unexported (golint)
    • Line 37: warning: exported function ReadCredentialsFromFile should have comment or be unexported (golint)
    • Line 45: warning: exported method CredentialsSet.GetClient should have comment or be unexported (golint)
    • Line 53: warning: exported method CredentialsSet.Accounts should have comment or be unexported (golint)
    • Line 55: warning: exported method CredentialsSet.Keys should have comment or be unexported (golint)
    • oauth2util/multiservice/multiservice.go
    • Line 21: warning: exported type OAuth2Manager should have comment or be unexported (golint)
    • Line 26: warning: exported function NewOAuth2Manager should have comment or be unexported (golint)
    • Line 33: warning: exported method OAuth2Manager.GetClient should have comment or be unexported (golint)
    • Line 53: warning: exported type AppURLs should have comment or be unexported (golint)
    • Line 84: warning: exported function NewClientUtilForProviderType should have comment or be unexported (golint)
    • Line 99: warning: exported function NewClientUtilForProviderTypeString should have comment or be unexported (golint)
    • oauth2util/ringcentral/ringcentral_client.go
    • Line 18: warning: exported function NewTokenPassword should have comment or be unexported (golint)
    • Line 83: warning: exported function RetrieveToken should have comment or be unexported (golint)
    • Line 91: warning: exported function RetrieveRcToken should have comment or be unexported (golint)
    • Line 131: warning: exported type RcToken should have comment or be unexported (golint)
    • Line 145: warning: exported method RcToken.Inflate should have comment or be unexported (golint)
    • Line 166: warning: exported method RcToken.OAuth2Token should have comment or be unexported (golint)
    • oauth2util/salesforce/salesforce_client.go
    • Line 14: warning: exported const AuthzURL should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported var Endpoint should have comment or be unexported (golint)
    • Line 26: warning: exported function NewClientPassword should have comment or be unexported (golint)
    • Line 50: warning: exported function NewClientPasswordSalesforceEnv should have comment or be unexported (golint)
    • oauth2util/multiservice/tokens/tokens.go
    • Line 12: warning: exported type TokenInfo should have comment or be unexported (golint)
    • Line 18: warning: exported function FormatKey should have comment or be unexported (golint)
    • Line 20: warning: exported type TokenSet should have comment or be unexported (golint)
    • Line 26: warning: exported function ParseTokenInfo should have comment or be unexported (golint)
    • Line 31: warning: exported function NewClientWithTokenSet should have comment or be unexported (golint)
    • oauth2util/google/google_clientutil.go
    • Line 14: warning: exported const GoogleAPIUserinfoURL should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported function NewClientUtil should have comment or be unexported (golint)
    • Line 32: warning: exported method ClientUtil.SetClient should have comment or be unexported (golint)
    • Line 53: warning: exported type GoogleUserinfoEmail should have comment or be unexported (golint)
    • Line 58: warning: exported function ParseGoogleUserinfoEmail should have comment or be unexported (golint)
    • Line 100: warning: exported type GoogleUserinfo should have comment or be unexported (golint)
    • Line 130: warning: exported type GooglePlusPerson should have comment or be unexported (golint)
    • Line 145: warning: exported type GooglePlusPersonName should have comment or be unexported (golint)
    • Line 150: warning: exported type GooglePlusPersonImage should have comment or be unexported (golint)
    • Line 155: warning: exported method ClientUtil.GetSCIMUser should have comment or be unexported (golint)
    • Line 180: warning: exported method ClientUtil.GetSCIMUserOld should have comment or be unexported (golint)
    • oauth2util/google/google_user.go
    • Line 10: warning: exported const GoogleApiUrlUserinfo should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type GoogleUserinfoOpenIdConnectV2 should have comment or be unexported (golint)
    • Line 24: warning: exported function GetMeInfo should have comment or be unexported (golint)
    • Line 35: warning: exported function HttpGetBearerTokenBody should have comment or be unexported (golint)
    • Line 44: warning: exported function HttpGetBearerToken should have comment or be unexported (golint)
    • oauth2util/zendesk/zendesk_clientutil.go
    • Line 20: warning: exported function NewClientUtil should have comment or be unexported (golint)
    • Line 24: warning: exported method ClientUtil.SetClient should have comment or be unexported (golint)
    • Line 28: warning: exported method ClientUtil.GetUserinfo should have comment or be unexported (golint)
    • Line 39: warning: exported method ClientUtil.GetSCIMUser should have comment or be unexported (golint)
    • Line 58: warning: exported function MeURL should have comment or be unexported (golint)
    • Line 62: warning: exported type MeResponse should have comment or be unexported (golint)
    • Line 66: warning: exported type Me should have comment or be unexported (golint)
    • Line 75: warning: exported function GetMe should have comment or be unexported (golint)
    • oauth2util/multiservice/tokens/tokensetmemory/tokenset_memory.go
    • Line 11: warning: exported type TokenSet should have comment or be unexported (golint)
    • Line 15: warning: exported function NewTokenSet should have comment or be unexported (golint)
    • Line 19: warning: exported method TokenSet.GetToken should have comment or be unexported (golint)
    • Line 26: warning: exported method TokenSet.GetTokenInfo should have comment or be unexported (golint)
    • Line 34: warning: exported method TokenSet.SetTokenInfo should have comment or be unexported (golint)
    • oauth2util/metabase/metabase_clientutil.go
    • Line 21: warning: exported const CurrentUserURLPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type ClientUtil should have comment or be unexported (golint)
    • Line 29: warning: exported function NewClientUtil should have comment or be unexported (golint)
    • Line 40: warning: exported method ClientUtil.GetStoreQuestionData should have comment or be unexported (golint)
    • Line 48: warning: exported method ClientUtil.GetQuestionData should have comment or be unexported (golint)
    • Line 65: warning: exported method ClientUtil.BuildMetabaseCardAPI should have comment or be unexported (golint)
    • Line 70: warning: exported type QuestionsToSlug should have comment or be unexported (golint)
    • Line 74: warning: exported function RetrieveQuestions should have comment or be unexported (golint)
    • Line 93: warning: exported method ClientUtil.GetCurrentUser should have comment or be unexported (golint)
    • Line 93: warning: receiver name apiutil should be consistent with previous receiver name cu for ClientUtil (golint)
    • Line 110: warning: exported method ClientUtil.GetSCIMUser should have comment or be unexported (golint)
    • Line 110: warning: receiver name apiutil should be consistent with previous receiver name cu for ClientUtil (golint)
    • Line 124: warning: exported type User should have comment or be unexported (golint)
    • oauth2util/aha/aha_client.go
    • Line 14: warning: exported const APIMeURL should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported var AhaAccountEnv should have comment or be unexported (golint)
    • Line 25: warning: exported function NewEndpoint should have comment or be unexported (golint)
    • Line 31: warning: exported function NewClient should have comment or be unexported (golint)
    • oauth2util/visa/visa_client.go
    • Line 13: warning: exported var VisaAppKeyFileEnv should have comment or be unexported (golint)
    • Line 21: warning: exported type Config should have comment or be unexported (golint)
    • Line 30: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 49: 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)
    • Line 55: warning: exported function ConfigFromEnv should have comment or be unexported (golint)
    • Line 66: warning: exported function NewClientEnv should have comment or be unexported (golint)
    • oauth2util/ringcentral/application_credentials.go
    • Line 15: warning: exported type ApplicationCredentials should have comment or be unexported (golint)
    • Line 29: warning: exported function NewApplicationCredentialsEnv should have comment or be unexported (golint)
    • Line 38: warning: exported method ApplicationCredentials.Config should have comment or be unexported (golint)
    • Line 46: warning: exported method ApplicationCredentials.AuthCodeURL should have comment or be unexported (golint)
    • Line 51: warning: exported method ApplicationCredentials.Exchange should have comment or be unexported (golint)
    • Line 68: warning: exported method ApplicationCredentials.AppNameAndVersion should have comment or be unexported (golint)
    • Line 68: warning: receiver name ac should be consistent with previous receiver name app for ApplicationCredentials (golint)
    • Line 81: warning: exported method ApplicationCredentials.IsGrantType should have comment or be unexported (golint)
    • Line 88: warning: exported method ApplicationCredentials.InflateURL should have comment or be unexported (golint)
    • oauth2util/client.go
    • Line 17: warning: context.Context should be the first parameter of a function (golint)
    • Line 17: warning: exported function NewClientPassword should have comment or be unexported (golint)
    • Line 25: warning: exported function NewClientPasswordConf should have comment or be unexported (golint)
    • Line 34: warning: exported function NewClientAuthCode should have comment or be unexported (golint)
    • Line 42: warning: exported function NewClientTokenJSON should have comment or be unexported (golint)
    • Line 54: warning: exported function NewClientHeaders should have comment or be unexported (golint)
    • Line 69: warning: exported function NewClientToken should have comment or be unexported (golint)
    • Line 86: warning: exported function NewClientTokenBase64Encode should have comment or be unexported (golint)
    • Line 105: warning: exported function NewClientTokenOAuth2 should have comment or be unexported (golint)
    • Line 110: warning: exported function NewClientBearerTokenSimpleOrJson should have comment or be unexported (golint)
    • Line 121: warning: exported function NewClientTLSToken should have comment or be unexported (golint)
    • Line 133: warning: exported function ClientTLSInsecureSkipVerify should have comment or be unexported (golint)
    • oauth2util/ringcentral/ringcentral_more.go
    • Line 9: warning: exported function UsernameExtensionPasswordToString should have comment or be unexported (golint)
    • Line 16: warning: exported function UsernameExtensionPasswordToHash should have comment or be unexported (golint)
    • Line 22: warning: exported function PasswordCredentialsToHash should have comment or be unexported (golint)
    • oauth2util/ringcentral/password_credentials.go
    • Line 10: warning: exported type PasswordCredentials should have comment or be unexported (golint)
    • Line 21: warning: exported function NewPasswordCredentialsEnv should have comment or be unexported (golint)
    • Line 28: warning: exported method PasswordCredentials.URLValues should have comment or be unexported (golint)
    • Line 48: warning: exported method PasswordCredentials.UsernameSimple should have comment or be unexported (golint)
    • Line 48: warning: receiver name uc should be consistent with previous receiver name pw for PasswordCredentials (golint)
    • oauth2util/examples/interface_function/interface_function.go
    • Line 11: warning: exported type Interface should have comment or be unexported (golint)
    • Line 15: warning: exported type A should have comment or be unexported (golint)
    • Line 17: warning: exported method A.Function should have comment or be unexported (golint)
    • Line 21: warning: exported type B should have comment or be unexported (golint)
    • Line 23: warning: exported method B.Function should have comment or be unexported (golint)
    • Line 27: warning: exported function Choose should have comment or be unexported (golint)
    • Line 34: warning: exported function PrintInterfaceFunction should have comment or be unexported (golint)
    • Line 38: warning: exported function ChooseClient should have comment or be unexported (golint)
    • oauth2util/lyft/lyft_client.go
    • Line 12: warning: comment on exported const AuthURL should be of the form "AuthURL ..." (golint)
    • Line 14: warning: exported const TokenURL should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: comment on exported const Offline should be of the form "Offline ..." (golint)
    • Line 24: warning: exported function Endpoint should have comment or be unexported (golint)
    • Line 30: warning: exported function NewClientCredentials should have comment or be unexported (golint)
    • oauth2util/zoom/zoom_jwt.go
    • Line 13: warning: exported const EnvZoomApiKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported function CreateJwtToken should have comment or be unexported (golint)
    • Line 28: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 36: warning: exported function NewClientToken should have comment or be unexported (golint)
    • oauth2util/google/google_client.go
    • Line 15: warning: exported function ClientFromFile should have comment or be unexported (golint)
    • Line 24: warning: exported type ClientOauthCliTokenStoreConfig should have comment or be unexported (golint)
    • Line 33: warning: exported function NewClientOauthCliTokenStore should have comment or be unexported (golint)
    • Line 47: warning: exported function NewClientSvcAccountFromFile should have comment or be unexported (golint)
    • Line 55: warning: exported function NewClientFromJWTJSON should have comment or be unexported (golint)
    • oauth2util/multiservice/beego/beegouser.go
    • Line 12: warning: exported var SesUserInfo should have comment or be unexported (golint)
    • Line 17: warning: exported type SessionUserInfo should have comment or be unexported (golint)
    • Line 23: warning: exported function NewSessionUserInfo should have comment or be unexported (golint)
    • Line 30: warning: exported method SessionUserInfo.Logout should have comment or be unexported (golint)
    • Line 37: warning: exported method SessionUserInfo.Save should have comment or be unexported (golint)
    • Line 43: warning: exported method SessionUserInfo.Load should have comment or be unexported (golint)
    • oauth2util/google/google_credentials.go
    • Line 12: warning: exported type CredentialsContainer should have comment or be unexported (golint)
    • Line 18: warning: exported method CredentialsContainer.OAuth2Config should have comment or be unexported (golint)
    • Line 22: warning: exported method CredentialsContainer.Credentials should have comment or be unexported (golint)
    • Line 26: warning: exported type Credentials should have comment or be unexported (golint)
    • Line 41: warning: exported function CredentialsContainerFromBytes should have comment or be unexported (golint)
    • Line 46: warning: exported function CredentialsContainerFromFile should have comment or be unexported (golint)
    • Line 54: warning: exported function CredentialsFromFile should have comment or be unexported (golint)
    • oauth2util/multiservice/config_more.go
    • Line 13: warning: comment on exported type O2ConfigMore should be of the form "O2ConfigMore ..." (with optional leading article) (golint)
    • Line 27: warning: exported function NewO2ConfigMoreFromJSON should have comment or be unexported (golint)
    • Line 46: warning: exported method O2ConfigMore.ProviderType should have comment or be unexported (golint)
    • Line 50: warning: exported method O2ConfigMore.Config should have comment or be unexported (golint)
    • Line 50: warning: receiver name cm should be consistent with previous receiver name c for O2ConfigMore (golint)
    • Line 61: warning: exported method O2ConfigMore.AuthURL should have comment or be unexported (golint)
    • Line 61: warning: receiver name cm should be consistent with previous receiver name c for O2ConfigMore (golint)
    • Line 65: warning: exported method O2ConfigMore.RedirectURL should have comment or be unexported (golint)
    • Line 65: warning: receiver name cm should be consistent with previous receiver name c for O2ConfigMore (golint)
    • Line 77: warning: exported function RandomState should have comment or be unexported (golint)
    • oauth2util/multiservice/config_more_set.go
    • Line 10: warning: exported type ConfigMoreSet should have comment or be unexported (golint)
    • Line 14: warning: exported function NewConfigMoreSet should have comment or be unexported (golint)
    • Line 18: warning: exported method ConfigMoreSet.AddConfigMoreJson should have comment or be unexported (golint)
    • Line 28: warning: exported method ConfigMoreSet.Has should have comment or be unexported (golint)
    • Line 35: warning: exported method ConfigMoreSet.Get should have comment or be unexported (golint)
    • Line 42: warning: exported method ConfigMoreSet.MustGet should have comment or be unexported (golint)
    • Line 50: warning: exported method ConfigMoreSet.Slugs should have comment or be unexported (golint)
    • Line 58: warning: exported method ConfigMoreSet.ClientURLsMap should have comment or be unexported (golint)
    • oauth2util/scim/user_set.go
    • Line 8: warning: exported type UserSet should have comment or be unexported (golint)
    • Line 12: warning: exported method UserSet.Count should have comment or be unexported (golint)
    • Line 16: warning: exported method UserSet.GetByEmail should have comment or be unexported (golint)
    • oauth2util/jwt.go
    • Line 8: warning: exported function ParseJwtTokenString should have comment or be unexported (golint)
    • oauth2util/salesforce/salesforce_clientutil.go
    • Line 20: warning: exported type SalesforceClient should have comment or be unexported (golint)
    • Line 25: warning: exported function NewSalesforceClient should have comment or be unexported (golint)
    • Line 32: warning: exported function NewSalesforceClientEnv should have comment or be unexported (golint)
    • Line 44: warning: exported type ApplicationCredentials should have comment or be unexported (golint)
    • Line 49: warning: exported function NewSalesforceClientPassword should have comment or be unexported (golint)
    • Line 57: warning: exported method SalesforceClient.GetServicesData should have comment or be unexported (golint)
    • Line 62: warning: exported method SalesforceClient.CreateContact should have comment or be unexported (golint)
    • Line 68: warning: exported method SalesforceClient.CreateSobject should have comment or be unexported (golint)
    • Line 73: warning: exported method SalesforceClient.ExecSOQL should have comment or be unexported (golint)
    • Line 83: warning: exported method SalesforceClient.GetAccountsAll should have comment or be unexported (golint)
    • Line 94: warning: exported method SalesforceClient.DeleteAccountsAll should have comment or be unexported (golint)
    • Line 113: warning: exported method SalesforceClient.DeleteAccount should have comment or be unexported (golint)
    • Line 125: warning: exported method SalesforceClient.GetContactsAll should have comment or be unexported (golint)
    • Line 133: warning: exported method SalesforceClient.DeleteContactsAll should have comment or be unexported (golint)
    • Line 152: warning: exported method SalesforceClient.DeleteContact should have comment or be unexported (golint)
    • Line 162: warning: exported method SalesforceClient.UserInfo should have comment or be unexported (golint)
    • Line 184: warning: exported type User should have comment or be unexported (golint)
    • Line 189: warning: exported type URLBuilder should have comment or be unexported (golint)
    • Line 194: warning: exported function NewURLBuilder should have comment or be unexported (golint)
    • Line 204: warning: exported method URLBuilder.Build should have comment or be unexported (golint)
    • Line 210: warning: exported method URLBuilder.BuildSobjectURL should have comment or be unexported (golint)
    • oauth2util/ringcentral/ringcentral_clientutil.go
    • Line 19: warning: exported const ServerURLProduction should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported function NewEndpoint should have comment or be unexported (golint)
    • Line 57: warning: exported function NewClientUtil should have comment or be unexported (golint)
    • Line 61: warning: exported method ClientUtil.SetClient should have comment or be unexported (golint)
    • Line 89: warning: exported type RingCentralExtensionInfo should have comment or be unexported (golint)
    • Line 97: warning: exported type RingCentralContact should have comment or be unexported (golint)
    • Line 103: warning: exported type RingCentralAccount should have comment or be unexported (golint)
    • Line 108: warning: exported method ClientUtil.GetSCIMUser should have comment or be unexported (golint)
    • Line 108: warning: receiver name apiutil should be consistent with previous receiver name cu for ClientUtil (golint)
    • Line 129: warning: exported function BuildURL should have comment or be unexported (golint)
    • oauth2util/util/titles/titles.go
    • Line 10: warning: exported type Department should have comment or be unexported (golint)
    • Line 13: warning: exported const BusinessDevelopment should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported function ParseDepartment should have comment or be unexported (golint)
    • Line 81: warning: comment on exported const RegularExpressionsRaw should be of the form "RegularExpressionsRaw ..." (golint)
    • Line 185: warning: exported type Parser should have comment or be unexported (golint)
    • Line 190: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 211: warning: exported var DepartmentRxs should have comment or be unexported (golint)
    • Line 213: warning: exported method Parser.ParseTitle should have comment or be unexported (golint)
    • oauth2util/multiservice/tokens/tokensetredis/tokenset_redis.go
    • Line 14: warning: exported type TokenSet should have comment or be unexported (golint)
    • Line 18: warning: exported function NewTokenSet should have comment or be unexported (golint)
    • Line 22: warning: exported method TokenSet.GetToken should have comment or be unexported (golint)
    • Line 25: 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)
    • Line 30: warning: exported method TokenSet.GetTokenInfo should have comment or be unexported (golint)
    • Line 39: warning: exported method TokenSet.SetTokenInfo should have comment or be unexported (golint)
    • Line 42: 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)
    • oauth2util/credentials_password.go
    • Line 9: warning: exported type PasswordCredentials should have comment or be unexported (golint)
    • Line 20: warning: exported method PasswordCredentials.URLValues should have comment or be unexported (golint)
    • Line 40: warning: exported method PasswordCredentials.UsernameSimple should have comment or be unexported (golint)
    • Line 40: warning: receiver name uc should be consistent with previous receiver name pw for PasswordCredentials (golint)
    • oauth2util/ringcentral/credentials.go
    • Line 15: warning: exported const EnvServerURL should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported type Credentials should have comment or be unexported (golint)
    • Line 32: warning: exported function NewCredentialsJSONs should have comment or be unexported (golint)
    • Line 57: warning: exported function NewCredentialsJSON should have comment or be unexported (golint)
    • Line 62: warning: exported function NewCredentialsEnv should have comment or be unexported (golint)
    • Line 68: warning: exported method Credentials.NewClient should have comment or be unexported (golint)
    • Line 78: warning: exported method Credentials.NewSimpleClient should have comment or be unexported (golint)
    • Line 89: warning: exported method Credentials.NewClientCli should have comment or be unexported (golint)
    • Line 99: warning: exported method Credentials.NewToken should have comment or be unexported (golint)
    • Line 121: warning: exported method Credentials.NewClientUtil should have comment or be unexported (golint)
    • Line 131: warning: exported method Credentials.Me should have comment or be unexported (golint)
    • Line 139: warning: exported method Credentials.MeScim should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!