Preparing report...

Report for github.com/gildas/go-purecloud

A    Great!    Found 32 issues across 97 files

Tweet

gofmt71%

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.


golint87%

Golint is a linter for Go source code.

    • go-purecloud/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 22: warning: exported type StatusReason should have comment or be unexported (golint)
    • go-purecloud/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-purecloud/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-purecloud/openmessaging_integration.go
    • Line 15: warning: exported type OpenMessagingIntegration should have comment or be unexported (golint)
    • Line 133: warning: exported method OpenMessagingIntegration.Create should have comment or be unexported (golint)
    • Line 155: warning: exported method OpenMessagingIntegration.Delete should have comment or be unexported (golint)
    • Line 159: warning: exported method OpenMessagingIntegration.Update should have comment or be unexported (golint)
    • go-purecloud/examples/OpenMessaging/chat-server.go
    • Line 15: warning: exported type ChatServer should have comment or be unexported (golint)
    • Line 30: warning: exported function NewChatServer should have comment or be unexported (golint)
    • Line 42: warning: exported method ChatServer.CreateChat should have comment or be unexported (golint)
    • Line 54: warning: exported method ChatServer.FindChatByID should have comment or be unexported (golint)
    • Line 64: warning: exported method ChatServer.FindChatByUserID should have comment or be unexported (golint)
    • Line 76: warning: exported method ChatServer.FindChatByMessageID should have comment or be unexported (golint)
    • Line 86: warning: exported method ChatServer.Start should have comment or be unexported (golint)
    • go-purecloud/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)

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!