Report for github.com/peach-bot/Peach

A+    Excellent!    Found 21 issues across 45 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!


gocyclo95%

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.


golint60%

Golint is a linter for Go source code.

    • Peach/src/peach_discord_client/channel.go
    • Line 63: warning: exported const MessageFlagCrossposted should have comment (or a comment on this block) or be unexported (golint)
    • Line 72: warning: exported method Message.Delete should have comment or be unexported (golint)
    • Line 76: warning: exported method Message.Edit should have comment or be unexported (golint)
    • Line 145: warning: exported type EmbedFooter should have comment or be unexported (golint)
    • Line 151: warning: exported type EmbedImage should have comment or be unexported (golint)
    • Line 158: warning: exported type EmbedThumbnail should have comment or be unexported (golint)
    • Line 165: warning: exported type EmbedProvider should have comment or be unexported (golint)
    • Line 170: warning: exported type EmbedVideo should have comment or be unexported (golint)
    • Line 176: warning: exported type EmbedAuthor should have comment or be unexported (golint)
    • Line 190: warning: exported type AllowedMentions should have comment or be unexported (golint)
    • Line 197: warning: exported type MentionType should have comment or be unexported (golint)
    • Line 200: warning: exported const MentionRoles should have comment (or a comment on this block) or be unexported (golint)
    • Peach/src/peach_discord_client/http_guild_methods.go
    • Line 13: warning: exported type CreateGuildArgs should have comment or be unexported (golint)
    • Line 94: warning: exported method Client.GetGuildPreview should have comment or be unexported (golint)
    • Line 116: warning: exported type ModifyGuildArgs should have comment or be unexported (golint)
    • Line 134: warning: exported method Client.ModifyGuild should have comment or be unexported (golint)
    • Line 159: warning: exported method Client.DeleteGuild should have comment or be unexported (golint)
    • Line 177: warning: exported method Client.GetGuildChannels should have comment or be unexported (golint)
    • Line 203: warning: exported type CreateGuildChannelArgs should have comment or be unexported (golint)
    • Line 216: warning: exported method Client.CreateGuildChannel should have comment or be unexported (golint)
    • Line 237: warning: exported type ModifyGuildChannelPositionsArgs should have comment or be unexported (golint)
    • Line 242: warning: exported method Client.ModifyGuildChannelPositions should have comment or be unexported (golint)
    • Line 257: warning: exported method Client.GetGuildMember should have comment or be unexported (golint)
    • Line 279: warning: exported method Client.GetGuildMembers should have comment or be unexported (golint)
    • Line 310: warning: exported type ModifyGuildMemberArgs should have comment or be unexported (golint)
    • Line 318: warning: exported method Client.ModifyGuildMember should have comment or be unexported (golint)
    • Line 340: warning: exported method Client.ModifyCurrentUserNick should have comment or be unexported (golint)
    • Line 371: warning: exported method Client.AddGuildMemberRole should have comment or be unexported (golint)
    • Line 386: warning: exported method Client.RemoveGuildMemberRole should have comment or be unexported (golint)
    • Line 401: warning: exported method Client.RemoveGuildMember should have comment or be unexported (golint)
    • Line 416: warning: exported method Client.GetGuildBans should have comment or be unexported (golint)
    • Line 438: warning: exported method Client.GetGuildBan should have comment or be unexported (golint)
    • Line 464: warning: exported type CreateGuildBanArgs should have comment or be unexported (golint)
    • Line 469: warning: exported method Client.CreateGuildBan should have comment or be unexported (golint)
    • Line 484: warning: exported method Client.RemoveGuildBan should have comment or be unexported (golint)
    • Line 499: warning: exported method Client.GetGuildRoles should have comment or be unexported (golint)
    • Line 521: warning: exported type CreateGuildRoleArgs should have comment or be unexported (golint)
    • Line 529: warning: exported method Client.CreateGuildRole should have comment or be unexported (golint)
    • Line 548: warning: exported type ModifyGuildRolePositionsArgs should have comment or be unexported (golint)
    • Line 553: warning: exported method Client.ModifyGuildRolePositions should have comment or be unexported (golint)
    • Line 576: warning: exported type ModifyGuildRoleArgs should have comment or be unexported (golint)
    • Line 584: warning: exported method Client.ModifyGuildRole should have comment or be unexported (golint)
    • Line 603: warning: exported method Client.DeleteGuildRole should have comment or be unexported (golint)
    • Line 615: warning: exported method Client.GetGuildPruneCount should have comment or be unexported (golint)
    • Line 645: warning: exported type GuildPruneArgs should have comment or be unexported (golint)
    • Line 651: warning: exported method Client.GuildPrune should have comment or be unexported (golint)
    • Line 678: warning: exported method Client.GetGuildVoiceRegions should have comment or be unexported (golint)
    • Line 701: warning: exported method Client.GetGuildInvites should have comment or be unexported (golint)
    • Line 724: warning: exported method Client.GetGuildIntegrations should have comment or be unexported (golint)
    • Line 747: warning: exported type CreateGuildIntegrationArgs should have comment or be unexported (golint)
    • Line 752: warning: exported method Client.CreateGuildIntegration should have comment or be unexported (golint)
    • Line 767: warning: exported type ModifyGuildIntegrationArgs should have comment or be unexported (golint)
    • Line 773: warning: exported method Client.ModifyGuildIntegration should have comment or be unexported (golint)
    • Line 788: warning: exported method Client.DeleteGuildIntegration should have comment or be unexported (golint)
    • Line 803: warning: exported method Client.SyncGuildIntegration should have comment or be unexported (golint)
    • Line 818: warning: exported method Client.GetGuildWidgetSettings should have comment or be unexported (golint)
    • Line 841: warning: exported method Client.ModifyGuildWidget should have comment or be unexported (golint)
    • Line 864: warning: exported method Client.GetGuildVanityURL should have comment or be unexported (golint)
    • Peach/src/peach_discord_client/ratelimiter.go
    • Line 12: warning: exported type Ratelimiter should have comment or be unexported (golint)
    • Line 18: warning: exported type Route should have comment or be unexported (golint)
    • Line 27: warning: exported function CreateRatelimiter should have comment or be unexported (golint)
    • Line 34: warning: exported method Ratelimiter.GetRoute should have comment or be unexported (golint)
    • Line 47: warning: exported method Route.WaitTime should have comment or be unexported (golint)
    • Line 61: warning: exported method Route.Wait should have comment or be unexported (golint)
    • Line 70: warning: exported method Route.Prepare should have comment or be unexported (golint)
    • Line 76: warning: exported method Ratelimiter.PrepareRoute should have comment or be unexported (golint)
    • Line 82: warning: exported method Route.Release should have comment or be unexported (golint)
    • Peach/src/peach_discord_client/guild.go
    • Line 72: warning: exported type WelcomeScreen should have comment or be unexported (golint)
    • Line 77: warning: exported type WelcomeChannel should have comment or be unexported (golint)
    • Line 84: warning: exported type Ban should have comment or be unexported (golint)
    • Line 89: warning: exported type Invite should have comment or be unexported (golint)
    • Line 106: warning: exported const TargetUserTypeStream should have comment (or a comment on this block) or be unexported (golint)
    • Line 109: warning: exported type GuildPreview should have comment or be unexported (golint)
    • Line 122: warning: exported type Integration should have comment or be unexported (golint)
    • Line 140: warning: exported type Widget should have comment or be unexported (golint)
    • Line 146: warning: exported const ExpireBehaviorRemoveRole should have comment (or a comment on this block) or be unexported (golint)
    • Peach/src/peach_discord_client/http_channel_methods.go
    • Line 58: warning: exported type ModifyChannelArgs should have comment or be unexported (golint)
    • Line 73: warning: exported method Client.ModifyChannel should have comment or be unexported (golint)
    • Line 98: warning: exported method Client.DeleteChannel should have comment or be unexported (golint)
    • Line 161: warning: exported method Client.GetChannelMessage should have comment or be unexported (golint)
    • Line 208: warning: exported method Client.CrosspostMessage should have comment or be unexported (golint)
    • Line 230: warning: exported method Client.CreateReaction should have comment or be unexported (golint)
    • Line 250: warning: exported method Client.DeleteBotReaction should have comment or be unexported (golint)
    • Line 270: warning: exported method Client.DeleteUserReaction should have comment or be unexported (golint)
    • Line 290: warning: exported method Client.GetReactions should have comment or be unexported (golint)
    • Line 318: warning: exported method Client.DeleteAllReactions should have comment or be unexported (golint)
    • Line 335: warning: exported method Client.DeleteEmojiReactions should have comment or be unexported (golint)
    • Line 356: warning: exported type EditMessageArgs should have comment or be unexported (golint)
    • Line 363: warning: comment on exported method Client.EditMessage should be of the form "EditMessage ..." (golint)
    • Line 402: warning: exported method Client.BulkDeleteMessages should have comment or be unexported (golint)
    • Line 432: warning: exported type EditChannelPermissionsArgs should have comment or be unexported (golint)
    • Line 438: warning: exported method Client.EditChannelPermissions should have comment or be unexported (golint)
    • Line 454: warning: exported method Client.GetChannelInvites should have comment or be unexported (golint)
    • Line 477: warning: exported type CreateChannelInviteArgs should have comment or be unexported (golint)
    • Line 487: warning: exported method Client.CreateChannelInvite should have comment or be unexported (golint)
    • Line 510: warning: exported method Client.DeleteChannelPermission should have comment or be unexported (golint)
    • Line 526: warning: exported method Client.FollowNewsChannel should have comment or be unexported (golint)
    • Line 548: warning: exported method Client.TriggerTypingIndicator should have comment or be unexported (golint)
    • Line 564: warning: exported method Client.GetPinnedMessages should have comment or be unexported (golint)
    • Line 588: warning: exported method Client.PinMessage should have comment or be unexported (golint)
    • Line 604: warning: exported method Client.DeletePinnedMessage should have comment or be unexported (golint)
    • Peach/src/peach_discord_client/coordinator.go
    • Line 35: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 66: warning: comment on exported method Client.CoordinatorReady should be of the form "CoordinatorReady ..." (golint)
    • Line 87: warning: comment on exported method Client.CoordinatorHeartbeat should be of the form "CoordinatorHeartbeat ..." (golint)
    • Peach/src/peach_launcher/launcher.go
    • Line 16: warning: exported type Launcher should have comment or be unexported (golint)
    • Line 26: warning: exported type Client should have comment or be unexported (golint)
    • Line 31: warning: exported type Coordinator should have comment or be unexported (golint)
    • Line 74: warning: exported method Launcher.SetupCloseHandler should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!