Preparing report...

Report for github.com/andersfylling/disgord

A+    Excellent!    Found 79 issues across 145 files

Tweet

gofmt97%

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!


gocyclo97%

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.


golint47%

Golint is a linter for Go source code.

    • disgord/internal/logger/logger.go
    • Line 12: warning: exported type Empty should have comment or be unexported (golint)
    • Line 14: warning: exported method Empty.Debug should have comment or be unexported (golint)
    • Line 15: warning: exported method Empty.Info should have comment or be unexported (golint)
    • Line 20: warning: exported type FmtPrinter should have comment or be unexported (golint)
    • Line 22: warning: exported method FmtPrinter.Debug should have comment or be unexported (golint)
    • Line 26: warning: exported method FmtPrinter.Info should have comment or be unexported (golint)
    • disgord/events.go
    • Line 19: warning: exported type EventType should have comment or be unexported (golint)
    • Line 223: warning: exported type InteractionCreate should have comment or be unexported (golint)
    • Line 305: warning: receiver name obj should be consistent with previous receiver name g for GuildCreate (golint)
    • Line 331: warning: receiver name obj should be consistent with previous receiver name g for GuildUpdate (golint)
    • Line 396: warning: receiver name obj should be consistent with previous receiver name g for GuildMemberAdd (golint)
    • Line 495: warning: exported method PresenceUpdate.Game should have comment or be unexported (golint)
    • Line 498: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • disgord/role.go
    • Line 78: warning: exported type GuildRoleQueryBuilder should have comment or be unexported (golint)
    • disgord/internal/disgorderr/reactor.go
    • Line 8: warning: exported const HandlerSpecErrCodeUnexpectedMiddleware should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported function NewHandlerSpecErr should have comment or be unexported (golint)
    • Line 20: warning: exported type HandlerSpecErr should have comment or be unexported (golint)
    • Line 31: warning: exported method HandlerSpecErr.Code should have comment or be unexported (golint)
    • disgord/docs/examples/logging-custom/bot.go
    • Line 12: warning: comment on exported function MyInjectableLogger should be of the form "MyInjectableLogger ..." (golint)
    • Line 26: warning: exported type LoggerZap should have comment or be unexported (golint)
    • Line 32: warning: exported method LoggerZap.Debug should have comment or be unexported (golint)
    • Line 37: warning: exported method LoggerZap.Info should have comment or be unexported (golint)
    • disgord/internal/ratelimit/ratelimits.go
    • Line 7: warning: exported type Snowflake should have comment or be unexported (golint)
    • Line 9: warning: exported function GetB should have comment or be unexported (golint)
    • Line 58: warning: exported function GuildAuditLogs should have comment or be unexported (golint)
    • Line 65: warning: exported function Guild should have comment or be unexported (golint)
    • Line 68: warning: exported function GuildEmoji should have comment or be unexported (golint)
    • Line 71: warning: exported function GuildEmojis should have comment or be unexported (golint)
    • Line 74: warning: exported function GuildEmbed should have comment or be unexported (golint)
    • Line 77: warning: exported function GuildVanityURL should have comment or be unexported (golint)
    • Line 80: warning: exported function GuildChannels should have comment or be unexported (golint)
    • Line 83: warning: exported function GuildMembers should have comment or be unexported (golint)
    • Line 86: warning: exported function GuildBans should have comment or be unexported (golint)
    • Line 89: warning: exported function GuildRoles should have comment or be unexported (golint)
    • Line 92: warning: exported function GuildRegions should have comment or be unexported (golint)
    • Line 95: warning: exported function GuildIntegrations should have comment or be unexported (golint)
    • Line 98: warning: exported function GuildInvites should have comment or be unexported (golint)
    • Line 101: warning: exported function GuildPrune should have comment or be unexported (golint)
    • Line 104: warning: exported function GuildWebhooks should have comment or be unexported (golint)
    • disgord/internal/gateway/intents.go
    • Line 9: warning: exported type Intent should have comment or be unexported (golint)
    • Line 30: warning: comment on exported const IntentGuilds should be of the form "IntentGuilds ..." (golint)
    • Line 43: warning: comment on exported const IntentGuildMembers should be of the form "IntentGuildMembers ..." (golint)
    • Line 49: warning: comment on exported const IntentGuildBans should be of the form "IntentGuildBans ..." (golint)
    • Line 54: warning: comment on exported const IntentGuildEmojis should be of the form "IntentGuildEmojis ..." (golint)
    • Line 58: warning: comment on exported const IntentGuildIntegrations should be of the form "IntentGuildIntegrations ..." (golint)
    • Line 62: warning: exported const IntentGuildWebhooks should have comment (or a comment on this block) or be unexported (golint)
    • Line 111: warning: exported function EventToIntent should have comment or be unexported (golint)
    • disgord/user.go
    • Line 14: warning: exported type ClientStatus should have comment or be unexported (golint)
    • Line 97: warning: exported const ActivityTypeGame should have comment (or a comment on this block) or be unexported (golint)
    • Line 142: warning: exported type UserFlag should have comment or be unexported (golint)
    • Line 145: warning: exported const UserFlagNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 167: warning: exported type PremiumType should have comment or be unexported (golint)
    • Line 187: warning: exported const PremiumTypeNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 389: warning: exported type CurrentUserQueryBuilder should have comment or be unexported (golint)
    • disgord/internal/gateway/eventclient.go
    • Line 24: warning: comment on exported function NewEventClient should be of the form "NewEventClient ..." (golint)
    • Line 162: warning: exported type EvtClient should have comment or be unexported (golint)
    • Line 180: warning: exported method EvtClient.SetPresence should have comment or be unexported (golint)
    • Line 193: warning: exported method EvtClient.Emit should have comment or be unexported (golint)
    • Line 394: warning: comment on exported method EvtClient.Connect should be of the form "Connect ..." (golint)
    • disgord/errors.go
    • Line 9: warning: exported type Err should have comment or be unexported (golint)
    • Line 10: warning: exported type CloseConnectionErr should have comment or be unexported (golint)
    • Line 11: warning: exported type HandlerSpecErr should have comment or be unexported (golint)
    • disgord/guild.go
    • Line 31: warning: exported method PermissionBit.MarshalJSON should have comment or be unexported (golint)
    • Line 36: warning: exported method PermissionBit.UnmarshalJSON should have comment or be unexported (golint)
    • Line 541: warning: exported type GuildQueryBuilderCaller should have comment or be unexported (golint)
    • Line 545: warning: exported method Member.UpdateNick should have comment or be unexported (golint)
    • Line 1468: warning: exported function NewUpdateGuildRolePositionsParams should have comment or be unexported (golint)
    • Line 1571: warning: exported method BanMemberParams.FindErrors should have comment or be unexported (golint)
    • disgord/internal/httd/client.go
    • Line 69: warning: exported type ErrREST should have comment or be unexported (golint)
    • Line 84: warning: exported type HttpClientDoer should have comment or be unexported (golint)
    • Line 97: warning: exported method Client.BucketGrouping should have comment or be unexported (golint)
    • Line 131: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 226: warning: exported method Client.Do should have comment or be unexported (golint)
    • disgord/disgord.go
    • Line 133: warning: exported const Name should have comment or be unexported (golint)
    • Line 134: warning: exported const Version should have comment or be unexported (golint)
    • Line 147: warning: exported function DeepCopy should have comment or be unexported (golint)
    • Line 158: warning: exported function DeepCopyOver should have comment or be unexported (golint)
    • Line 168: warning: exported function Reset should have comment or be unexported (golint)
    • disgord/flag.go
    • Line 3: warning: comment on exported type Flag should be of the form "Flag ..." (with optional leading article) (golint)
    • Line 6: warning: exported method Flag.Ignorecache should have comment or be unexported (golint)
    • Line 10: warning: exported method Flag.IgnoreEmptyParams should have comment or be unexported (golint)
    • Line 14: warning: exported method Flag.Sort should have comment or be unexported (golint)
    • Line 22: warning: exported const IgnoreCache should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: comment on exported const SortByID should be of the form "SortByID ..." (golint)
    • Line 32: warning: comment on exported const OrderAscending should be of the form "OrderAscending ..." (golint)
    • disgord/internal/httd/bucket_manager.go
    • Line 7: warning: exported const GlobalHash should have comment or be unexported (golint)
    • Line 22: warning: exported function NewManager should have comment or be unexported (golint)
    • Line 49: warning: exported type Manager should have comment or be unexported (golint)
    • Line 62: warning: exported method Manager.BucketGrouping should have comment or be unexported (golint)
    • Line 73: warning: exported method Manager.ProxyID should have comment or be unexported (golint)
    • Line 90: warning: exported method Manager.UpdateProxyID should have comment or be unexported (golint)
    • Line 103: warning: exported method Manager.Bucket should have comment or be unexported (golint)
    • Line 126: warning: exported method Manager.Consolidate should have comment or be unexported (golint)
    • disgord/internal/generate/inter/main.go
    • Line 26: warning: exported const PKGName should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported function RelevantTypes should have comment or be unexported (golint)
    • Line 196: warning: exported type TypeWrapper should have comment or be unexported (golint)
    • Line 201: warning: exported method TypeWrapper.ShortName should have comment or be unexported (golint)
    • Line 206: warning: exported method TypeWrapper.TypeName should have comment or be unexported (golint)
    • Line 214: warning: exported method TypeWrapper.Fields should have comment or be unexported (golint)
    • Line 225: warning: exported type FieldWrapper should have comment or be unexported (golint)
    • Line 230: warning: exported method FieldWrapper.Resetable should have comment or be unexported (golint)
    • Line 257: warning: exported method FieldWrapper.ZeroValue should have comment or be unexported (golint)
    • Line 287: warning: exported method FieldWrapper.TypeName should have comment or be unexported (golint)
    • Line 291: warning: exported method FieldWrapper.IsSlice should have comment or be unexported (golint)
    • Line 295: warning: exported method FieldWrapper.IsArray should have comment or be unexported (golint)
    • Line 299: warning: exported method FieldWrapper.MustCopyEach should have comment or be unexported (golint)
    • Line 304: warning: exported method FieldWrapper.ElemIsPointer should have comment or be unexported (golint)
    • Line 309: warning: exported method FieldWrapper.EventualBuiltin should have comment or be unexported (golint)
    • Line 313: warning: exported method FieldWrapper.EventualInterface should have comment or be unexported (golint)
    • Line 331: warning: exported method FieldWrapper.SliceType should have comment or be unexported (golint)
    • disgord/internal/gateway/client.go
    • Line 19: warning: exported type ClientType should have comment or be unexported (golint)
    • Line 386: 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)
    • disgord/internal/gateway/sharding.go
    • Line 21: warning: exported type CmdPayload should have comment or be unexported (golint)
    • Line 30: warning: exported function ConfigureShardConfig should have comment or be unexported (golint)
    • Line 68: warning: exported function NewShardMngr should have comment or be unexported (golint)
    • Line 102: warning: exported type ShardConfig should have comment or be unexported (golint)
    • disgord/internal/util/atomicLock.go
    • Line 7: warning: exported type AtomicLock should have comment or be unexported (golint)
    • Line 9: warning: exported method AtomicLock.AcquireLock should have comment or be unexported (golint)
    • Line 13: warning: exported method AtomicLock.IsLocked should have comment or be unexported (golint)
    • Line 17: warning: exported method AtomicLock.Unlock should have comment or be unexported (golint)
    • disgord/internal/gateway/ratelimit.go
    • Line 16: warning: exported method UniqueStringSlice.Len should have comment or be unexported (golint)
    • Line 20: warning: exported method UniqueStringSlice.Contains should have comment or be unexported (golint)
    • Line 32: warning: exported method UniqueStringSlice.Add should have comment or be unexported (golint)
    • Line 46: warning: exported method UniqueStringSlice.Remove should have comment or be unexported (golint)
    • disgord/client.go
    • Line 22: warning: exported var DefaultHttpClient should have comment or be unexported (golint)
    • Line 107: warning: should omit 2nd value from range; this loop is equivalent to `for eventName := range ...` (golint)
    • Line 185: warning: exported type ShardConfig should have comment or be unexported (golint)
    • Line 187: warning: exported type HttpClientDoer should have comment or be unexported (golint)
    • Line 332: warning: exported method Client.Pool should have comment or be unexported (golint)
    • Line 504: warning: exported method Client.EditInteractionResponse should have comment or be unexported (golint)
    • Line 517: warning: exported method Client.SendInteractionResponse should have comment or be unexported (golint)
    • disgord/gateway.go
    • Line 15: warning: exported method Client.Gateway should have comment or be unexported (golint)
    • Line 19: warning: exported type GatewayQueryBuilder should have comment or be unexported (golint)
    • Line 277: warning: comment on exported const RequestGuildMembers should be of the form "RequestGuildMembers ..." (golint)
    • Line 295: warning: comment on exported type RequestGuildMembersPayload should be of the form "RequestGuildMembersPayload ..." (with optional leading article) (golint)
    • Line 317: warning: exported const StatusOnline should have comment (or a comment on this block) or be unexported (golint)
    • disgord/internal/generate/querybuilders/main.go
    • Line 18: warning: exported const PKGName should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported function DisgordTypes should have comment or be unexported (golint)
    • Line 50: warning: exported function Exported should have comment or be unexported (golint)
    • Line 55: warning: exported type Entries should have comment or be unexported (golint)
    • Line 60: warning: exported method Entries.Sort should have comment or be unexported (golint)
    • Line 69: warning: exported method Entries.LinkCtx should have comment or be unexported (golint)
    • Line 75: warning: exported method Entries.SetPackageName should have comment or be unexported (golint)
    • Line 163: warning: exported type TypeWrapper should have comment or be unexported (golint)
    • Line 191: warning: exported method TypeWrapper.DiscordTypePrefix should have comment or be unexported (golint)
    • Line 198: warning: exported method TypeWrapper.ShortName should have comment or be unexported (golint)
    • Line 203: warning: exported method TypeWrapper.TypeName should have comment or be unexported (golint)
    • Line 211: warning: exported method TypeWrapper.WithContextReturnType should have comment or be unexported (golint)
    • Line 215: warning: exported method TypeWrapper.WithFlagsReturnType should have comment or be unexported (golint)
    • Line 219: warning: exported method TypeWrapper.HasWithContext should have comment or be unexported (golint)
    • Line 223: warning: exported method TypeWrapper.HasWithFlags should have comment or be unexported (golint)
    • Line 227: warning: exported method TypeWrapper.Fields should have comment or be unexported (golint)
    • Line 242: warning: exported type FieldWrapper should have comment or be unexported (golint)
    • Line 248: warning: exported method FieldWrapper.TypeName should have comment or be unexported (golint)
    • Line 252: warning: exported method FieldWrapper.MethodName should have comment or be unexported (golint)
    • Line 256: warning: exported method FieldWrapper.Parameters should have comment or be unexported (golint)
    • Line 278: warning: exported method FieldWrapper.ReturnTypes should have comment or be unexported (golint)
    • Line 298: warning: exported method FieldWrapper.ReturnValues should have comment or be unexported (golint)
    • Line 309: warning: exported method FieldWrapper.IsSlice should have comment or be unexported (golint)
    • Line 313: warning: exported method FieldWrapper.IsArray should have comment or be unexported (golint)
    • Line 317: warning: exported method FieldWrapper.MustCopyEach should have comment or be unexported (golint)
    • Line 322: warning: exported method FieldWrapper.ElemIsPointer should have comment or be unexported (golint)
    • Line 327: warning: exported method FieldWrapper.EventualBuiltin should have comment or be unexported (golint)
    • Line 331: warning: exported method FieldWrapper.EventualInterface should have comment or be unexported (golint)
    • Line 349: warning: exported method FieldWrapper.SliceType should have comment or be unexported (golint)
    • Line 385: warning: exported function ZeroValue should have comment or be unexported (golint)
    • Line 421: warning: exported function NewContext should have comment or be unexported (golint)
    • Line 428: warning: exported type Context should have comment or be unexported (golint)
    • Line 433: warning: exported method Context.TypeName should have comment or be unexported (golint)
    • Line 443: warning: exported method Context.TypeNameWithPackage should have comment or be unexported (golint)
    • Line 453: warning: exported type Type should have comment or be unexported (golint)
    • Line 458: warning: exported method Type.Elem should have comment or be unexported (golint)
    • Line 464: warning: exported method Type.Underlying should have comment or be unexported (golint)
    • Line 477: 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 502: warning: exported function FuncToLiteral should have comment or be unexported (golint)
    • disgord/webhook.go
    • Line 33: warning: exported type WebhookQueryBuilder should have comment or be unexported (golint)
    • Line 178: warning: exported type WebhookWithTokenQueryBuilder should have comment or be unexported (golint)
    • disgord/application_command.go
    • Line 11: warning: exported type ApplicationCommandType should have comment or be unexported (golint)
    • Line 15: warning: exported const ApplicationCommandChatInput should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type ApplicationCommandOptionChoice should have comment or be unexported (golint)
    • Line 25: warning: exported type ApplicationCommandOption should have comment or be unexported (golint)
    • Line 34: warning: exported type ApplicationCommandDataOption should have comment or be unexported (golint)
    • Line 41: warning: exported type ApplicationCommandPermissionType should have comment or be unexported (golint)
    • Line 45: warning: exported const ApplicationCommandPermissionRole should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported type ApplicationCommandPermissions should have comment or be unexported (golint)
    • Line 54: warning: exported type GuildApplicationCommandPermissions should have comment or be unexported (golint)
    • Line 61: warning: exported type ApplicationCommand should have comment or be unexported (golint)
    • Line 72: warning: exported type UpdateApplicationCommand should have comment or be unexported (golint)
    • Line 79: warning: exported type ApplicationCommandQueryBuilder should have comment or be unexported (golint)
    • Line 85: warning: exported type ApplicationCommandFunctions should have comment or be unexported (golint)
    • disgord/auditlog.go
    • Line 3: warning: exported type AuditLogEvt should have comment or be unexported (golint)
    • Line 10: warning: exported const AuditLogEvtChannelCreate should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported const AuditLogEvtMemberKick should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported const AuditLogEvtRoleCreate should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported const AuditLogEvtInviteCreate should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported const AuditLogEvtWebhookCreate should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported const AuditLogEvtEmojiCreate should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported const AuditLogEvtMessageDelete should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: exported type AuditLogChange should have comment or be unexported (golint)
    • Line 111: warning: exported method AuditLog.Bans should have comment or be unexported (golint)
    • disgord/embed.go
    • Line 6: warning: exported type EmbedType should have comment or be unexported (golint)
    • Line 9: warning: exported const EmbedTypeRich should have comment (or a comment on this block) or be unexported (golint)
    • disgord/interaction.go
    • Line 3: warning: exported type InteractionType should have comment or be unexported (golint)
    • Line 7: warning: exported const InteractionPing should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type OptionType should have comment or be unexported (golint)
    • Line 16: warning: exported const SUB_COMMAND should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type InteractionCallbackType should have comment or be unexported (golint)
    • Line 32: warning: exported const Pong should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type ApplicationCommandInteractionData should have comment or be unexported (golint)
    • Line 55: warning: exported type MessageInteraction should have comment or be unexported (golint)
    • Line 62: warning: exported type InteractionApplicationCommandCallbackData should have comment or be unexported (golint)
    • Line 71: warning: exported type InteractionResponse should have comment or be unexported (golint)
    • disgord/internal/generate/sorters/main.go
    • Line 82: warning: exported type Field should have comment or be unexported (golint)
    • Line 87: warning: exported type Type should have comment or be unexported (golint)
    • Line 92: warning: exported method Type.HasField should have comment or be unexported (golint)
    • Line 102: warning: exported type Sorter should have comment or be unexported (golint)
    • Line 165: warning: exported function Capitalize should have comment or be unexported (golint)
    • disgord/rest.go
    • Line 18: warning: exported type ErrRest should have comment or be unexported (golint)
    • Line 174: warning: exported type RESTBuilder should have comment or be unexported (golint)
    • Line 303: warning: exported method RESTBuilder.IgnoreCache should have comment or be unexported (golint)
    • Line 308: warning: exported method RESTBuilder.CancelOnRatelimit should have comment or be unexported (golint)
    • Line 318: warning: exported type ClientQueryBuilderExecutables should have comment or be unexported (golint)
    • Line 329: warning: exported type ClientQueryBuilder should have comment or be unexported (golint)
    • disgord/voice.go
    • Line 133: warning: exported type VoiceChannelQueryBuilder should have comment or be unexported (golint)
    • disgord/message.go
    • Line 26: warning: exported const MessageFlagCrossposted should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported const MessageTypeDefault should have comment (or a comment on this block) or be unexported (golint)
    • Line 64: warning: exported const AttachmentSpoilerPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 73: warning: exported type MentionChannel should have comment or be unexported (golint)
    • Line 83: warning: exported type MessageReference should have comment or be unexported (golint)
    • Line 89: warning: exported type MessageComponentType should have comment or be unexported (golint)
    • Line 93: warning: exported const MessageComponentActionRow should have comment (or a comment on this block) or be unexported (golint)
    • Line 97: warning: exported type ButtonStyle should have comment or be unexported (golint)
    • Line 101: warning: exported const Primary should have comment (or a comment on this block) or be unexported (golint)
    • Line 108: warning: exported type MessageComponent should have comment or be unexported (golint)
    • Line 131: warning: exported type MessageStickerFormatType should have comment or be unexported (golint)
    • Line 135: warning: exported const MessageStickerFormatPNG should have comment (or a comment on this block) or be unexported (golint)
    • Line 140: warning: exported type StickerItem should have comment or be unexported (golint)
    • Line 149: warning: exported type MessageSticker should have comment or be unexported (golint)
    • Line 292: warning: exported method Message.React should have comment or be unexported (golint)
    • Line 302: warning: exported method Message.Unreact should have comment or be unexported (golint)
    • Line 324: warning: exported type MessageQueryBuilder should have comment or be unexported (golint)
    • disgord/reactor.go
    • Line 282: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 323: warning: exported method Ctrl.OnInsert should have comment or be unexported (golint)
    • Line 344: warning: exported method Ctrl.OnRemove should have comment or be unexported (golint)
    • Line 348: warning: exported method Ctrl.IsDead should have comment or be unexported (golint)
    • Line 352: warning: exported method Ctrl.Update should have comment or be unexported (golint)
    • disgord/internal/gateway/websocket.go
    • Line 10: warning: exported type Snowflake should have comment or be unexported (golint)
    • Line 12: warning: exported type Conn should have comment or be unexported (golint)
    • Line 21: warning: exported type CloseErr should have comment or be unexported (golint)
    • disgord/cache.go
    • Line 12: warning: error var CacheMissErr should have name of the form ErrFoo (golint)
    • Line 12: warning: exported var CacheMissErr should have comment or be unexported (golint)
    • Line 13: warning: error var CacheEntryAlreadyExistsErr should have name of the form ErrFoo (golint)
    • Line 13: warning: exported var CacheEntryAlreadyExistsErr should have comment or be unexported (golint)
    • Line 35: warning: exported function NewBasicCache should have comment or be unexported (golint)
    • Line 234: warning: exported method BasicCache.Ready should have comment or be unexported (golint)
    • Line 247: warning: exported method BasicCache.MessageCreate should have comment or be unexported (golint)
    • Line 262: warning: exported method BasicCache.ChannelCreate should have comment or be unexported (golint)
    • Line 298: warning: exported method BasicCache.ChannelUpdate should have comment or be unexported (golint)
    • Line 349: warning: exported method BasicCache.ChannelDelete should have comment or be unexported (golint)
    • Line 371: warning: exported method BasicCache.ChannelPinsUpdate should have comment or be unexported (golint)
    • Line 417: warning: exported method BasicCache.UserUpdate should have comment or be unexported (golint)
    • Line 445: warning: exported method BasicCache.VoiceServerUpdate should have comment or be unexported (golint)
    • Line 455: warning: exported method BasicCache.GuildMembersChunk should have comment or be unexported (golint)
    • Line 494: warning: exported method BasicCache.GuildMemberRemove should have comment or be unexported (golint)
    • Line 513: warning: exported method BasicCache.GuildMemberUpdate should have comment or be unexported (golint)
    • Line 537: warning: exported method BasicCache.GuildMemberAdd should have comment or be unexported (golint)
    • Line 600: warning: exported method BasicCache.GuildCreate should have comment or be unexported (golint)
    • Line 621: warning: exported method BasicCache.GuildUpdate should have comment or be unexported (golint)
    • Line 655: warning: exported method BasicCache.GuildDelete should have comment or be unexported (golint)
    • Line 669: warning: exported method BasicCache.GuildRoleCreate should have comment or be unexported (golint)
    • Line 700: warning: exported method BasicCache.GuildRoleUpdate should have comment or be unexported (golint)
    • Line 737: warning: exported method BasicCache.GuildRoleDelete should have comment or be unexported (golint)
    • Line 766: warning: exported method BasicCache.GetChannel should have comment or be unexported (golint)
    • Line 776: warning: exported method BasicCache.GetGuildEmoji should have comment or be unexported (golint)
    • Line 788: warning: exported method BasicCache.GetGuildEmojis should have comment or be unexported (golint)
    • Line 805: warning: exported method BasicCache.GetGuild should have comment or be unexported (golint)
    • Line 826: warning: exported method BasicCache.GetGuildChannels should have comment or be unexported (golint)
    • Line 874: warning: exported method BasicCache.GetGuildRoles should have comment or be unexported (golint)
    • Line 890: warning: exported method BasicCache.GetCurrentUser should have comment or be unexported (golint)
    • Line 899: warning: exported method BasicCache.GetUser should have comment or be unexported (golint)
    • disgord/channel.go
    • Line 24: warning: exported const ChannelTypeGuildText should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported type PermissionOverwriteType should have comment or be unexported (golint)
    • Line 57: warning: exported const PermissionOverwriteRole should have comment (or a comment on this block) or be unexported (golint)
    • Line 559: warning: exported method GroupDMParticipant.FindErrors should have comment or be unexported (golint)
    • Line 636: warning: exported method GetMessagesParams.Validate should have comment or be unexported (golint)
    • Line 1065: warning: exported method CreateWebhookParams.FindErrors should have comment or be unexported (golint)
    • disgord/internal/gateway/packets.go
    • Line 41: warning: exported type GatewayBotGetter should have comment or be unexported (golint)
    • Line 56: warning: exported type VoiceReady should have comment or be unexported (golint)
    • Line 74: warning: exported type VoiceSelectProtocolParams should have comment or be unexported (golint)
    • Line 80: warning: exported type VoiceSessionDescription should have comment or be unexported (golint)
    • Line 118: warning: exported type RequestGuildMembersPayload should have comment or be unexported (golint)
    • Line 140: warning: exported type UpdateVoiceStatePayload should have comment or be unexported (golint)
    • Line 160: warning: exported const StatusOnline should have comment (or a comment on this block) or be unexported (golint)
    • Line 167: warning: exported type UpdateStatusPayload should have comment or be unexported (golint)
    • disgord/internal/gateway/voiceclient.go
    • Line 20: warning: exported type VoiceConfig should have comment or be unexported (golint)
    • Line 53: warning: exported type VoiceClient should have comment or be unexported (golint)
    • Line 63: warning: exported function NewVoiceClient should have comment or be unexported (golint)
    • Line 96: warning: exported method VoiceClient.Active should have comment or be unexported (golint)
    • Line 382: warning: exported method VoiceClient.SendUDPInfo should have comment or be unexported (golint)
    • disgord/std/msgfilter.go
    • Line 10: warning: exported function NewMsgFilter should have comment or be unexported (golint)
    • Line 19: warning: exported type CurrentUserRESTResource should have comment or be unexported (golint)
    • disgord/internal/util/ticketQueue.go
    • Line 7: warning: exported type Ticket should have comment or be unexported (golint)
    • Line 10: warning: exported const NoTicket should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type TicketQueue should have comment or be unexported (golint)
    • Line 19: warning: exported method TicketQueue.NewTicket should have comment or be unexported (golint)
    • Line 32: warning: exported method TicketQueue.Delete should have comment or be unexported (golint)
    • Line 55: warning: exported method TicketQueue.Next should have comment or be unexported (golint)
    • disgord/internal/gateway/metric.go
    • Line 8: warning: exported const MetricReconnectPeriod should have comment or be unexported (golint)
    • Line 10: warning: comment on exported type IdentifyMetric should be of the form "IdentifyMetric ..." (with optional leading article) (golint)
    • disgord/member.go
    • Line 12: warning: exported type GuildMemberQueryBuilder should have comment or be unexported (golint)
    • disgord/docs/examples/bot-with-msg-self-delete/main.go
    • Line 20: warning: exported const MessageLifeTime should have comment or be unexported (golint)
    • Line 62: warning: comment on exported function NewMiddlewareHolder should be of the form "NewMiddlewareHolder ..." (golint)
    • Line 67: warning: context.Context should be the first parameter of a function (golint)
    • Line 76: warning: comment on exported type MiddlewareHolder should be of the form "MiddlewareHolder ..." (with optional leading article) (golint)
    • disgord/internal/util/queue.go
    • Line 8: warning: exported type Queue should have comment or be unexported (golint)
    • Line 20: warning: exported function NewThreadSafeQueue should have comment or be unexported (golint)
    • Line 55: warning: exported function NewThreadUnsafeQueue should have comment or be unexported (golint)
    • disgord/json/config.go
    • Line 6: warning: exported var Marshal should have comment or be unexported (golint)
    • Line 14: warning: exported type RawMessage should have comment or be unexported (golint)
    • Line 16: warning: exported type Unmarshaler should have comment or be unexported (golint)
    • Line 20: warning: exported type Marshaler should have comment or be unexported (golint)
    • disgord/internal/httd/request.go
    • Line 32: warning: exported method Request.PopulateMissing should have comment or be unexported (golint)
    • Line 47: warning: exported method Request.HashEndpoint should have comment or be unexported (golint)
    • disgord/emoji.go
    • Line 71: warning: exported type GuildEmojiQueryBuilder should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words