Preparing report...

Report for github.com/gildas/go-gcloudcx

A    Great!    Found 43 issues across 98 files

Tweet

gofmt61%

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!


gocyclo96%

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.


golint85%

Golint is a linter for Go source code.

    • go-gcloudcx/openmessaging_message.go
    • Line 3: warning: exported type OpenMessage should have comment or be unexported (golint)
    • Line 14: warning: exported type OpenMessageResult should have comment or be unexported (golint)
    • Line 18: warning: exported type StatusReason should have comment or be unexported (golint)
    • go-gcloudcx/examples/OpenMessaging/chat-server.go
    • Line 12: warning: exported type ChatServer should have comment or be unexported (golint)
    • Line 27: warning: exported function NewChatServer should have comment or be unexported (golint)
    • Line 39: warning: exported method ChatServer.CreateChat should have comment or be unexported (golint)
    • Line 51: warning: exported method ChatServer.FindChatByID should have comment or be unexported (golint)
    • Line 61: warning: exported method ChatServer.FindChatByUserID should have comment or be unexported (golint)
    • Line 73: warning: exported method ChatServer.FindChatByMessageID should have comment or be unexported (golint)
    • Line 83: warning: exported method ChatServer.Start should have comment or be unexported (golint)
    • go-gcloudcx/examples/OpenMessaging/config.go
    • Line 26: warning: comment on exported function ConfigFromContext should be of the form "ConfigFromContext ..." (golint)
    • Line 39: warning: exported method Config.HttpHandler should have comment or be unexported (golint)
    • Line 39: warning: receiver name config should be consistent with previous receiver name item for Config (golint)
    • go-gcloudcx/client.go
    • Line 90: warning: exported method Client.CheckPermissions should have comment or be unexported (golint)
    • Line 142: warning: comment on exported method Client.FetchRolesAndPermissionsOf should be of the form "FetchRolesAndPermissionsOf ..." (golint)
    • go-gcloudcx/examples/OpenMessaging/chat.go
    • Line 12: warning: exported type Chat should have comment or be unexported (golint)
    • Line 25: warning: exported type ChatMessageError should have comment or be unexported (golint)
    • Line 31: warning: exported function NewChat should have comment or be unexported (golint)
    • Line 45: warning: exported method Chat.Serve should have comment or be unexported (golint)
    • go-gcloudcx/uri.go
    • Line 26: warning: exported method URI.HasProtocol should have comment or be unexported (golint)
    • Line 31: warning: exported method URI.HasPrefix should have comment or be unexported (golint)
    • Line 35: warning: exported method URI.Join should have comment or be unexported (golint)
    • Line 43: warning: exported method URI.URL should have comment or be unexported (golint)
    • go-gcloudcx/auth.go
    • Line 24: warning: exported type AuthorizationGrant should have comment or be unexported (golint)
    • Line 31: warning: exported type AuthorizationDivision should have comment or be unexported (golint)
    • Line 40: warning: exported type AuthorizationGrantRole should have comment or be unexported (golint)
    • Line 49: warning: exported type AuthorizationGrantPolicy 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!