Preparing report...

Report for github.com/fastwego/wxopen

A    Great!    Found 10 issues across 12 files

Tweet

gofmt91%

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.


golint25%

Golint is a linter for Go source code.

    • wxopen/apis/oauth/oauth.go
    • Line 32: warning: comment on exported function GetAuthorizeUrl should be of the form "GetAuthorizeUrl ..." (golint)
    • Line 42: warning: don't use underscores in Go names; func parameter redirect_uri should be redirectURI (golint)
    • Line 48: warning: exported type AccessToken should have comment or be unexported (golint)
    • Line 56: warning: comment on exported function GetAccessToken should be of the form "GetAccessToken ..." (golint)
    • Line 85: warning: comment on exported function RefreshAccessToken should be of the form "RefreshAccessToken ..." (golint)
    • Line 94: warning: don't use underscores in Go names; func parameter refresh_token should be refreshToken (golint)
    • Line 114: warning: exported type UserInfo should have comment or be unexported (golint)
    • Line 126: warning: comment on exported function GetUserInfo should be of the form "GetUserInfo ..." (golint)
    • Line 135: warning: don't use underscores in Go names; func parameter access_token should be accessToken (golint)
    • wxopen/test/test.go
    • Line 26: warning: exported var MockPlatform should have comment or be unexported (golint)
    • Line 27: warning: exported var MockSvr should have comment or be unexported (golint)
    • Line 28: warning: exported var MockSvrHandler should have comment or be unexported (golint)
    • Line 31: warning: comment on exported function Setup should be of the form "Setup ..." (golint)
    • wxopen/server.go
    • Line 33: warning: comment on exported type Server should be of the form "Server ..." (with optional leading article) (golint)
    • wxopen/wxopen.go
    • Line 15: warning: package comment should be of the form "Package wxopen ..." (golint)
    • Line 89: warning: comment on exported function NewPlatform should be of the form "NewPlatform ..." (golint)
    • Line 115: warning: comment on exported method Platform.NewOffiAccount should be of the form "NewOffiAccount ..." (golint)
    • Line 137: warning: comment on exported method Platform.NewMiniprogram should be of the form "NewMiniprogram ..." (golint)
    • Line 184: warning: don't use underscores in Go names; var authorizer_refresh_token should be authorizerRefreshToken (golint)
    • Line 232: warning: comment on exported function GetComponentAccessToken should be of the form "GetComponentAccessToken ..." (golint)
    • wxopen/type/type_platform/type_platform.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 22: warning: exported const EventTypeComponentVerifyTicket should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type Event should have comment or be unexported (golint)
    • Line 35: warning: comment on exported type EventComponentVerifyTicket should be of the form "EventComponentVerifyTicket ..." (with optional leading article) (golint)
    • Line 48: warning: comment on exported type EventAuthorized should be of the form "EventAuthorized ..." (with optional leading article) (golint)
    • Line 68: warning: comment on exported type EventUnauthorized should be of the form "EventUnauthorized ..." (with optional leading article) (golint)
    • Line 82: warning: comment on exported type EventUpdateAuthorized should be of the form "EventUpdateAuthorized ..." (with optional leading article) (golint)
    • wxopen/apis/account/account.go
    • Line 33: warning: comment on exported function Create should be of the form "Create ..." (golint)
    • Line 42: warning: don't use underscores in Go names; func parameter authorizer_access_token should be authorizerAccessToken (golint)
    • Line 46: warning: comment on exported function Bind should be of the form "Bind ..." (golint)
    • Line 55: warning: don't use underscores in Go names; func parameter authorizer_access_token should be authorizerAccessToken (golint)
    • Line 59: warning: comment on exported function Unbind should be of the form "Unbind ..." (golint)
    • Line 68: warning: don't use underscores in Go names; func parameter authorizer_access_token should be authorizerAccessToken (golint)
    • Line 72: warning: comment on exported function Get should be of the form "Get ..." (golint)
    • Line 81: warning: don't use underscores in Go names; func parameter authorizer_access_token should be authorizerAccessToken (golint)
    • wxopen/apis/auth/auth.go
    • Line 37: warning: comment on exported function CreatePreauthCode should be of the form "CreatePreauthCode ..." (golint)
    • Line 50: warning: comment on exported function GetAuthorizationRedirectUri should be of the form "GetAuthorizationRedirectUri ..." (golint)
    • Line 63: warning: comment on exported function GetAuthorizationRedirectUri2 should be of the form "GetAuthorizationRedirectUri2 ..." (golint)
    • Line 76: warning: comment on exported function ApiQueryAuth should be of the form "ApiQueryAuth ..." (golint)
    • Line 89: warning: comment on exported function ApiAuthorizerToken should be of the form "ApiAuthorizerToken ..." (golint)
    • Line 102: warning: comment on exported function ApiGetAuthorizerInfo should be of the form "ApiGetAuthorizerInfo ..." (golint)
    • Line 115: warning: comment on exported function ApiGetAuthorizerOption should be of the form "ApiGetAuthorizerOption ..." (golint)
    • Line 128: warning: comment on exported function ApiSetAuthorizerOption should be of the form "ApiSetAuthorizerOption ..." (golint)
    • Line 141: warning: comment on exported function ApiGetAuthorizerList should be of the form "ApiGetAuthorizerList ..." (golint)
    • wxopen/cmd/apiconfig.go
    • Line 17: warning: exported type Param should have comment or be unexported (golint)
    • Line 22: warning: exported type Api should have comment or be unexported (golint)
    • Line 31: warning: exported type ApiGroup should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!