Preparing report...

Report for github.com/binwiederhier/replbot

A+    Excellent!    Found 8 issues across 17 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!


gocyclo88%

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.


golint58%

Golint is a linter for Go source code.

    • replbot/bot/bot.go
    • Line 42: warning: exported type Bot should have comment or be unexported (golint)
    • Line 50: warning: exported function New should have comment or be unexported (golint)
    • Line 72: warning: exported method Bot.Run should have comment or be unexported (golint)
    • Line 104: warning: exported method Bot.Stop should have comment or be unexported (golint)
    • replbot/bot/conn.go
    • Line 7: warning: exported type ChannelType should have comment or be unexported (golint)
    • Line 10: warning: exported const Unknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type Format should have comment or be unexported (golint)
    • Line 18: warning: exported const Markdown should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type ChatID should have comment or be unexported (golint)
    • Line 27: warning: exported type Conn should have comment or be unexported (golint)
    • replbot/bot/conn_discord.go
    • Line 22: warning: exported type DiscordConn should have comment or be unexported (golint)
    • Line 29: warning: exported function NewDiscordConn should have comment or be unexported (golint)
    • Line 36: warning: exported method DiscordConn.Connect should have comment or be unexported (golint)
    • Line 56: warning: exported method DiscordConn.Send should have comment or be unexported (golint)
    • Line 56: warning: receiver name s should be consistent with previous receiver name b for DiscordConn (golint)
    • Line 61: warning: exported method DiscordConn.SendWithID should have comment or be unexported (golint)
    • Line 61: warning: receiver name s should be consistent with previous receiver name b for DiscordConn (golint)
    • Line 72: warning: exported method DiscordConn.Update should have comment or be unexported (golint)
    • Line 72: warning: receiver name s should be consistent with previous receiver name b for DiscordConn (golint)
    • Line 83: warning: exported method DiscordConn.Archive should have comment or be unexported (golint)
    • Line 83: warning: receiver name s should be consistent with previous receiver name b for DiscordConn (golint)
    • Line 96: warning: exported method DiscordConn.Close should have comment or be unexported (golint)
    • Line 100: warning: exported method DiscordConn.MentionBot should have comment or be unexported (golint)
    • Line 104: warning: exported method DiscordConn.Mention should have comment or be unexported (golint)
    • Line 108: warning: exported method DiscordConn.ParseMention should have comment or be unexported (golint)
    • Line 115: warning: exported method DiscordConn.Unescape should have comment or be unexported (golint)
    • Line 173: warning: receiver name s should be consistent with previous receiver name b for DiscordConn (golint)
    • Line 177: warning: receiver name s should be consistent with previous receiver name b for DiscordConn (golint)
    • Line 189: warning: receiver name s should be consistent with previous receiver name b for DiscordConn (golint)
    • Line 198: warning: receiver name s should be consistent with previous receiver name b for DiscordConn (golint)
    • replbot/bot/conn_mem.go
    • Line 12: warning: exported type MemConn should have comment or be unexported (golint)
    • Line 19: warning: exported function NewMemConn should have comment or be unexported (golint)
    • Line 27: warning: exported method MemConn.Connect should have comment or be unexported (golint)
    • Line 31: warning: exported method MemConn.Send should have comment or be unexported (golint)
    • Line 41: warning: exported method MemConn.SendWithID should have comment or be unexported (golint)
    • Line 53: warning: exported method MemConn.Update should have comment or be unexported (golint)
    • Line 64: warning: exported method MemConn.Archive should have comment or be unexported (golint)
    • Line 68: warning: exported method MemConn.Close should have comment or be unexported (golint)
    • Line 72: warning: exported method MemConn.MentionBot should have comment or be unexported (golint)
    • Line 76: warning: exported method MemConn.Mention should have comment or be unexported (golint)
    • Line 80: warning: exported method MemConn.ParseMention should have comment or be unexported (golint)
    • Line 84: warning: exported method MemConn.Unescape should have comment or be unexported (golint)
    • Line 88: warning: exported method MemConn.Message should have comment or be unexported (golint)
    • Line 94: warning: exported method MemConn.LogMessages should have comment or be unexported (golint)
    • replbot/bot/conn_slack.go
    • Line 30: warning: exported type SlackConn should have comment or be unexported (golint)
    • Line 37: warning: exported function NewSlackConn should have comment or be unexported (golint)
    • Line 43: warning: exported method SlackConn.Connect should have comment or be unexported (golint)
    • Line 62: warning: exported method SlackConn.Send should have comment or be unexported (golint)
    • Line 62: warning: receiver name s should be consistent with previous receiver name b for SlackConn (golint)
    • Line 67: warning: exported method SlackConn.SendWithID should have comment or be unexported (golint)
    • Line 67: warning: receiver name s should be consistent with previous receiver name b for SlackConn (golint)
    • Line 78: warning: exported method SlackConn.Update should have comment or be unexported (golint)
    • Line 78: warning: receiver name s should be consistent with previous receiver name b for SlackConn (golint)
    • Line 89: warning: exported method SlackConn.Archive should have comment or be unexported (golint)
    • Line 89: warning: receiver name s should be consistent with previous receiver name b for SlackConn (golint)
    • Line 93: warning: exported method SlackConn.Close should have comment or be unexported (golint)
    • Line 97: warning: exported method SlackConn.MentionBot should have comment or be unexported (golint)
    • Line 103: warning: exported method SlackConn.Mention should have comment or be unexported (golint)
    • Line 107: warning: exported method SlackConn.ParseMention should have comment or be unexported (golint)
    • Line 114: warning: exported method SlackConn.Unescape should have comment or be unexported (golint)
    • Line 194: warning: receiver name s should be consistent with previous receiver name b for SlackConn (golint)
    • Line 198: warning: receiver name s should be consistent with previous receiver name b for SlackConn (golint)
    • Line 202: warning: receiver name s should be consistent with previous receiver name b for SlackConn (golint)
    • Line 218: warning: receiver name s should be consistent with previous receiver name b for SlackConn (golint)
    • Line 234: warning: receiver name s should be consistent with previous receiver name b for SlackConn (golint)
    • replbot/bot/session.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 143: warning: exported type SessionConfig should have comment or be unexported (golint)
    • Line 163: warning: exported function NewSession should have comment or be unexported (golint)
    • Line 193: warning: exported method Session.Run should have comment or be unexported (golint)
    • Line 233: warning: exported method Session.Active should have comment or be unexported (golint)
    • Line 239: warning: exported method Session.ForceClose should have comment or be unexported (golint)
    • Line 248: warning: exported method Session.WriteShareClientScript should have comment or be unexported (golint)
    • Line 255: warning: exported method Session.RegisterShareConn should have comment or be unexported (golint)
    • replbot/config/config.go
    • Line 14: warning: exported const DefaultRefreshInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported const DefaultControlMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type WindowMode should have comment or be unexported (golint)
    • Line 31: warning: exported const DefaultWindowMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported type AuthMode should have comment or be unexported (golint)
    • Line 39: warning: exported const DefaultAuthMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: exported var Tiny should have comment or be unexported (golint)
    • Line 67: warning: exported const CursorOff should have comment (or a comment on this block) or be unexported (golint)
    • Line 72: warning: exported const TypeSlack should have comment (or a comment on this block) or be unexported (golint)
    • Line 105: warning: exported method Config.Type should have comment or be unexported (golint)
    • Line 112: warning: exported method Config.ShareEnabled 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!