Preparing report...

Report for github.com/khlieng/dispatch

A+    Excellent!    Found 41 issues across 65 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!


golint43%

Golint is a linter for Go source code.

    • dispatch/storage/bleve/bleve.go
    • Line 15: warning: exported function New should have comment or be unexported (golint)
    • Line 47: warning: exported method Bleve.Index should have comment or be unexported (golint)
    • Line 51: warning: exported method Bleve.SearchMessages should have comment or be unexported (golint)
    • Line 77: warning: exported method Bleve.Close should have comment or be unexported (golint)
    • dispatch/pkg/session/session.go
    • Line 14: warning: exported var CookieName should have comment or be unexported (golint)
    • Line 20: warning: exported type Session should have comment or be unexported (golint)
    • Line 28: warning: exported function New should have comment or be unexported (golint)
    • Line 41: warning: exported method Session.Key should have comment or be unexported (golint)
    • Line 48: warning: exported method Session.SetCookie should have comment or be unexported (golint)
    • Line 60: warning: exported method Session.Expired should have comment or be unexported (golint)
    • Line 67: warning: exported method Session.Refresh should have comment or be unexported (golint)
    • dispatch/storage/storage.schema.gen.go
    • Line 15: warning: exported method User.Size should have comment or be unexported (golint)
    • Line 59: warning: exported method User.Marshal should have comment or be unexported (golint)
    • Line 132: warning: exported method User.Unmarshal should have comment or be unexported (golint)
    • Line 206: warning: exported method ClientSettings.Size should have comment or be unexported (golint)
    • Line 211: warning: exported method ClientSettings.Marshal should have comment or be unexported (golint)
    • Line 232: warning: exported method ClientSettings.Unmarshal should have comment or be unexported (golint)
    • Line 241: warning: exported method Network.Size should have comment or be unexported (golint)
    • Line 381: warning: exported method Network.Marshal should have comment or be unexported (golint)
    • Line 573: warning: exported method Network.Unmarshal should have comment or be unexported (golint)
    • Line 762: warning: exported method Channel.Size should have comment or be unexported (golint)
    • Line 796: warning: exported method Channel.Marshal should have comment or be unexported (golint)
    • Line 848: warning: exported method Channel.Unmarshal should have comment or be unexported (golint)
    • Line 894: warning: exported method Message.Size should have comment or be unexported (golint)
    • Line 967: warning: exported method Message.Marshal should have comment or be unexported (golint)
    • Line 1071: warning: exported method Message.Unmarshal should have comment or be unexported (golint)
    • Line 1176: warning: exported method Event.Size should have comment or be unexported (golint)
    • Line 1231: warning: exported method Event.Marshal should have comment or be unexported (golint)
    • Line 1309: warning: exported method Event.Unmarshal should have comment or be unexported (golint)
    • dispatch/pkg/irc/conn.go
    • Line 15: warning: exported var DefaultDialer should have comment or be unexported (golint)
    • Line 20: warning: exported type Dialer should have comment or be unexported (golint)
    • Line 24: warning: exported method Client.Connect should have comment or be unexported (golint)
    • Line 28: warning: exported method Client.Reconnect should have comment or be unexported (golint)
    • Line 36: warning: exported method Client.Writef should have comment or be unexported (golint)
    • Line 80: warning: exported type ConnectionState should have comment or be unexported (golint)
    • dispatch/pkg/irc/ctcp.go
    • Line 12: warning: exported type CTCP should have comment or be unexported (golint)
    • Line 17: warning: exported function DecodeCTCP should have comment or be unexported (golint)
    • Line 38: warning: exported function EncodeCTCP should have comment or be unexported (golint)
    • dispatch/pkg/irc/state.go
    • Line 24: warning: exported type User should have comment or be unexported (golint)
    • Line 30: warning: exported function NewUser should have comment or be unexported (golint)
    • Line 47: warning: exported method User.AddModes should have comment or be unexported (golint)
    • Line 57: warning: exported method User.RemoveModes should have comment or be unexported (golint)
    • dispatch/server/server.go
    • Line 22: warning: exported type Dispatch should have comment or be unexported (golint)
    • Line 33: warning: exported function New should have comment or be unexported (golint)
    • Line 39: warning: exported method Dispatch.Config should have comment or be unexported (golint)
    • Line 46: warning: exported method Dispatch.SetConfig should have comment or be unexported (golint)
    • Line 52: warning: exported method Dispatch.Run should have comment or be unexported (golint)
    • dispatch/config/config.go
    • Line 11: warning: exported type Config should have comment or be unexported (golint)
    • Line 28: warning: exported type Defaults should have comment or be unexported (golint)
    • Line 39: warning: exported type HTTPS should have comment or be unexported (golint)
    • Line 47: warning: exported type HSTS should have comment or be unexported (golint)
    • Line 54: warning: exported type LetsEncrypt should have comment or be unexported (golint)
    • Line 59: warning: exported type Auth should have comment or be unexported (golint)
    • Line 66: warning: exported type Provider should have comment or be unexported (golint)
    • Line 71: warning: exported type DCC should have comment or be unexported (golint)
    • Line 76: warning: exported type Autoget should have comment or be unexported (golint)
    • Line 82: warning: exported type Proxy should have comment or be unexported (golint)
    • Line 91: warning: exported function LoadConfig should have comment or be unexported (golint)
    • dispatch/pkg/ident/server.go
    • Line 37: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 43: warning: exported method Server.Listen should have comment or be unexported (golint)
    • Line 67: warning: exported method Server.Stop should have comment or be unexported (golint)
    • Line 71: warning: exported method Server.Add should have comment or be unexported (golint)
    • Line 94: warning: exported method Server.Remove should have comment or be unexported (golint)
    • dispatch/pkg/linkmeta/linkmeta.go
    • Line 15: warning: exported var Client should have comment or be unexported (golint)
    • Line 22: warning: exported type Meta should have comment or be unexported (golint)
    • Line 32: warning: exported function Fetch should have comment or be unexported (golint)
    • Line 47: warning: exported function ExtractMeta should have comment or be unexported (golint)
    • dispatch/pkg/cookie/cookie.go
    • Line 5: warning: exported const HostPrefix should have comment or be unexported (golint)
    • Line 7: warning: exported function Harden should have comment or be unexported (golint)
    • Line 26: warning: exported function Set should have comment or be unexported (golint)
    • Line 30: warning: exported function Name should have comment or be unexported (golint)
    • dispatch/storage/boltdb/boltdb.go
    • Line 28: warning: exported function New should have comment or be unexported (golint)
    • Line 49: warning: exported method BoltStore.Close should have comment or be unexported (golint)
    • Line 53: warning: exported method BoltStore.Users should have comment or be unexported (golint)
    • Line 75: warning: exported method BoltStore.SaveUser should have comment or be unexported (golint)
    • Line 94: warning: exported method BoltStore.DeleteUser should have comment or be unexported (golint)
    • Line 109: warning: exported method BoltStore.Network should have comment or be unexported (golint)
    • Line 119: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 129: warning: exported method BoltStore.Networks should have comment or be unexported (golint)
    • Line 147: warning: exported method BoltStore.SaveNetwork should have comment or be unexported (golint)
    • Line 156: warning: exported method BoltStore.RemoveNetwork should have comment or be unexported (golint)
    • Line 171: warning: exported method BoltStore.SetNick should have comment or be unexported (golint)
    • Line 190: warning: exported method BoltStore.SetNetworkName should have comment or be unexported (golint)
    • Line 209: warning: exported method BoltStore.Channels should have comment or be unexported (golint)
    • Line 227: warning: exported method BoltStore.SaveChannel should have comment or be unexported (golint)
    • Line 236: warning: exported method BoltStore.RemoveChannel should have comment or be unexported (golint)
    • Line 245: warning: exported method BoltStore.HasChannel should have comment or be unexported (golint)
    • Line 256: warning: exported method BoltStore.OpenDMs should have comment or be unexported (golint)
    • Line 276: warning: exported method BoltStore.AddOpenDM should have comment or be unexported (golint)
    • Line 284: warning: exported method BoltStore.RemoveOpenDM should have comment or be unexported (golint)
    • Line 306: warning: exported method BoltStore.LogMessage should have comment or be unexported (golint)
    • Line 312: warning: exported method BoltStore.LogMessages should have comment or be unexported (golint)
    • Line 325: warning: exported method BoltStore.Messages should have comment or be unexported (golint)
    • Line 367: warning: exported method BoltStore.MessagesByID should have comment or be unexported (golint)
    • Line 381: warning: exported method BoltStore.Sessions should have comment or be unexported (golint)
    • Line 402: warning: exported method BoltStore.SaveSession should have comment or be unexported (golint)
    • Line 415: warning: exported method BoltStore.DeleteSession should have comment or be unexported (golint)
    • dispatch/pkg/irc/case.go
    • Line 16: warning: exported method Client.Casefold should have comment or be unexported (golint)
    • Line 24: warning: exported method Client.EqualFold should have comment or be unexported (golint)
    • Line 32: warning: exported function Casefold should have comment or be unexported (golint)
    • Line 45: warning: exported function EqualFold should have comment or be unexported (golint)
    • dispatch/pkg/cryptoutil/tls.go
    • Line 8: warning: exported function DescribeTLS should have comment or be unexported (golint)
    • Line 16: warning: exported function TLSVersionName should have comment or be unexported (golint)
    • dispatch/storage/user.go
    • Line 13: warning: exported type User should have comment or be unexported (golint)
    • Line 28: warning: exported function NewUser should have comment or be unexported (golint)
    • Line 61: warning: exported function LoadUsers should have comment or be unexported (golint)
    • Line 100: warning: exported method User.Remove should have comment or be unexported (golint)
    • Line 111: warning: exported method User.GetLastIP should have comment or be unexported (golint)
    • Line 118: warning: exported method User.SetLastIP should have comment or be unexported (golint)
    • Line 126: warning: comment on exported type ClientSettings should be of the form "ClientSettings ..." (with optional leading article) (golint)
    • Line 131: warning: exported function DefaultClientSettings should have comment or be unexported (golint)
    • Line 137: warning: exported method User.ClientSettings should have comment or be unexported (golint)
    • Line 144: warning: exported method User.SetClientSettings should have comment or be unexported (golint)
    • Line 152: warning: exported method User.UnmarshalClientSettingsJSON should have comment or be unexported (golint)
    • Line 164: warning: exported method User.NewNetwork should have comment or be unexported (golint)
    • Line 177: warning: exported method User.Network should have comment or be unexported (golint)
    • Line 181: warning: exported method User.Networks should have comment or be unexported (golint)
    • Line 185: warning: exported method User.SaveNetwork should have comment or be unexported (golint)
    • Line 189: warning: exported method User.RemoveNetwork should have comment or be unexported (golint)
    • Line 193: warning: exported method User.SetNick should have comment or be unexported (golint)
    • Line 202: warning: exported method User.SetNetworkName should have comment or be unexported (golint)
    • Line 211: warning: exported method User.Channels should have comment or be unexported (golint)
    • Line 215: warning: exported method User.SaveChannel should have comment or be unexported (golint)
    • Line 219: warning: exported method User.RemoveChannel should have comment or be unexported (golint)
    • Line 223: warning: exported method User.HasChannel should have comment or be unexported (golint)
    • Line 227: warning: exported type Tab should have comment or be unexported (golint)
    • Line 232: warning: exported method User.OpenDMs should have comment or be unexported (golint)
    • Line 236: warning: exported method User.AddOpenDM should have comment or be unexported (golint)
    • Line 240: warning: exported method User.RemoveOpenDM should have comment or be unexported (golint)
    • Line 244: warning: exported type Message should have comment or be unexported (golint)
    • Line 254: warning: exported method Message.Type should have comment or be unexported (golint)
    • Line 258: warning: exported method User.LogMessage should have comment or be unexported (golint)
    • Line 280: warning: exported type Event should have comment or be unexported (golint)
    • Line 286: warning: exported method User.LogEvent should have comment or be unexported (golint)
    • Line 369: warning: exported method User.Messages should have comment or be unexported (golint)
    • Line 373: warning: exported method User.LastMessages should have comment or be unexported (golint)
    • Line 377: warning: exported method User.SearchMessages should have comment or be unexported (golint)
    • dispatch/pkg/irc/cap.go
    • Line 9: warning: exported method Client.GetCapability should have comment or be unexported (golint)
    • Line 16: warning: exported method Client.HasCapability should have comment or be unexported (golint)
    • dispatch/pkg/irc/message.go
    • Line 7: warning: exported type Message should have comment or be unexported (golint)
    • Line 18: warning: exported method Message.LastParam should have comment or be unexported (golint)
    • Line 25: warning: exported method Message.IsFromServer should have comment or be unexported (golint)
    • Line 29: warning: exported method Message.ToCTCP should have comment or be unexported (golint)
    • Line 33: warning: exported function ParseMessage should have comment or be unexported (golint)
    • dispatch/pkg/irc/sasl.go
    • Line 16: warning: exported var DefaultSASLMechanisms should have comment or be unexported (golint)
    • Line 24: warning: exported type SASL should have comment or be unexported (golint)
    • Line 29: warning: exported type SASLPlain should have comment or be unexported (golint)
    • Line 34: warning: exported method SASLPlain.Name should have comment or be unexported (golint)
    • Line 38: warning: exported method SASLPlain.Step should have comment or be unexported (golint)
    • Line 49: warning: exported type SASLExternal should have comment or be unexported (golint)
    • Line 51: warning: exported method SASLExternal.Name should have comment or be unexported (golint)
    • Line 55: warning: exported method SASLExternal.Step should have comment or be unexported (golint)
    • Line 66: warning: exported var ErrUnsupportedHash should have comment or be unexported (golint)
    • Line 69: warning: exported type SASLScram should have comment or be unexported (golint)
    • Line 76: warning: exported method SASLScram.Name should have comment or be unexported (golint)
    • Line 80: warning: exported method SASLScram.Step should have comment or be unexported (golint)
    • Line 110: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • dispatch/server/json.go
    • Line 12: warning: exported type WSRequest should have comment or be unexported (golint)
    • Line 17: warning: exported type WSResponse should have comment or be unexported (golint)
    • Line 22: warning: exported type Features should have comment or be unexported (golint)
    • Line 27: warning: exported type NetworkName should have comment or be unexported (golint)
    • Line 32: warning: exported type ReconnectSettings should have comment or be unexported (golint)
    • Line 37: warning: exported type ConnectionUpdate should have comment or be unexported (golint)
    • Line 58: warning: exported type Nick should have comment or be unexported (golint)
    • Line 64: warning: exported type NickFail should have comment or be unexported (golint)
    • Line 68: warning: exported type Join should have comment or be unexported (golint)
    • Line 74: warning: exported type Part should have comment or be unexported (golint)
    • Line 82: warning: exported type Mode should have comment or be unexported (golint)
    • Line 86: warning: exported type Quit should have comment or be unexported (golint)
    • Line 92: warning: exported type Message should have comment or be unexported (golint)
    • Line 101: warning: exported type Messages should have comment or be unexported (golint)
    • Line 109: warning: exported type Topic should have comment or be unexported (golint)
    • Line 116: warning: exported type Userlist should have comment or be unexported (golint)
    • Line 122: warning: exported type MOTD should have comment or be unexported (golint)
    • Line 128: warning: exported type Invite should have comment or be unexported (golint)
    • Line 134: warning: exported type Kick should have comment or be unexported (golint)
    • Line 142: warning: exported type Whois should have comment or be unexported (golint)
    • Line 147: warning: exported type WhoisReply should have comment or be unexported (golint)
    • Line 156: warning: exported type Away should have comment or be unexported (golint)
    • Line 161: warning: exported type Raw should have comment or be unexported (golint)
    • Line 166: warning: exported type SearchRequest should have comment or be unexported (golint)
    • Line 172: warning: exported type SearchResult should have comment or be unexported (golint)
    • Line 178: warning: exported type ClientCert should have comment or be unexported (golint)
    • Line 183: warning: exported type FetchMessages should have comment or be unexported (golint)
    • Line 189: warning: exported type Error should have comment or be unexported (golint)
    • Line 194: warning: exported type IRCError should have comment or be unexported (golint)
    • Line 200: warning: exported type ChannelSearch should have comment or be unexported (golint)
    • Line 206: warning: exported type ChannelSearchResult should have comment or be unexported (golint)
    • Line 211: warning: exported type ChannelForward should have comment or be unexported (golint)
    • Line 217: warning: exported type DCCSend should have comment or be unexported (golint)
    • Line 225: warning: exported type Tab should have comment or be unexported (golint)
    • dispatch/pkg/session/session.schema.gen.go
    • Line 15: warning: exported method Session.Size should have comment or be unexported (golint)
    • Line 35: warning: exported method Session.Marshal should have comment or be unexported (golint)
    • Line 78: warning: exported method Session.Unmarshal should have comment or be unexported (golint)
    • dispatch/storage/storage.go
    • Line 11: warning: exported var Path should have comment or be unexported (golint)
    • Line 17: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 30: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 33: warning: exported type Store should have comment or be unexported (golint)
    • Line 53: warning: exported type SessionStore should have comment or be unexported (golint)
    • Line 59: warning: exported type MessageStore should have comment or be unexported (golint)
    • Line 67: warning: exported type MessageStoreCreator should have comment or be unexported (golint)
    • Line 69: warning: exported type MessageSearchProvider should have comment or be unexported (golint)
    • Line 75: warning: exported type MessageSearchProviderCreator should have comment or be unexported (golint)
    • dispatch/pkg/irc/dcc.go
    • Line 15: warning: exported type DCCSend should have comment or be unexported (golint)
    • Line 24: warning: exported method Client.ParseDCCSend should have comment or be unexported (golint)
    • Line 55: warning: exported method DCCSend.Download should have comment or be unexported (golint)
    • Line 139: warning: exported method DCCSend.Size should have comment or be unexported (golint)
    • Line 143: warning: exported type DownloadProgress should have comment or be unexported (golint)
    • dispatch/storage/network.go
    • Line 11: warning: exported type Network should have comment or be unexported (golint)
    • Line 33: warning: exported method Network.Save should have comment or be unexported (golint)
    • Line 37: warning: exported method Network.Copy should have comment or be unexported (golint)
    • Line 63: warning: exported method Network.Client should have comment or be unexported (golint)
    • Line 67: warning: exported method Network.IRCConfig should have comment or be unexported (golint)
    • Line 82: warning: exported method Network.SetName should have comment or be unexported (golint)
    • Line 88: warning: exported method Network.SetNick should have comment or be unexported (golint)
    • Line 94: warning: exported method Network.SetFeatures should have comment or be unexported (golint)
    • Line 100: warning: exported method Network.SetStatus should have comment or be unexported (golint)
    • Line 107: warning: exported method Network.Channel should have comment or be unexported (golint)
    • Line 114: warning: exported method Network.Channels should have comment or be unexported (golint)
    • Line 125: warning: exported method Network.ChannelNames should have comment or be unexported (golint)
    • Line 136: warning: exported method Network.NewChannel should have comment or be unexported (golint)
    • Line 145: warning: exported method Network.AddChannel should have comment or be unexported (golint)
    • Line 151: warning: exported method Network.RemoveChannels should have comment or be unexported (golint)
    • Line 159: warning: exported type Channel should have comment or be unexported (golint)
    • Line 170: warning: exported method Channel.Save should have comment or be unexported (golint)
    • Line 174: warning: exported method Channel.Copy should have comment or be unexported (golint)
    • Line 189: warning: exported method Channel.SetTopic should have comment or be unexported (golint)
    • Line 199: warning: exported method Channel.IsJoined should have comment or be unexported (golint)
    • Line 211: warning: exported method Channel.SetJoined should have comment or be unexported (golint)
    • dispatch/storage/channel_index.go
    • Line 10: warning: exported type ChannelListItem should have comment or be unexported (golint)
    • Line 16: warning: exported type ChannelListIndex should have comment or be unexported (golint)
    • Line 24: warning: exported type MapChannelListIndex should have comment or be unexported (golint)
    • Line 29: warning: exported function NewMapChannelListIndex should have comment or be unexported (golint)
    • Line 35: warning: exported method MapChannelListIndex.Add should have comment or be unexported (golint)
    • Line 39: warning: exported method MapChannelListIndex.Finish should have comment or be unexported (golint)
    • Line 56: warning: exported method MapChannelListIndex.Search should have comment or be unexported (golint)
    • Line 63: warning: exported method MapChannelListIndex.SearchN should have comment or be unexported (golint)
    • Line 107: warning: exported const ChannelListUpdateInterval should have comment or be unexported (golint)
    • Line 108: warning: exported const ChannelListUpdateTimeout should have comment or be unexported (golint)
    • Line 110: warning: exported type ChannelIndexManager should have comment or be unexported (golint)
    • Line 115: warning: exported function NewChannelIndexManager should have comment or be unexported (golint)
    • Line 127: warning: exported method ChannelIndexManager.Get should have comment or be unexported (golint)
    • Line 149: warning: exported method ChannelIndexManager.Set should have comment or be unexported (golint)
    • dispatch/pkg/https/https.go
    • Line 16: warning: exported type Config should have comment or be unexported (golint)
    • Line 30: warning: exported function Serve should have comment or be unexported (golint)
    • Line 112: warning: exported function HTTPSRedirect should have comment or be unexported (golint)
    • Line 136: warning: exported function TLSConfig should have comment or be unexported (golint)
    • dispatch/storage/user_cert.go
    • Line 10: warning: exported var ErrInvalidCert should have comment or be unexported (golint)
    • Line 14: warning: exported method User.GetCertificate should have comment or be unexported (golint)
    • Line 22: warning: exported method User.SetCertificate should have comment or be unexported (golint)
    • dispatch/pkg/irc/client.go
    • Line 14: warning: exported type Config should have comment or be unexported (golint)
    • Line 40: warning: exported type Client should have comment or be unexported (golint)
    • Line 73: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 157: warning: exported method Client.GetNick should have comment or be unexported (golint)
    • Line 164: warning: exported method Client.Is should have comment or be unexported (golint)
    • Line 174: warning: exported method Client.Connected should have comment or be unexported (golint)
    • Line 181: warning: exported method Client.Registered should have comment or be unexported (golint)
    • Line 194: warning: exported method Client.Host should have comment or be unexported (golint)
    • Line 198: warning: exported method Client.LocalAddr should have comment or be unexported (golint)
    • Line 208: warning: exported method Client.RemoteAddr should have comment or be unexported (golint)
    • Line 218: warning: exported method Client.MOTD should have comment or be unexported (golint)
    • Line 222: warning: exported method Client.ChannelUsers should have comment or be unexported (golint)
    • Line 226: warning: exported method Client.ChannelTopic should have comment or be unexported (golint)
    • Line 230: warning: exported method Client.Nick should have comment or be unexported (golint)
    • Line 234: warning: exported method Client.Oper should have comment or be unexported (golint)
    • Line 238: warning: exported method Client.Mode should have comment or be unexported (golint)
    • Line 242: warning: exported method Client.Quit should have comment or be unexported (golint)
    • Line 251: warning: exported method Client.Join should have comment or be unexported (golint)
    • Line 255: warning: exported method Client.Part should have comment or be unexported (golint)
    • Line 260: warning: exported method Client.Topic should have comment or be unexported (golint)
    • Line 268: warning: exported method Client.Invite should have comment or be unexported (golint)
    • Line 272: warning: exported method Client.Kick should have comment or be unexported (golint)
    • Line 276: warning: exported method Client.Privmsg should have comment or be unexported (golint)
    • Line 280: warning: exported method Client.Notice should have comment or be unexported (golint)
    • Line 284: warning: exported method Client.ReplyCTCP should have comment or be unexported (golint)
    • Line 291: warning: exported method Client.Whois should have comment or be unexported (golint)
    • Line 295: warning: exported method Client.Away should have comment or be unexported (golint)
    • Line 299: warning: exported method Client.List should have comment or be unexported (golint)
    • dispatch/pkg/irc/feature.go
    • Line 9: warning: exported type Features should have comment or be unexported (golint)
    • Line 14: warning: exported function NewFeatures should have comment or be unexported (golint)
    • Line 20: warning: exported method Features.Map should have comment or be unexported (golint)
    • Line 30: warning: exported method Features.Parse should have comment or be unexported (golint)
    • Line 52: warning: exported method Features.Has should have comment or be unexported (golint)
    • Line 59: warning: exported method Features.Get should have comment or be unexported (golint)
    • Line 73: warning: exported method Features.Int should have comment or be unexported (golint)

gocyclo89%

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.

    • dispatch/server/json_easyjson.go
    • Line 22: warning: cyclomatic complexity 17 of function easyjson42239ddeDecodeGithubComKhliengDispatchServer() is high (> 15) (gocyclo)
    • Line 3291: warning: cyclomatic complexity 17 of function easyjson42239ddeDecodeGithubComKhliengDispatchServer30() is high (> 15) (gocyclo)
    • Line 1902: warning: cyclomatic complexity 16 of function easyjson42239ddeDecodeGithubComKhliengDispatchServer17() is high (> 15) (gocyclo)
    • Line 1404: warning: cyclomatic complexity 16 of function easyjson42239ddeDecodeGithubComKhliengDispatchServer12() is high (> 15) (gocyclo)
    • dispatch/storage/network_easyjson.go
    • Line 99: warning: cyclomatic complexity 30 of function easyjsonC5839400EncodeGithubComKhliengDispatchStorage() is high (> 15) (gocyclo)
    • Line 20: warning: cyclomatic complexity 25 of function easyjsonC5839400DecodeGithubComKhliengDispatchStorage() is high (> 15) (gocyclo)

ineffassign90%

IneffAssign detects ineffectual assignments in Go code.

    • dispatch/server/json_easyjson.go
    • Line 137: warning: ineffectual assignment to first (ineffassign)
    • Line 225: warning: ineffectual assignment to first (ineffassign)
    • Line 310: warning: ineffectual assignment to first (ineffassign)
    • Line 397: warning: ineffectual assignment to first (ineffassign)
    • Line 509: warning: ineffectual assignment to first (ineffassign)
    • Line 621: warning: ineffectual assignment to first (ineffassign)
    • Line 700: warning: ineffectual assignment to first (ineffassign)
    • Line 812: warning: ineffectual assignment to first (ineffassign)
    • Line 949: warning: ineffectual assignment to first (ineffassign)
    • Line 1055: warning: ineffectual assignment to first (ineffassign)
    • Line 1122: warning: ineffectual assignment to first (ineffassign)
    • Line 1201: warning: ineffectual assignment to first (ineffassign)
    • Line 1280: warning: ineffectual assignment to first (ineffassign)
    • Line 1371: warning: ineffectual assignment to first (ineffassign)
    • Line 1516: warning: ineffectual assignment to first (ineffassign)
    • Line 1586: warning: ineffectual assignment to first (ineffassign)
    • Line 1674: warning: ineffectual assignment to first (ineffassign)
    • Line 1753: warning: ineffectual assignment to first (ineffassign)
    • Line 1869: warning: ineffectual assignment to first (ineffassign)
    • Line 2014: warning: ineffectual assignment to first (ineffassign)
    • Line 2141: warning: ineffectual assignment to first (ineffassign)
    • Line 2253: warning: ineffectual assignment to first (ineffassign)
    • Line 2377: warning: ineffectual assignment to first (ineffassign)
    • Line 2489: warning: ineffectual assignment to first (ineffassign)
    • Line 2589: warning: ineffectual assignment to first (ineffassign)
    • Line 2680: warning: ineffectual assignment to first (ineffassign)
    • Line 2771: warning: ineffectual assignment to first (ineffassign)
    • Line 2874: warning: ineffectual assignment to first (ineffassign)
    • Line 2973: warning: ineffectual assignment to first (ineffassign)
    • Line 3076: warning: ineffectual assignment to first (ineffassign)
    • Line 3179: warning: ineffectual assignment to first (ineffassign)
    • Line 3258: warning: ineffectual assignment to first (ineffassign)
    • Line 3403: warning: ineffectual assignment to first (ineffassign)
    • Line 3494: warning: ineffectual assignment to first (ineffassign)
    • Line 3561: warning: ineffectual assignment to first (ineffassign)
    • Line 3652: warning: ineffectual assignment to first (ineffassign)
    • Line 3731: warning: ineffectual assignment to first (ineffassign)
    • dispatch/storage/storage.schema.gen.go
    • Line 141: warning: ineffectual assignment to l (ineffassign)
    • Line 179: warning: ineffectual assignment to l (ineffassign)
    • Line 577: warning: ineffectual assignment to l (ineffassign)
    • Line 597: warning: ineffectual assignment to l (ineffassign)
    • Line 617: warning: ineffectual assignment to l (ineffassign)
    • Line 640: warning: ineffectual assignment to l (ineffassign)
    • Line 660: warning: ineffectual assignment to l (ineffassign)
    • Line 680: warning: ineffectual assignment to l (ineffassign)
    • Line 700: warning: ineffectual assignment to l (ineffassign)
    • Line 720: warning: ineffectual assignment to l (ineffassign)
    • Line 740: warning: ineffectual assignment to l (ineffassign)
    • Line 852: warning: ineffectual assignment to l (ineffassign)
    • Line 872: warning: ineffectual assignment to l (ineffassign)
    • Line 1075: warning: ineffectual assignment to l (ineffassign)
    • Line 1095: warning: ineffectual assignment to l (ineffassign)
    • Line 1115: warning: ineffectual assignment to l (ineffassign)
    • Line 1140: warning: ineffectual assignment to l (ineffassign)
    • Line 1313: warning: ineffectual assignment to l (ineffassign)
    • Line 1333: warning: ineffectual assignment to l (ineffassign)
    • Line 1357: warning: ineffectual assignment to l (ineffassign)
    • dispatch/storage/user_test.go
    • Line 62: warning: ineffectual assignment to err (ineffassign)
    • Line 66: warning: ineffectual assignment to err (ineffassign)
    • Line 72: warning: ineffectual assignment to err (ineffassign)
    • Line 76: warning: ineffectual assignment to err (ineffassign)
    • Line 80: warning: ineffectual assignment to err (ineffassign)
    • Line 85: warning: ineffectual assignment to err (ineffassign)
    • Line 87: warning: ineffectual assignment to err (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words