Preparing report...

Report for github.com/ippy04/sendbird

A    Great!    Found 10 issues across 13 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!


golint38%

Golint is a linter for Go source code.

    • sendbird/messagingchannel.go
    • Line 3: warning: exported type MessagingChannelRequest should have comment or be unexported (golint)
    • Line 10: warning: exported type MessagingChannelUpdateRequest should have comment or be unexported (golint)
    • Line 18: warning: exported type MessagingChannelInviteRequest should have comment or be unexported (golint)
    • Line 23: warning: exported type MessagingChannelHideRequest should have comment or be unexported (golint)
    • Line 28: warning: exported type MessagingChannelLeaveRequest should have comment or be unexported (golint)
    • Line 33: warning: exported type MessagingChannelMetadataRequest should have comment or be unexported (golint)
    • Line 39: warning: exported type MessagingChannelSetMetadataRequest should have comment or be unexported (golint)
    • Line 44: warning: exported type MessagingChannelMetacounterRequest should have comment or be unexported (golint)
    • Line 49: warning: exported type MessagingChannelSetMetacounterRequest should have comment or be unexported (golint)
    • Line 55: warning: exported type MessagingChannelResponse should have comment or be unexported (golint)
    • Line 58: warning: exported type MessagingChannel should have comment or be unexported (golint)
    • Line 66: warning: exported type MessagingChannelUrl should have comment or be unexported (golint)
    • Line 69: warning: exported type ChannelUrl should have comment or be unexported (golint)
    • Line 72: warning: exported type MessagingChannelView should have comment or be unexported (golint)
    • sendbird/sendbirdclient.go
    • Line 19: warning: comment on exported type Response should be of the form "Response ..." (with optional leading article) (golint)
    • Line 42: warning: comment on exported type SendbirdClient should be of the form "SendbirdClient ..." (with optional leading article) (golint)
    • Line 90: warning: exported method SendbirdClient.NormalizeId should have comment or be unexported (golint)
    • Line 94: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • sendbird/user.go
    • Line 3: warning: exported type UserRequest should have comment or be unexported (golint)
    • Line 10: warning: exported type BlockRequest should have comment or be unexported (golint)
    • Line 15: warning: exported type DeactivateRequest should have comment or be unexported (golint)
    • Line 20: warning: exported type User should have comment or be unexported (golint)
    • Line 118: warning: comment on exported method UserServiceOp.UnBlock should be of the form "UnBlock ..." (golint)
    • sendbird/admin.go
    • Line 27: warning: exported type BroadcastMessageRequest should have comment or be unexported (golint)
    • Line 34: warning: exported type ReadMessagesRequest should have comment or be unexported (golint)
    • Line 41: warning: exported type MuteRequest should have comment or be unexported (golint)
    • Line 47: warning: exported type UnMuteRequest should have comment or be unexported (golint)
    • Line 53: warning: exported type AdminMessage should have comment or be unexported (golint)
    • Line 61: warning: exported type AdminMessageFile should have comment or be unexported (golint)
    • Line 68: warning: exported type DeleteMessage should have comment or be unexported (golint)
    • Line 72: warning: exported type AdminMessagingChannel should have comment or be unexported (golint)
    • Line 79: warning: exported type ConcurrentUserCount should have comment or be unexported (golint)
    • Line 82: warning: exported type ChannelMemberCount should have comment or be unexported (golint)
    • Line 88: warning: comment on exported method AdminServiceOp.BroadcastMessage should be of the form "BroadcastMessage ..." (golint)
    • Line 148: warning: comment on exported method AdminServiceOp.ListMessagingChannels should be of the form "ListMessagingChannels ..." (golint)
    • sendbird/auth.go
    • Line 3: warning: exported type RequestDefaults should have comment or be unexported (golint)
    • Line 7: warning: exported method RequestDefaults.PopulateAuthApiToken should have comment or be unexported (golint)
    • Line 11: warning: exported type RequestDefaultsAPIV2 should have comment or be unexported (golint)
    • Line 15: warning: exported method RequestDefaultsAPIV2.PopulateApiV2Token should have comment or be unexported (golint)
    • sendbird/bot.go
    • Line 23: warning: exported type MessageReceivedHandler should have comment or be unexported (golint)
    • Line 34: warning: exported type BotRequest should have comment or be unexported (golint)
    • Line 41: warning: exported type BotUpdateRequest should have comment or be unexported (golint)
    • Line 47: warning: exported type BotMessageRequest should have comment or be unexported (golint)
    • Line 54: warning: exported type BotUserId should have comment or be unexported (golint)
    • Line 57: warning: exported type Bot should have comment or be unexported (golint)
    • Line 64: warning: exported type BotMessage should have comment or be unexported (golint)
    • Line 71: warning: exported type BotCallback should have comment or be unexported (golint)
    • Line 103: warning: comment on exported method BotServiceOp.SendMessage should be of the form "SendMessage ..." (golint)
    • Line 120: warning: comment on exported method BotServiceOp.List should be of the form "List ..." (golint)
    • Line 136: warning: comment on exported method BotServiceOp.Get should be of the form "Get ..." (golint)
    • Line 187: warning: exported method BotServiceOp.Handler should have comment or be unexported (golint)
    • sendbird/chatchannel.go
    • Line 3: warning: exported type ChatChannelRequest should have comment or be unexported (golint)
    • Line 10: warning: exported type ChatChannelUpdateRequest should have comment or be unexported (golint)
    • Line 19: warning: exported type ChatChannelMessageRequest should have comment or be unexported (golint)
    • Line 26: warning: exported type ChatChannelMetadataRequest should have comment or be unexported (golint)
    • Line 31: warning: exported type ChatChannelSetMetadataRequest should have comment or be unexported (golint)
    • Line 36: warning: exported type ChatChannelMetacounterRequest should have comment or be unexported (golint)
    • Line 41: warning: exported type ChatChannelSetMetacounterRequest should have comment or be unexported (golint)
    • Line 47: warning: exported type ChatChannel should have comment or be unexported (golint)
    • Line 57: warning: exported type ChatChannelUpdate should have comment or be unexported (golint)
    • Line 61: warning: exported type Member should have comment or be unexported (golint)
    • Line 66: warning: exported type ChatChannelView should have comment or be unexported (golint)
    • Line 70: warning: exported type MessageCount should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign61%

IneffAssign detects ineffectual assignments in Go code.

    • sendbird/chatchannel.go
    • Line 113: warning: ineffectual assignment to err (ineffassign)
    • Line 131: warning: ineffectual assignment to err (ineffassign)
    • Line 150: warning: ineffectual assignment to err (ineffassign)
    • Line 171: warning: ineffectual assignment to err (ineffassign)
    • Line 191: warning: ineffectual assignment to err (ineffassign)
    • Line 211: warning: ineffectual assignment to err (ineffassign)
    • Line 229: warning: ineffectual assignment to err (ineffassign)
    • Line 247: warning: ineffectual assignment to err (ineffassign)
    • Line 265: warning: ineffectual assignment to err (ineffassign)
    • Line 283: warning: ineffectual assignment to err (ineffassign)
    • Line 301: warning: ineffectual assignment to err (ineffassign)
    • Line 319: warning: ineffectual assignment to err (ineffassign)
    • Line 338: warning: ineffectual assignment to err (ineffassign)
    • sendbird/messagingchannel.go
    • Line 112: warning: ineffectual assignment to err (ineffassign)
    • Line 129: warning: ineffectual assignment to err (ineffassign)
    • Line 148: warning: ineffectual assignment to err (ineffassign)
    • Line 166: warning: ineffectual assignment to err (ineffassign)
    • Line 184: warning: ineffectual assignment to err (ineffassign)
    • Line 202: warning: ineffectual assignment to err (ineffassign)
    • Line 222: warning: ineffectual assignment to err (ineffassign)
    • Line 240: warning: ineffectual assignment to err (ineffassign)
    • Line 258: warning: ineffectual assignment to err (ineffassign)
    • Line 276: warning: ineffectual assignment to err (ineffassign)
    • Line 294: warning: ineffectual assignment to err (ineffassign)
    • Line 312: warning: ineffectual assignment to err (ineffassign)
    • Line 330: warning: ineffectual assignment to err (ineffassign)
    • Line 349: warning: ineffectual assignment to err (ineffassign)
    • sendbird/user.go
    • Line 53: warning: ineffectual assignment to err (ineffassign)
    • Line 72: warning: ineffectual assignment to err (ineffassign)
    • Line 89: warning: ineffectual assignment to err (ineffassign)
    • Line 106: warning: ineffectual assignment to err (ineffassign)
    • Line 123: warning: ineffectual assignment to err (ineffassign)
    • Line 140: warning: ineffectual assignment to err (ineffassign)
    • sendbird/admin.go
    • Line 94: warning: ineffectual assignment to err (ineffassign)
    • Line 112: warning: ineffectual assignment to err (ineffassign)
    • Line 136: warning: ineffectual assignment to err (ineffassign)
    • Line 160: warning: ineffectual assignment to err (ineffassign)
    • Line 184: warning: ineffectual assignment to err (ineffassign)
    • Line 201: warning: ineffectual assignment to err (ineffassign)
    • Line 225: warning: ineffectual assignment to err (ineffassign)
    • Line 242: warning: ineffectual assignment to err (ineffassign)
    • Line 266: warning: ineffectual assignment to err (ineffassign)
    • Line 285: warning: ineffectual assignment to err (ineffassign)
    • Line 310: warning: ineffectual assignment to err (ineffassign)
    • sendbird/bot.go
    • Line 91: warning: ineffectual assignment to err (ineffassign)
    • Line 108: warning: ineffectual assignment to err (ineffassign)
    • Line 124: warning: ineffectual assignment to err (ineffassign)
    • Line 140: warning: ineffectual assignment to err (ineffassign)
    • Line 157: warning: ineffectual assignment to err (ineffassign)
    • Line 175: warning: ineffectual assignment to err (ineffassign)

misspell84%

Misspell Finds commonly misspelled English words