Preparing report...

Report for github.com/prologic/eris

A+    Excellent!    Found 22 issues across 27 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!


golint22%

Golint is a linter for Go source code.

    • eris/irc/socket.go
    • Line 13: warning: exported const R should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type Socket should have comment or be unexported (golint)
    • Line 25: warning: exported function NewSocket should have comment or be unexported (golint)
    • Line 37: warning: exported method Socket.Close should have comment or be unexported (golint)
    • eris/irc/www.go
    • Line 11: warning: don't use underscores in Go names; var network_template should be networkTemplate (golint)
    • Line 33: warning: don't use underscores in Go names; var server_template should be serverTemplate (golint)
    • Line 47: warning: don't use underscores in Go names; var ops_template should be opsTemplate (golint)
    • Line 60: warning: don't use underscores in Go names; var default_template should be defaultTemplate (golint)
    • eris/irc/constants.go
    • Line 4: warning: exported const CRLF should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: comment on exported const AUTHENTICATE should be of the form "AUTHENTICATE ..." (golint)
    • Line 42: warning: comment on exported const RPL_WELCOME should be of the form "RPL_WELCOME ..." (golint)
    • Line 184: warning: comment on exported const RPL_LOGGEDIN should be of the form "RPL_LOGGEDIN ..." (golint)
    • eris/irc/net.go
    • Line 8: warning: exported function IPString should have comment or be unexported (golint)
    • Line 17: warning: exported function AddrLookupHostname should have comment or be unexported (golint)
    • Line 21: warning: exported function LookupHostname should have comment or be unexported (golint)
    • Line 33: warning: exported function IsHostname should have comment or be unexported (golint)
    • eris/irc/nickname.go
    • Line 3: warning: exported type NickCommand should have comment or be unexported (golint)
    • Line 8: warning: exported method NickCommand.HandleRegServer should have comment or be unexported (golint)
    • Line 35: warning: exported method NickCommand.HandleServer should have comment or be unexported (golint)
    • Line 35: warning: receiver name msg should be consistent with previous receiver name m for NickCommand (golint)
    • Line 61: warning: exported type OperNickCommand should have comment or be unexported (golint)
    • Line 67: warning: exported method OperNickCommand.HandleServer should have comment or be unexported (golint)
    • eris/irc/password.go
    • Line 12: warning: exported var DefaultPasswordHasher should have comment or be unexported (golint)
    • Line 14: warning: exported type PasswordHasher should have comment or be unexported (golint)
    • Line 20: warning: exported type PasswordStore should have comment or be unexported (golint)
    • Line 26: warning: exported type PasswordStoreOpts should have comment or be unexported (golint)
    • Line 30: warning: exported type MemoryPasswordStore should have comment or be unexported (golint)
    • Line 36: warning: exported function NewMemoryPasswordStore should have comment or be unexported (golint)
    • Line 51: warning: exported method MemoryPasswordStore.Get should have comment or be unexported (golint)
    • Line 59: warning: exported method MemoryPasswordStore.Set should have comment or be unexported (golint)
    • Line 64: warning: exported method MemoryPasswordStore.Verify should have comment or be unexported (golint)
    • Line 76: warning: exported type Base64BCryptPasswordHasher should have comment or be unexported (golint)
    • Line 78: warning: exported method Base64BCryptPasswordHasher.Decode should have comment or be unexported (golint)
    • Line 91: warning: exported method Base64BCryptPasswordHasher.Encode should have comment or be unexported (golint)
    • Line 104: warning: exported method Base64BCryptPasswordHasher.Compare should have comment or be unexported (golint)
    • Line 119: warning: exported function DecodePassword should have comment or be unexported (golint)
    • Line 128: warning: exported function ComparePassword should have comment or be unexported (golint)
    • eris/irc/whowas.go
    • Line 7: warning: exported type WhoWasList should have comment or be unexported (golint)
    • Line 14: warning: exported type WhoWas should have comment or be unexported (golint)
    • Line 22: warning: exported function NewWhoWasList should have comment or be unexported (golint)
    • Line 28: warning: exported method WhoWasList.Append should have comment or be unexported (golint)
    • Line 44: warning: exported method WhoWasList.Find should have comment or be unexported (golint)
    • Line 70: warning: comment on exported method WhoWasList.Each should be of the form "Each ..." (golint)
    • eris/irc/client_lookup_set.go
    • Line 13: warning: exported var ErrNickMissing should have comment or be unexported (golint)
    • Line 18: warning: exported function ExpandUserHost should have comment or be unexported (golint)
    • Line 30: warning: exported type ClientLookupSet should have comment or be unexported (golint)
    • Line 35: warning: exported function NewClientLookupSet should have comment or be unexported (golint)
    • Line 41: warning: exported method ClientLookupSet.Count should have comment or be unexported (golint)
    • Line 48: warning: exported method ClientLookupSet.Get should have comment or be unexported (golint)
    • Line 55: warning: exported method ClientLookupSet.Add should have comment or be unexported (golint)
    • Line 70: warning: exported method ClientLookupSet.Remove should have comment or be unexported (golint)
    • Line 85: warning: exported method ClientLookupSet.Range should have comment or be unexported (golint)
    • Line 95: warning: exported method ClientLookupSet.FindAll should have comment or be unexported (golint)
    • Line 115: warning: exported method ClientLookupSet.Find should have comment or be unexported (golint)
    • Line 137: warning: exported type UserMaskSet should have comment or be unexported (golint)
    • Line 142: warning: exported function NewUserMaskSet should have comment or be unexported (golint)
    • Line 148: warning: exported method UserMaskSet.Add should have comment or be unexported (golint)
    • Line 157: warning: exported method UserMaskSet.AddAll should have comment or be unexported (golint)
    • Line 168: warning: exported method UserMaskSet.Remove should have comment or be unexported (golint)
    • Line 177: warning: exported method UserMaskSet.Match should have comment or be unexported (golint)
    • eris/irc/commands.go
    • Line 11: warning: exported type Command should have comment or be unexported (golint)
    • Line 26: warning: error var NotEnoughArgsError should have name of the form ErrFoo (golint)
    • Line 26: warning: exported var NotEnoughArgsError should have comment or be unexported (golint)
    • Line 64: warning: exported type BaseCommand should have comment or be unexported (golint)
    • Line 69: warning: exported method BaseCommand.Client should have comment or be unexported (golint)
    • Line 73: warning: exported method BaseCommand.SetClient should have comment or be unexported (golint)
    • Line 77: warning: exported method BaseCommand.Code should have comment or be unexported (golint)
    • Line 81: warning: exported method BaseCommand.SetCode should have comment or be unexported (golint)
    • Line 85: warning: exported function ParseCommand should have comment or be unexported (golint)
    • Line 114: warning: exported function ParseLine should have comment or be unexported (golint)
    • Line 134: warning: exported type UnknownCommand should have comment or be unexported (golint)
    • Line 139: warning: exported function ParseUnknownCommand should have comment or be unexported (golint)
    • Line 147: warning: exported type PingCommand should have comment or be unexported (golint)
    • Line 153: warning: exported function ParsePingCommand should have comment or be unexported (golint)
    • Line 168: warning: exported type PongCommand should have comment or be unexported (golint)
    • Line 174: warning: exported function ParsePongCommand should have comment or be unexported (golint)
    • Line 189: warning: exported type AuthenticateCommand should have comment or be unexported (golint)
    • Line 194: warning: exported function ParseAuthenticateCommand should have comment or be unexported (golint)
    • Line 205: warning: exported type PassCommand should have comment or be unexported (golint)
    • Line 212: warning: exported method PassCommand.LoadPassword should have comment or be unexported (golint)
    • Line 216: warning: exported method PassCommand.CheckPassword should have comment or be unexported (golint)
    • Line 223: warning: exported function ParsePassCommand should have comment or be unexported (golint)
    • Line 234: warning: exported function ParseNickCommand should have comment or be unexported (golint)
    • Line 243: warning: exported type UserCommand should have comment or be unexported (golint)
    • Line 249: warning: comment on exported type RFC1459UserCommand should be of the form "RFC1459UserCommand ..." (with optional leading article) (golint)
    • Line 256: warning: comment on exported type RFC2812UserCommand should be of the form "RFC2812UserCommand ..." (with optional leading article) (golint)
    • Line 263: warning: exported method RFC2812UserCommand.Flags should have comment or be unexported (golint)
    • Line 274: warning: exported function ParseUserCommand should have comment or be unexported (golint)
    • Line 300: warning: exported type QuitCommand should have comment or be unexported (golint)
    • Line 305: warning: exported function NewQuitCommand should have comment or be unexported (golint)
    • Line 313: warning: exported function ParseQuitCommand should have comment or be unexported (golint)
    • Line 323: warning: exported type JoinCommand should have comment or be unexported (golint)
    • Line 329: warning: exported function ParseJoinCommand should have comment or be unexported (golint)
    • Line 362: warning: exported type PartCommand should have comment or be unexported (golint)
    • Line 368: warning: exported method PartCommand.Message should have comment or be unexported (golint)
    • Line 375: warning: exported function ParsePartCommand should have comment or be unexported (golint)
    • Line 390: warning: exported type PrivMsgCommand should have comment or be unexported (golint)
    • Line 396: warning: exported function ParsePrivMsgCommand should have comment or be unexported (golint)
    • Line 408: warning: exported type TopicCommand should have comment or be unexported (golint)
    • Line 415: warning: exported function ParseTopicCommand should have comment or be unexported (golint)
    • Line 429: warning: exported type ModeChange should have comment or be unexported (golint)
    • Line 438: warning: exported type ModeChanges should have comment or be unexported (golint)
    • Line 458: warning: exported type ModeCommand should have comment or be unexported (golint)
    • Line 464: warning: comment on exported function ParseUserModeCommand should be of the form "ParseUserModeCommand ..." (golint)
    • Line 491: warning: exported type ChannelModeChange should have comment or be unexported (golint)
    • Line 508: warning: exported type ChannelModeChanges should have comment or be unexported (golint)
    • Line 531: warning: exported type ChannelModeCommand should have comment or be unexported (golint)
    • Line 537: warning: comment on exported function ParseChannelModeCommand should be of the form "ParseChannelModeCommand ..." (golint)
    • Line 580: warning: exported function ParseModeCommand should have comment or be unexported (golint)
    • Line 588: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 593: warning: exported type WhoisCommand should have comment or be unexported (golint)
    • Line 599: warning: comment on exported function ParseWhoisCommand should be of the form "ParseWhoisCommand ..." (golint)
    • Line 621: warning: exported type WhoCommand should have comment or be unexported (golint)
    • Line 627: warning: comment on exported function ParseWhoCommand should be of the form "ParseWhoCommand ..." (golint)
    • Line 642: warning: exported type OperCommand should have comment or be unexported (golint)
    • Line 647: warning: exported method OperCommand.LoadPassword should have comment or be unexported (golint)
    • Line 651: warning: comment on exported function ParseOperCommand should be of the form "ParseOperCommand ..." (golint)
    • Line 664: warning: exported type RehashCommand should have comment or be unexported (golint)
    • Line 668: warning: comment on exported function ParseRehashCommand should be of the form "ParseRehashCommand ..." (golint)
    • Line 673: warning: exported type CapCommand should have comment or be unexported (golint)
    • Line 679: warning: exported function ParseCapCommand should have comment or be unexported (golint)
    • Line 698: warning: exported type AwayCommand should have comment or be unexported (golint)
    • Line 703: warning: exported function ParseAwayCommand should have comment or be unexported (golint)
    • Line 713: warning: exported type IsOnCommand should have comment or be unexported (golint)
    • Line 718: warning: exported function ParseIsOnCommand should have comment or be unexported (golint)
    • Line 728: warning: exported type MOTDCommand should have comment or be unexported (golint)
    • Line 733: warning: exported function ParseMOTDCommand should have comment or be unexported (golint)
    • Line 741: warning: exported type NoticeCommand should have comment or be unexported (golint)
    • Line 747: warning: exported function ParseNoticeCommand should have comment or be unexported (golint)
    • Line 757: warning: exported type KickCommand should have comment or be unexported (golint)
    • Line 763: warning: exported method KickCommand.Comment should have comment or be unexported (golint)
    • Line 770: warning: exported function ParseKickCommand should have comment or be unexported (golint)
    • Line 795: warning: exported type ListCommand should have comment or be unexported (golint)
    • Line 801: warning: exported function ParseListCommand should have comment or be unexported (golint)
    • Line 812: warning: exported type NamesCommand should have comment or be unexported (golint)
    • Line 818: warning: exported function ParseNamesCommand should have comment or be unexported (golint)
    • Line 829: warning: exported type VersionCommand should have comment or be unexported (golint)
    • Line 834: warning: exported function ParseVersionCommand should have comment or be unexported (golint)
    • Line 842: warning: exported type InviteCommand should have comment or be unexported (golint)
    • Line 848: warning: exported function ParseInviteCommand should have comment or be unexported (golint)
    • Line 859: warning: exported type TimeCommand should have comment or be unexported (golint)
    • Line 864: warning: exported function ParseTimeCommand should have comment or be unexported (golint)
    • Line 872: warning: exported type LUsersCommand should have comment or be unexported (golint)
    • Line 876: warning: exported function ParseLUsersCommand should have comment or be unexported (golint)
    • Line 880: warning: exported type KillCommand should have comment or be unexported (golint)
    • Line 886: warning: exported function ParseKillCommand should have comment or be unexported (golint)
    • Line 896: warning: exported type WallopsCommand should have comment or be unexported (golint)
    • Line 901: warning: exported function ParseWallopsCommand should have comment or be unexported (golint)
    • Line 910: warning: exported type WhoWasCommand should have comment or be unexported (golint)
    • Line 917: warning: exported function ParseWhoWasCommand should have comment or be unexported (golint)
    • Line 933: warning: exported function ParseOperNickCommand should have comment or be unexported (golint)
    • eris/irc/reply.go
    • Line 9: warning: exported type ReplyCode should have comment or be unexported (golint)
    • Line 13: warning: exported type StringCode should have comment or be unexported (golint)
    • Line 19: warning: exported type NumericCode should have comment or be unexported (golint)
    • Line 25: warning: exported function NewStringReply should have comment or be unexported (golint)
    • Line 42: warning: exported function NewNumericReply should have comment or be unexported (golint)
    • Line 54: warning: exported method Client.NumericReply should have comment or be unexported (golint)
    • Line 71: warning: exported method Client.MultilineReply should have comment or be unexported (golint)
    • Line 98: warning: exported function RplPrivMsg should have comment or be unexported (golint)
    • Line 102: warning: exported function RplCTCPAction should have comment or be unexported (golint)
    • Line 106: warning: exported function RplNotice should have comment or be unexported (golint)
    • Line 110: warning: exported function RplNick should have comment or be unexported (golint)
    • Line 114: warning: exported function RplJoin should have comment or be unexported (golint)
    • Line 118: warning: exported function RplPart should have comment or be unexported (golint)
    • Line 122: warning: exported function RplModeChanges should have comment or be unexported (golint)
    • Line 126: warning: exported function RplChannelMode should have comment or be unexported (golint)
    • Line 131: warning: exported function RplTopicMsg should have comment or be unexported (golint)
    • Line 135: warning: exported function RplPing should have comment or be unexported (golint)
    • Line 139: warning: exported function RplPong should have comment or be unexported (golint)
    • Line 144: warning: exported function RplQuit should have comment or be unexported (golint)
    • Line 148: warning: exported function RplError should have comment or be unexported (golint)
    • Line 152: warning: exported function RplInviteMsg should have comment or be unexported (golint)
    • Line 156: warning: exported function RplKick should have comment or be unexported (golint)
    • Line 161: warning: exported function RplKill should have comment or be unexported (golint)
    • Line 166: warning: exported function RplCap should have comment or be unexported (golint)
    • Line 175: warning: exported method Client.RplWelcome should have comment or be unexported (golint)
    • Line 184: warning: exported method Client.RplYourHost should have comment or be unexported (golint)
    • Line 193: warning: exported method Client.RplCreated should have comment or be unexported (golint)
    • Line 198: warning: exported method Client.RplMyInfo should have comment or be unexported (golint)
    • Line 209: warning: exported method Client.RplUModeIs should have comment or be unexported (golint)
    • Line 213: warning: exported method Client.RplNoTopic should have comment or be unexported (golint)
    • Line 218: warning: exported method Client.RplTopic should have comment or be unexported (golint)
    • Line 223: warning: comment on exported method Client.RplInvitingMsg should be of the form "RplInvitingMsg ..." (golint)
    • Line 230: warning: exported method Client.RplEndOfNames should have comment or be unexported (golint)
    • Line 235: warning: comment on exported method Client.RplYoureOper should be of the form "RplYoureOper ..." (golint)
    • Line 241: warning: comment on exported method Client.RplRehashing should be of the form "RplRehashing ..." (golint)
    • Line 250: warning: exported method Client.RplWhois should have comment or be unexported (golint)
    • Line 266: warning: exported method Client.RplWhoisUser should have comment or be unexported (golint)
    • Line 285: warning: exported method Client.RplWhoisOperator should have comment or be unexported (golint)
    • Line 290: warning: exported method Client.RplWhoisSecure should have comment or be unexported (golint)
    • Line 298: warning: exported method Client.RplWhoisIdle should have comment or be unexported (golint)
    • Line 304: warning: exported method Client.RplWhoisLoggedIn should have comment or be unexported (golint)
    • Line 317: warning: exported method Client.RplWhoisServer should have comment or be unexported (golint)
    • Line 327: warning: exported method Client.RplEndOfWhois should have comment or be unexported (golint)
    • Line 335: warning: exported method Client.RplChannelModeIs should have comment or be unexported (golint)
    • Line 340: warning: comment on exported method Client.RplWhoReply should be of the form "RplWhoReply ..." (golint)
    • Line 394: warning: comment on exported method Client.RplEndOfWho should be of the form "RplEndOfWho ..." (golint)
    • Line 400: warning: exported method Client.RplMaskList should have comment or be unexported (golint)
    • Line 413: warning: exported method Client.RplEndOfMaskList should have comment or be unexported (golint)
    • Line 426: warning: exported method Client.RplBanList should have comment or be unexported (golint)
    • Line 431: warning: exported method Client.RplEndOfBanList should have comment or be unexported (golint)
    • Line 436: warning: exported method Client.RplExceptList should have comment or be unexported (golint)
    • Line 441: warning: exported method Client.RplEndOfExceptList should have comment or be unexported (golint)
    • Line 446: warning: exported method Client.RplInviteList should have comment or be unexported (golint)
    • Line 451: warning: exported method Client.RplEndOfInviteList should have comment or be unexported (golint)
    • Line 456: warning: exported method Client.RplNowAway should have comment or be unexported (golint)
    • Line 461: warning: exported method Client.RplUnAway should have comment or be unexported (golint)
    • Line 466: warning: exported method Client.RplAway should have comment or be unexported (golint)
    • Line 471: warning: exported method Client.RplIsOn should have comment or be unexported (golint)
    • Line 476: warning: exported method Client.RplMOTDStart should have comment or be unexported (golint)
    • Line 481: warning: exported method Client.RplMOTD should have comment or be unexported (golint)
    • Line 486: warning: exported method Client.RplMOTDEnd should have comment or be unexported (golint)
    • Line 491: warning: exported method Client.RplList should have comment or be unexported (golint)
    • Line 501: warning: exported method Client.RplListEnd should have comment or be unexported (golint)
    • Line 506: warning: exported method Client.RplNamReply should have comment or be unexported (golint)
    • Line 511: warning: exported method Client.RplWhoisChannels should have comment or be unexported (golint)
    • Line 520: warning: exported method Client.RplVersion should have comment or be unexported (golint)
    • Line 529: warning: exported method Client.RplInviting should have comment or be unexported (golint)
    • Line 534: warning: exported method Client.RplTime should have comment or be unexported (golint)
    • Line 539: warning: exported method Client.RplLUserClient should have comment or be unexported (golint)
    • Line 552: warning: exported method Client.RplLUserUnknown should have comment or be unexported (golint)
    • Line 566: warning: exported method Client.RplLUserChannels should have comment or be unexported (golint)
    • Line 579: warning: exported method Client.RplLUserOp should have comment or be unexported (golint)
    • Line 600: warning: exported method Client.RplLUserMe should have comment or be unexported (golint)
    • Line 610: warning: exported method Client.RplWhoWasUser should have comment or be unexported (golint)
    • Line 629: warning: exported method Client.RplEndOfWhoWas should have comment or be unexported (golint)
    • Line 638: warning: exported method Client.ErrAlreadyRegistered should have comment or be unexported (golint)
    • Line 643: warning: exported method Client.ErrNickNameInUse should have comment or be unexported (golint)
    • Line 648: warning: exported method Client.ErrUnknownCommand should have comment or be unexported (golint)
    • Line 653: warning: exported method Client.ErrUsersDontMatch should have comment or be unexported (golint)
    • Line 658: warning: exported method Client.ErrNeedMoreParams should have comment or be unexported (golint)
    • Line 663: warning: exported method Client.ErrNoSuchChannel should have comment or be unexported (golint)
    • Line 668: warning: exported method Client.ErrUserOnChannel should have comment or be unexported (golint)
    • Line 673: warning: exported method Client.ErrNotOnChannel should have comment or be unexported (golint)
    • Line 678: warning: exported method Client.ErrInviteOnlyChannel should have comment or be unexported (golint)
    • Line 683: warning: exported method Client.ErrBadChannelKey should have comment or be unexported (golint)
    • Line 688: warning: exported method Client.ErrNoSuchNick should have comment or be unexported (golint)
    • Line 693: warning: exported method Client.ErrPasswdMismatch should have comment or be unexported (golint)
    • Line 697: warning: exported method Client.ErrNoChanModes should have comment or be unexported (golint)
    • Line 702: warning: exported method Client.ErrNoPrivileges should have comment or be unexported (golint)
    • Line 706: warning: exported method Client.ErrRestricted should have comment or be unexported (golint)
    • Line 710: warning: exported method Client.ErrNoSuchServer should have comment or be unexported (golint)
    • Line 714: warning: exported method Client.ErrUserNotInChannel should have comment or be unexported (golint)
    • Line 719: warning: exported method Client.ErrCannotSendToChan should have comment or be unexported (golint)
    • Line 724: warning: exported method Client.ErrCannotSendToUser should have comment or be unexported (golint)
    • Line 733: warning: comment on exported method Client.ErrChanOPrivIsNeeded should be of the form "ErrChanOPrivIsNeeded ..." (golint)
    • Line 739: warning: exported method Client.ErrNoMOTD should have comment or be unexported (golint)
    • Line 743: warning: exported method Client.ErrNoNicknameGiven should have comment or be unexported (golint)
    • Line 747: warning: exported method Client.ErrErroneusNickname should have comment or be unexported (golint)
    • Line 752: warning: exported method Client.ErrUnknownMode should have comment or be unexported (golint)
    • Line 757: warning: exported method Client.ErrConfiguredMode should have comment or be unexported (golint)
    • Line 762: warning: exported method Client.ErrChannelIsFull should have comment or be unexported (golint)
    • Line 767: warning: exported method Client.ErrWasNoSuchNick should have comment or be unexported (golint)
    • Line 772: warning: exported method Client.ErrInvalidCapCmd should have comment or be unexported (golint)
    • Line 777: warning: exported method Client.ErrBannedFromChan should have comment or be unexported (golint)
    • Line 782: warning: exported method Client.ErrInviteOnlyChan should have comment or be unexported (golint)
    • Line 791: warning: exported function RplAuthenticate should have comment or be unexported (golint)
    • Line 795: warning: exported method Client.RplLoggedIn should have comment or be unexported (golint)
    • Line 803: warning: exported method Client.RplLoggedOut should have comment or be unexported (golint)
    • Line 811: warning: exported method Client.ErrNickLocked should have comment or be unexported (golint)
    • Line 819: warning: exported method Client.RplSaslSuccess should have comment or be unexported (golint)
    • Line 827: warning: exported method Client.ErrSaslFail should have comment or be unexported (golint)
    • Line 835: warning: exported method Client.ErrSaslTooLong should have comment or be unexported (golint)
    • Line 843: warning: exported method Client.ErrSaslAborted should have comment or be unexported (golint)
    • Line 851: warning: exported method Client.ErrSaslAlready should have comment or be unexported (golint)
    • Line 859: warning: exported method Client.RplSaslMechs should have comment or be unexported (golint)
    • eris/irc/server.go
    • Line 28: warning: exported type ServerCommand should have comment or be unexported (golint)
    • Line 33: warning: exported type RegServerCommand should have comment or be unexported (golint)
    • Line 38: warning: exported type Server should have comment or be unexported (golint)
    • Line 62: warning: exported var SERVER_SIGNALS should have comment or be unexported (golint)
    • Line 68: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 248: warning: exported method Server.Wallops should have comment or be unexported (golint)
    • Line 259: warning: exported method Server.Wallopsf should have comment or be unexported (golint)
    • Line 263: warning: exported method Server.Global should have comment or be unexported (golint)
    • Line 272: warning: exported method Server.Globalf should have comment or be unexported (golint)
    • Line 276: warning: exported method Server.Shutdown should have comment or be unexported (golint)
    • Line 280: warning: exported method Server.Stop should have comment or be unexported (golint)
    • Line 284: warning: exported method Server.Run should have comment or be unexported (golint)
    • Line 306: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 330: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 341: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 355: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 370: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 416: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 425: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 482: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 495: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 514: warning: exported method Server.MOTD should have comment or be unexported (golint)
    • Line 541: warning: exported method Server.Rehash should have comment or be unexported (golint)
    • Line 541: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 556: warning: exported method Server.Id should have comment or be unexported (golint)
    • Line 556: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 560: warning: exported method Server.Network should have comment or be unexported (golint)
    • Line 560: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 564: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 568: warning: exported method Server.Nick should have comment or be unexported (golint)
    • Line 568: warning: receiver name s should be consistent with previous receiver name server for Server (golint)
    • Line 572: warning: exported method Server.Reply should have comment or be unexported (golint)
    • Line 576: warning: exported method Server.Replyf should have comment or be unexported (golint)
    • Line 584: warning: exported method PassCommand.HandleRegServer should have comment or be unexported (golint)
    • Line 595: warning: exported method RFC1459UserCommand.HandleRegServer should have comment or be unexported (golint)
    • Line 605: warning: exported method RFC2812UserCommand.HandleRegServer should have comment or be unexported (golint)
    • Line 622: warning: exported method AuthenticateCommand.HandleRegServer should have comment or be unexported (golint)
    • Line 723: warning: exported method QuitCommand.HandleRegServer should have comment or be unexported (golint)
    • Line 731: warning: exported method PassCommand.HandleServer should have comment or be unexported (golint)
    • Line 731: warning: receiver name m should be consistent with previous receiver name msg for PassCommand (golint)
    • Line 735: warning: exported method PingCommand.HandleServer should have comment or be unexported (golint)
    • Line 740: warning: exported method PongCommand.HandleServer should have comment or be unexported (golint)
    • Line 745: warning: exported method UserCommand.HandleServer should have comment or be unexported (golint)
    • Line 745: warning: receiver name m should be consistent with previous receiver name msg for UserCommand (golint)
    • Line 749: warning: exported method QuitCommand.HandleServer should have comment or be unexported (golint)
    • Line 753: warning: exported method JoinCommand.HandleServer should have comment or be unexported (golint)
    • Line 778: warning: exported method PartCommand.HandleServer should have comment or be unexported (golint)
    • Line 792: warning: exported method TopicCommand.HandleServer should have comment or be unexported (golint)
    • Line 807: warning: exported method PrivMsgCommand.HandleServer should have comment or be unexported (golint)
    • Line 836: warning: exported method Client.WhoisChannelsNames should have comment or be unexported (golint)
    • Line 860: warning: exported method WhoisCommand.HandleServer should have comment or be unexported (golint)
    • Line 887: warning: exported method WhoCommand.HandleServer should have comment or be unexported (golint)
    • Line 914: warning: exported method OperCommand.HandleServer should have comment or be unexported (golint)
    • Line 936: warning: exported method RehashCommand.HandleServer should have comment or be unexported (golint)
    • Line 960: warning: exported method AwayCommand.HandleServer should have comment or be unexported (golint)
    • Line 970: warning: exported method IsOnCommand.HandleServer should have comment or be unexported (golint)
    • Line 983: warning: exported method MOTDCommand.HandleServer should have comment or be unexported (golint)
    • Line 987: warning: exported method NoticeCommand.HandleServer should have comment or be unexported (golint)
    • Line 1020: warning: exported method KickCommand.HandleServer should have comment or be unexported (golint)
    • Line 1039: warning: exported method ListCommand.HandleServer should have comment or be unexported (golint)
    • Line 1069: warning: exported method NamesCommand.HandleServer should have comment or be unexported (golint)
    • Line 1089: warning: exported method VersionCommand.HandleServer should have comment or be unexported (golint)
    • Line 1099: warning: exported method InviteCommand.HandleServer should have comment or be unexported (golint)
    • Line 1118: warning: exported method TimeCommand.HandleServer should have comment or be unexported (golint)
    • Line 1127: warning: exported method LUsersCommand.HandleServer should have comment or be unexported (golint)
    • Line 1137: warning: exported method WallopsCommand.HandleServer should have comment or be unexported (golint)
    • Line 1147: warning: exported method KillCommand.HandleServer should have comment or be unexported (golint)
    • Line 1164: warning: exported method WhoWasCommand.HandleServer should have comment or be unexported (golint)
    • eris/irc/strings.go
    • Line 11: warning: comment on exported var ChannelNameExpr should be of the form "ChannelNameExpr ..." (golint)
    • Line 13: warning: exported var NicknameExpr should have comment or be unexported (golint)
    • Line 16: warning: comment on exported type Name should be of the form "Name ..." (with optional leading article) (golint)
    • Line 20: warning: exported function NewName should have comment or be unexported (golint)
    • Line 24: warning: exported function NewNames should have comment or be unexported (golint)
    • Line 34: warning: exported method Name.IsChannel should have comment or be unexported (golint)
    • Line 38: warning: exported method Name.IsNickname should have comment or be unexported (golint)
    • Line 70: warning: exported method Name.ToLower should have comment or be unexported (golint)
    • Line 74: warning: comment on exported method Name.Text should be of the form "Text ..." (golint)
    • Line 83: warning: exported function NewText should have comment or be unexported (golint)
    • Line 96: warning: exported function NewCTCPText should have comment or be unexported (golint)
    • eris/irc/types.go
    • Line 13: warning: exported type Counter should have comment or be unexported (golint)
    • Line 18: warning: exported method Counter.Inc should have comment or be unexported (golint)
    • Line 24: warning: exported method Counter.Dec should have comment or be unexported (golint)
    • Line 30: warning: exported method Counter.Value should have comment or be unexported (golint)
    • Line 219: warning: exported type ClientSet should have comment or be unexported (golint)
    • Line 224: warning: exported function NewClientSet should have comment or be unexported (golint)
    • Line 228: warning: exported method ClientSet.Add should have comment or be unexported (golint)
    • Line 234: warning: exported method ClientSet.Remove should have comment or be unexported (golint)
    • Line 240: warning: exported method ClientSet.Count should have comment or be unexported (golint)
    • Line 246: warning: exported method ClientSet.Has should have comment or be unexported (golint)
    • Line 253: warning: exported method ClientSet.Range should have comment or be unexported (golint)
    • Line 263: warning: exported type MemberSet should have comment or be unexported (golint)
    • Line 268: warning: exported function NewMemberSet should have comment or be unexported (golint)
    • Line 272: warning: exported method MemberSet.Count should have comment or be unexported (golint)
    • Line 278: warning: exported method MemberSet.Range should have comment or be unexported (golint)
    • Line 288: warning: exported method MemberSet.Add should have comment or be unexported (golint)
    • Line 294: warning: exported method MemberSet.Remove should have comment or be unexported (golint)
    • Line 300: warning: exported method MemberSet.Has should have comment or be unexported (golint)
    • Line 307: warning: exported method MemberSet.Get should have comment or be unexported (golint)
    • Line 313: warning: exported method MemberSet.HasMode should have comment or be unexported (golint)
    • Line 323: warning: exported type ChannelSet should have comment or be unexported (golint)
    • Line 328: warning: exported function NewChannelSet should have comment or be unexported (golint)
    • Line 332: warning: exported method ChannelSet.Count should have comment or be unexported (golint)
    • Line 338: warning: exported method ChannelSet.Add should have comment or be unexported (golint)
    • Line 344: warning: exported method ChannelSet.Remove should have comment or be unexported (golint)
    • Line 350: warning: exported method ChannelSet.Range should have comment or be unexported (golint)
    • Line 360: warning: exported type Identity should have comment or be unexported (golint)
    • Line 366: warning: exported function NewIdentity should have comment or be unexported (golint)
    • Line 381: warning: exported method Identity.Id should have comment or be unexported (golint)
    • Line 385: warning: exported method Identity.Nick should have comment or be unexported (golint)
    • Line 397: warning: exported type Identifiable should have comment or be unexported (golint)
    • eris/irc/capability.go
    • Line 7: warning: exported type CapSubCommand should have comment or be unexported (golint)
    • Line 10: warning: exported const CAP_LS should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: comment on exported type Capability should be of the form "Capability ..." (with optional leading article) (golint)
    • Line 23: warning: exported const MultiPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported var SupportedCapabilities should have comment or be unexported (golint)
    • Line 38: warning: comment on exported type CapModifier should be of the form "CapModifier ..." (with optional leading article) (golint)
    • Line 43: warning: exported const Ack should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: exported type CapState should have comment or be unexported (golint)
    • Line 55: warning: exported const CapNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: exported type CapabilitySet should have comment or be unexported (golint)
    • Line 72: warning: exported method CapabilitySet.DisableString should have comment or be unexported (golint)
    • Line 82: warning: exported method CapCommand.HandleRegServer should have comment or be unexported (golint)
    • eris/irc/channel.go
    • Line 7: warning: exported type Channel should have comment or be unexported (golint)
    • Line 44: warning: exported method Channel.IsEmpty should have comment or be unexported (golint)
    • Line 48: warning: exported method Channel.Names should have comment or be unexported (golint)
    • Line 53: warning: exported method Channel.ClientIsOperator should have comment or be unexported (golint)
    • Line 57: warning: exported method Channel.Nicks should have comment or be unexported (golint)
    • Line 85: warning: exported method Channel.Id should have comment or be unexported (golint)
    • Line 89: warning: exported method Channel.Nick should have comment or be unexported (golint)
    • Line 97: warning: comment on exported method Channel.ModeString should be of the form "ModeString ..." (golint)
    • Line 131: warning: exported method Channel.IsFull should have comment or be unexported (golint)
    • Line 136: warning: exported method Channel.CheckKey should have comment or be unexported (golint)
    • Line 140: warning: exported method Channel.Join should have comment or be unexported (golint)
    • Line 188: warning: exported method Channel.Part should have comment or be unexported (golint)
    • Line 202: warning: exported method Channel.GetTopic should have comment or be unexported (golint)
    • Line 216: warning: exported method Channel.SetTopic should have comment or be unexported (golint)
    • Line 236: warning: exported method Channel.CanSpeak should have comment or be unexported (golint)
    • Line 253: warning: exported method Channel.PrivMsg should have comment or be unexported (golint)
    • Line 335: warning: exported method Channel.ShowMaskList should have comment or be unexported (golint)
    • Line 428: warning: exported method Channel.Mode should have comment or be unexported (golint)
    • Line 450: warning: exported method Channel.Notice should have comment or be unexported (golint)
    • Line 466: warning: exported method Channel.Quit should have comment or be unexported (golint)
    • Line 477: warning: exported method Channel.Kick should have comment or be unexported (golint)
    • Line 499: warning: exported method Channel.Invite should have comment or be unexported (golint)
    • eris/irc/client.go
    • Line 14: warning: exported const IDLE_TIMEOUT should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type SyncBool should have comment or be unexported (golint)
    • Line 24: warning: exported function NewSyncBool should have comment or be unexported (golint)
    • Line 28: warning: exported method SyncBool.Get should have comment or be unexported (golint)
    • Line 35: warning: exported method SyncBool.Set should have comment or be unexported (golint)
    • Line 42: warning: exported type Client should have comment or be unexported (golint)
    • Line 68: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 211: warning: exported method Client.Active should have comment or be unexported (golint)
    • Line 215: warning: exported method Client.Touch should have comment or be unexported (golint)
    • Line 227: warning: exported method Client.Idle should have comment or be unexported (golint)
    • Line 238: warning: exported method Client.Register should have comment or be unexported (golint)
    • Line 282: warning: exported method Client.IdleTime should have comment or be unexported (golint)
    • Line 286: warning: exported method Client.SignonTime should have comment or be unexported (golint)
    • Line 290: warning: exported method Client.IdleSeconds should have comment or be unexported (golint)
    • Line 294: warning: exported method Client.HasNick should have comment or be unexported (golint)
    • Line 298: warning: exported method Client.HasUsername should have comment or be unexported (golint)
    • Line 302: warning: exported method Client.CanSpeak should have comment or be unexported (golint)
    • Line 310: warning: comment on exported method Client.ModeString should be of the form "ModeString ..." (golint)
    • Line 315: warning: exported method Client.UserHost should have comment or be unexported (golint)
    • Line 326: warning: exported method Client.Server should have comment or be unexported (golint)
    • Line 330: warning: exported method Client.ServerInfo should have comment or be unexported (golint)
    • Line 334: warning: exported method Client.Nick should have comment or be unexported (golint)
    • Line 341: warning: exported method Client.Id should have comment or be unexported (golint)
    • Line 349: warning: exported method Client.Friends should have comment or be unexported (golint)
    • Line 362: warning: exported method Client.SetNickname should have comment or be unexported (golint)
    • Line 371: warning: exported method Client.ChangeNickname should have comment or be unexported (golint)
    • Line 384: warning: exported method Client.Reply should have comment or be unexported (golint)
    • Line 390: warning: exported method Client.Quit should have comment or be unexported (golint)
    • eris/irc/sasl.go
    • Line 8: warning: exported type SaslState should have comment or be unexported (golint)
    • Line 19: warning: exported function NewSaslState should have comment or be unexported (golint)
    • Line 23: warning: exported method SaslState.Reset should have comment or be unexported (golint)
    • Line 33: warning: exported method SaslState.Started should have comment or be unexported (golint)
    • Line 40: warning: exported method SaslState.Start should have comment or be unexported (golint)
    • Line 47: warning: exported method SaslState.WriteString should have comment or be unexported (golint)
    • Line 54: warning: exported method SaslState.Len should have comment or be unexported (golint)
    • Line 68: warning: exported method SaslState.Login should have comment or be unexported (golint)
    • Line 79: warning: exported method SaslState.Id should have comment or be unexported (golint)
    • eris/irc/config.go
    • Line 13: warning: exported type PassConfig should have comment or be unexported (golint)
    • Line 17: warning: exported type TLSConfig should have comment or be unexported (golint)
    • Line 22: warning: exported type I2PConfig should have comment or be unexported (golint)
    • Line 28: warning: exported type TorConfig should have comment or be unexported (golint)
    • Line 34: warning: exported method PassConfig.PasswordBytes should have comment or be unexported (golint)
    • Line 42: warning: exported type Config should have comment or be unexported (golint)
    • Line 73: warning: exported method Config.Operators should have comment or be unexported (golint)
    • Line 81: warning: exported method Config.Accounts should have comment or be unexported (golint)
    • Line 89: warning: exported method Config.Name should have comment or be unexported (golint)
    • Line 93: warning: exported method Config.Reload should have comment or be unexported (golint)
    • Line 110: warning: exported function LoadConfig should have comment or be unexported (golint)
    • Line 142: warning: exported method Config.WWWAddrs should have comment or be unexported (golint)
    • Line 142: warning: receiver name config should be consistent with previous receiver name conf for Config (golint)
    • Line 149: warning: exported method Config.TLSWWWAddrs should have comment or be unexported (golint)
    • Line 149: warning: receiver name config should be consistent with previous receiver name conf for Config (golint)
    • Line 156: warning: exported method Config.I2PWWWAddrs should have comment or be unexported (golint)
    • Line 156: warning: receiver name config should be consistent with previous receiver name conf for Config (golint)
    • Line 163: warning: exported method Config.TorWWWAddrs should have comment or be unexported (golint)
    • Line 163: warning: receiver name config should be consistent with previous receiver name conf for Config (golint)
    • Line 171: warning: exported method Config.IRCAddrs should have comment or be unexported (golint)
    • Line 171: warning: receiver name config should be consistent with previous receiver name conf for Config (golint)
    • Line 178: warning: exported method Config.TLSIRCAddrs should have comment or be unexported (golint)
    • Line 178: warning: receiver name config should be consistent with previous receiver name conf for Config (golint)
    • Line 185: warning: exported method Config.I2PIRCAddrs should have comment or be unexported (golint)
    • Line 185: warning: receiver name config should be consistent with previous receiver name conf for Config (golint)
    • Line 192: warning: exported method Config.TorIRCAddrs should have comment or be unexported (golint)
    • Line 192: warning: receiver name config should be consistent with previous receiver name conf for Config (golint)
    • eris/irc/modes.go
    • Line 7: warning: comment on exported type UserMode should be of the form "UserMode ..." (with optional leading article) (golint)
    • Line 14: warning: exported type UserModes should have comment or be unexported (golint)
    • Line 24: warning: comment on exported type ChannelMode should be of the form "ChannelMode ..." (with optional leading article) (golint)
    • Line 31: warning: exported type ChannelModes should have comment or be unexported (golint)
    • Line 41: warning: exported type ModeOp should have comment or be unexported (golint)
    • Line 48: warning: exported const Add should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported const Away should have comment (or a comment on this block) or be unexported (golint)
    • Line 65: warning: exported var SupportedUserModes should have comment or be unexported (golint)
    • Line 74: warning: exported const BanMask should have comment (or a comment on this block) or be unexported (golint)
    • Line 92: warning: exported var SupportedChannelModes should have comment or be unexported (golint)
    • Line 102: warning: exported method ModeCommand.HandleServer should have comment or be unexported (golint)
    • Line 153: warning: exported method ChannelModeCommand.HandleServer should have comment or be unexported (golint)

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.


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell85%

Misspell Finds commonly misspelled English words

    • eris/irc/metrics.go
    • Line 85: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 96: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 98: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 100: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 105: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 117: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 119: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 121: warning: "guage" is a misspelling of "gauge" (misspell)