Preparing report...

Report for github.com/mailgun/go-imap

A+    Excellent!    Found 62 issues across 109 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!


gocyclo90%

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.

    • go-imap/read_test.go
    • Line 342: warning: cyclomatic complexity 20 of function TestReader_ReadList() is high (> 15) (gocyclo)
    • Line 132: warning: cyclomatic complexity 18 of function TestReader_ReadAtom() is high (> 15) (gocyclo)
    • Line 292: warning: cyclomatic complexity 16 of function TestReader_ReadFields() is high (> 15) (gocyclo)
    • go-imap/read.go
    • Line 270: warning: cyclomatic complexity 18 of function (*Reader).ReadFields() is high (> 15) (gocyclo)
    • Line 149: warning: cyclomatic complexity 16 of function (*Reader).ReadAtom() is high (> 15) (gocyclo)
    • go-imap/search.go
    • Line 91: warning: cyclomatic complexity 70 of function (*SearchCriteria).parseField() is high (> 15) (gocyclo)
    • Line 276: warning: cyclomatic complexity 30 of function (*SearchCriteria).Format() is high (> 15) (gocyclo)
    • go-imap/message.go
    • Line 802: warning: cyclomatic complexity 38 of function (*BodyStructure).Parse() is high (> 15) (gocyclo)
    • Line 958: warning: cyclomatic complexity 21 of function (*BodyStructure).Format() is high (> 15) (gocyclo)
    • Line 509: warning: cyclomatic complexity 19 of function (*BodyPartName).parse() is high (> 15) (gocyclo)
    • Line 201: warning: cyclomatic complexity 18 of function (*Message).Parse() is high (> 15) (gocyclo)
    • Line 353: warning: cyclomatic complexity 16 of function (*BodySectionName).parse() is high (> 15) (gocyclo)
    • go-imap/client/client.go
    • Line 261: warning: cyclomatic complexity 48 of function (*Client).handleUnilateral() is high (> 15) (gocyclo)
    • Line 131: warning: cyclomatic complexity 17 of function (*Client).execute() is high (> 15) (gocyclo)

golint46%

Golint is a linter for Go source code.

    • go-imap/handle.go
    • Line 7: warning: comment on exported type RespHandle should be of the form "RespHandle ..." (with optional leading article) (golint)
    • Line 23: warning: comment on exported method RespHandle.AcceptNamedResp should be of the form "AcceptNamedResp ..." (golint)
    • Line 44: warning: comment on exported type RespHandler should be of the form "RespHandler ..." (with optional leading article) (golint)
    • Line 47: warning: comment on exported type RespHandlerFrom should be of the form "RespHandlerFrom ..." (with optional leading article) (golint)
    • Line 52: warning: comment on exported type MultiRespHandler should be of the form "MultiRespHandler ..." (with optional leading article) (golint)
    • Line 58: warning: exported function NewMultiRespHandler should have comment or be unexported (golint)
    • Line 64: warning: exported method MultiRespHandler.HandleFrom should have comment or be unexported (golint)
    • Line 102: warning: exported method MultiRespHandler.Add should have comment or be unexported (golint)
    • Line 112: warning: exported method MultiRespHandler.Del should have comment or be unexported (golint)
    • go-imap/read.go
    • Line 51: warning: comment on exported type StringReader should be of the form "StringReader ..." (with optional leading article) (golint)
    • Line 65: warning: comment on exported function ParseNumber should be of the form "ParseNumber ..." (golint)
    • Line 85: warning: comment on exported function ParseStringList should be of the form "ParseStringList ..." (golint)
    • Line 106: warning: comment on exported type Reader should be of the form "Reader ..." (with optional leading article) (golint)
    • Line 118: warning: exported method Reader.ReadSp should have comment or be unexported (golint)
    • Line 129: warning: exported method Reader.ReadCrlf should have comment or be unexported (golint)
    • Line 149: warning: exported method Reader.ReadAtom should have comment or be unexported (golint)
    • Line 194: warning: exported method Reader.ReadLiteral should have comment or be unexported (golint)
    • Line 232: warning: exported method Reader.ReadQuotedString should have comment or be unexported (golint)
    • Line 270: warning: exported method Reader.ReadFields should have comment or be unexported (golint)
    • Line 321: warning: exported method Reader.ReadList should have comment or be unexported (golint)
    • Line 346: warning: exported method Reader.ReadLine should have comment or be unexported (golint)
    • Line 357: warning: exported method Reader.ReadRespCode should have comment or be unexported (golint)
    • Line 402: warning: exported method Reader.ReadInfo should have comment or be unexported (golint)
    • Line 420: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 424: warning: exported function NewServerReader should have comment or be unexported (golint)
    • Line 428: warning: exported type Parser should have comment or be unexported (golint)
    • go-imap/responses/authenticate.go
    • Line 10: warning: comment on exported type Authenticate should be of the form "Authenticate ..." (with optional leading article) (golint)
    • Line 17: warning: exported method Authenticate.HandleFrom should have comment or be unexported (golint)
    • go-imap/responses/search.go
    • Line 7: warning: comment on exported type Search should be of the form "Search ..." (with optional leading article) (golint)
    • Line 13: warning: exported method Search.HandleFrom should have comment or be unexported (golint)
    • Line 29: warning: exported method Search.WriteTo should have comment or be unexported (golint)
    • go-imap/backend/memory/backend.go
    • Line 1: warning: package comment should be of the form "Package memory ..." (golint)
    • Line 11: warning: exported type Backend should have comment or be unexported (golint)
    • Line 15: warning: exported method Backend.Login should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 57: warning: exported method Backend.Push should have comment or be unexported (golint)
    • Line 68: warning: exported method Backend.Pop should have comment or be unexported (golint)
    • go-imap/commands/starttls.go
    • Line 10: warning: exported method StartTLS.Command should have comment or be unexported (golint)
    • Line 16: warning: exported method StartTLS.Parse should have comment or be unexported (golint)
    • go-imap/commands/subscribe.go
    • Line 15: warning: exported method Subscribe.Command should have comment or be unexported (golint)
    • Line 24: warning: exported method Subscribe.Parse should have comment or be unexported (golint)
    • Line 41: warning: comment on exported type Unsubscribe should be of the form "Unsubscribe ..." (with optional leading article) (golint)
    • Line 47: warning: exported method Unsubscribe.Command should have comment or be unexported (golint)
    • Line 56: warning: exported method Unsubscribe.Parse should have comment or be unexported (golint)
    • go-imap/date.go
    • Line 25: warning: comment on exported type Date should be of the form "Date ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported type DateTime should be of the form "DateTime ..." (with optional leading article) (golint)
    • go-imap/responses/expunge.go
    • Line 7: warning: comment on exported type Expunge should be of the form "Expunge ..." (with optional leading article) (golint)
    • Line 13: warning: exported method Expunge.HandleFrom should have comment or be unexported (golint)
    • Line 35: warning: exported method Expunge.WriteTo should have comment or be unexported (golint)
    • go-imap/responses/select.go
    • Line 9: warning: comment on exported type Select should be of the form "Select ..." (with optional leading article) (golint)
    • Line 14: warning: exported method Select.HandleFrom should have comment or be unexported (golint)
    • Line 73: warning: exported method Select.WriteTo should have comment or be unexported (golint)
    • go-imap/responses/status.go
    • Line 10: warning: comment on exported type Status should be of the form "Status ..." (with optional leading article) (golint)
    • Line 16: warning: exported method Status.HandleFrom should have comment or be unexported (golint)
    • Line 52: warning: exported method Status.WriteTo should have comment or be unexported (golint)
    • go-imap/commands/check.go
    • Line 10: warning: exported method Check.Command should have comment or be unexported (golint)
    • Line 16: warning: exported method Check.Parse should have comment or be unexported (golint)
    • go-imap/commands/select.go
    • Line 17: warning: exported method Select.Command should have comment or be unexported (golint)
    • Line 31: warning: exported method Select.Parse should have comment or be unexported (golint)
    • go-imap/mailbox.go
    • Line 11: warning: comment on exported const InboxName should be of the form "InboxName ..." (golint)
    • Line 14: warning: comment on exported function CanonicalMailboxName should be of the form "CanonicalMailboxName ..." (golint)
    • Line 40: warning: comment on exported type MailboxInfo should be of the form "MailboxInfo ..." (with optional leading article) (golint)
    • Line 141: warning: comment on exported type MailboxStatus should be of the form "MailboxStatus ..." (with optional leading article) (golint)
    • Line 174: warning: comment on exported function NewMailboxStatus should be of the form "NewMailboxStatus ..." (golint)
    • Line 188: warning: exported method MailboxStatus.Parse should have comment or be unexported (golint)
    • Line 227: warning: exported method MailboxStatus.Format should have comment or be unexported (golint)
    • go-imap/commands/status.go
    • Line 17: warning: exported method Status.Command should have comment or be unexported (golint)
    • Line 31: warning: exported method Status.Parse should have comment or be unexported (golint)
    • Line 46: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • go-imap/backend/memory/message.go
    • Line 12: warning: exported type Message should have comment or be unexported (golint)
    • Line 24: warning: exported method Message.Fetch should have comment or be unexported (golint)
    • Line 57: warning: exported method Message.Match should have comment or be unexported (golint)
    • go-imap/commands/create.go
    • Line 15: warning: exported method Create.Command should have comment or be unexported (golint)
    • Line 24: warning: exported method Create.Parse should have comment or be unexported (golint)
    • go-imap/commands/rename.go
    • Line 16: warning: exported method Rename.Command should have comment or be unexported (golint)
    • Line 26: warning: exported method Rename.Parse should have comment or be unexported (golint)
    • go-imap/conn.go
    • Line 9: warning: comment on exported type ConnState should be of the form "ConnState ..." (with optional leading article) (golint)
    • Line 14: warning: comment on exported const ConnectingState should be of the form "ConnectingState ..." (golint)
    • Line 18: warning: comment on exported const NotAuthenticatedState should be of the form "NotAuthenticatedState ..." (golint)
    • Line 24: warning: comment on exported const AuthenticatedState should be of the form "AuthenticatedState ..." (golint)
    • Line 32: warning: comment on exported const SelectedState should be of the form "SelectedState ..." (golint)
    • Line 37: warning: comment on exported const LogoutState should be of the form "LogoutState ..." (golint)
    • Line 48: warning: comment on exported type ConnUpgrader should be of the form "ConnUpgrader ..." (with optional leading article) (golint)
    • Line 84: warning: comment on exported type Conn should be of the form "Conn ..." (with optional leading article) (golint)
    • go-imap/utf7/decoder.go
    • Line 12: warning: exported var ErrBadUtf7 should have comment or be unexported (golint)
    • Line 14: warning: exported var Decoder should have comment or be unexported (golint)
    • go-imap/responses/list.go
    • Line 7: warning: comment on exported type List should be of the form "List ..." (with optional leading article) (golint)
    • Line 15: warning: exported method List.Name should have comment or be unexported (golint)
    • Line 18: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 23: warning: exported method List.HandleFrom should have comment or be unexported (golint)
    • Line 45: warning: exported method List.WriteTo should have comment or be unexported (golint)
    • go-imap/server/cmd_selected.go
    • Line 18: warning: comment on exported type UidHandler should be of the form "UidHandler ..." (with optional leading article) (golint)
    • Line 26: warning: exported type Check should have comment or be unexported (golint)
    • Line 30: warning: exported method Check.Handle should have comment or be unexported (golint)
    • Line 42: warning: exported type Close should have comment or be unexported (golint)
    • Line 46: warning: exported method Close.Handle should have comment or be unexported (golint)
    • Line 64: warning: exported type Expunge should have comment or be unexported (golint)
    • Line 68: warning: exported method Expunge.Handle should have comment or be unexported (golint)
    • Line 123: warning: exported type Search should have comment or be unexported (golint)
    • Line 142: warning: exported method Search.Handle should have comment or be unexported (golint)
    • Line 146: warning: exported method Search.UidHandle should have comment or be unexported (golint)
    • Line 150: warning: exported type Fetch should have comment or be unexported (golint)
    • Line 176: warning: exported method Fetch.Handle should have comment or be unexported (golint)
    • Line 180: warning: exported method Fetch.UidHandle should have comment or be unexported (golint)
    • Line 196: warning: exported type Store should have comment or be unexported (golint)
    • Line 260: warning: exported method Store.Handle should have comment or be unexported (golint)
    • Line 264: warning: exported method Store.UidHandle should have comment or be unexported (golint)
    • Line 268: warning: exported type Copy should have comment or be unexported (golint)
    • Line 281: warning: exported method Copy.Handle should have comment or be unexported (golint)
    • Line 285: warning: exported method Copy.UidHandle should have comment or be unexported (golint)
    • Line 289: warning: exported type Uid should have comment or be unexported (golint)
    • Line 293: warning: exported method Uid.Handle should have comment or be unexported (golint)
    • go-imap/literal.go
    • Line 7: warning: comment on exported type Literal should be of the form "Literal ..." (with optional leading article) (golint)
    • go-imap/message.go
    • Line 67: warning: comment on exported function CanonicalFlag should be of the form "CanonicalFlag ..." (golint)
    • Line 81: warning: exported function ParseParamList should have comment or be unexported (golint)
    • Line 105: warning: exported function FormatParamList should have comment or be unexported (golint)
    • Line 154: warning: comment on exported type Message should be of the form "Message ..." (with optional leading article) (golint)
    • Line 184: warning: comment on exported function NewMessage should be of the form "NewMessage ..." (golint)
    • Line 306: warning: exported method Message.Format should have comment or be unexported (golint)
    • Line 328: warning: comment on exported method Message.GetBody should be of the form "GetBody ..." (golint)
    • Line 338: warning: comment on exported type BodySectionName should be of the form "BodySectionName ..." (with optional leading article) (golint)
    • Line 470: warning: comment on exported method BodySectionName.ExtractPartial should be of the form "ExtractPartial ..." (golint)
    • Line 489: warning: comment on exported function NewBodySectionName should be of the form "NewBodySectionName ..." (golint)
    • Line 496: warning: comment on exported type BodyPartName should be of the form "BodyPartName ..." (with optional leading article) (golint)
    • Line 590: warning: comment on exported type Address should be of the form "Address ..." (with optional leading article) (golint)
    • Line 644: warning: comment on exported function ParseAddressList should be of the form "ParseAddressList ..." (golint)
    • Line 660: warning: comment on exported function FormatAddressList should be of the form "FormatAddressList ..." (golint)
    • Line 671: warning: comment on exported type Envelope should be of the form "Envelope ..." (with optional leading article) (golint)
    • Line 752: warning: comment on exported type BodyStructure should be of the form "BodyStructure ..." (with optional leading article) (golint)
    • Line 802: warning: exported method BodyStructure.Parse should have comment or be unexported (golint)
    • Line 958: warning: exported method BodyStructure.Format should have comment or be unexported (golint)
    • go-imap/search.go
    • Line 134: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 152: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 235: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 250: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-imap/status.go
    • Line 7: warning: comment on exported type StatusRespType should be of the form "StatusRespType ..." (with optional leading article) (golint)
    • Line 57: warning: comment on exported type StatusResp should be of the form "StatusResp ..." (with optional leading article) (golint)
    • Line 77: warning: comment on exported method StatusResp.Err should be of the form "Err ..." (golint)
    • Line 91: warning: exported method StatusResp.WriteTo should have comment or be unexported (golint)
    • go-imap/commands/delete.go
    • Line 15: warning: exported method Delete.Command should have comment or be unexported (golint)
    • Line 24: warning: exported method Delete.Parse should have comment or be unexported (golint)
    • go-imap/commands/expunge.go
    • Line 10: warning: exported method Expunge.Command should have comment or be unexported (golint)
    • Line 14: warning: exported method Expunge.Parse should have comment or be unexported (golint)
    • go-imap/commands/fetch.go
    • Line 16: warning: exported method Fetch.Command should have comment or be unexported (golint)
    • Line 32: warning: exported method Fetch.Parse should have comment or be unexported (golint)
    • go-imap/commands/logout.go
    • Line 10: warning: exported method Logout.Command should have comment or be unexported (golint)
    • Line 16: warning: exported method Logout.Parse should have comment or be unexported (golint)
    • go-imap/server/cmd_any.go
    • Line 10: warning: exported type Capability should have comment or be unexported (golint)
    • Line 14: warning: exported method Capability.Handle should have comment or be unexported (golint)
    • Line 19: warning: exported type Noop should have comment or be unexported (golint)
    • Line 23: warning: exported method Noop.Handle should have comment or be unexported (golint)
    • Line 35: warning: exported type Logout should have comment or be unexported (golint)
    • Line 39: warning: exported method Logout.Handle should have comment or be unexported (golint)
    • go-imap/imap.go
    • Line 24: warning: comment on exported var CharsetReader should be of the form "CharsetReader ..." (golint)
    • go-imap/commands/search.go
    • Line 17: warning: exported method Search.Command should have comment or be unexported (golint)
    • Line 30: warning: exported method Search.Parse should have comment or be unexported (golint)
    • go-imap/commands/uid.go
    • Line 16: warning: exported method Uid.Command should have comment or be unexported (golint)
    • Line 28: warning: exported method Uid.Parse should have comment or be unexported (golint)
    • go-imap/server/cmd_noauth.go
    • Line 20: warning: exported type StartTLS should have comment or be unexported (golint)
    • Line 24: warning: exported method StartTLS.Handle should have comment or be unexported (golint)
    • Line 44: warning: exported method StartTLS.Upgrade should have comment or be unexported (golint)
    • Line 80: warning: exported type Login should have comment or be unexported (golint)
    • Line 84: warning: exported method Login.Handle should have comment or be unexported (golint)
    • Line 103: warning: exported type Authenticate should have comment or be unexported (golint)
    • Line 107: warning: exported method Authenticate.Handle should have comment or be unexported (golint)
    • go-imap/commands/store.go
    • Line 17: warning: exported method Store.Command should have comment or be unexported (golint)
    • Line 24: warning: exported method Store.Parse should have comment or be unexported (golint)
    • go-imap/server/cmd_auth.go
    • Line 17: warning: exported type Select should have comment or be unexported (golint)
    • Line 21: warning: exported method Select.Handle should have comment or be unexported (golint)
    • Line 61: warning: exported type Create should have comment or be unexported (golint)
    • Line 65: warning: exported method Create.Handle should have comment or be unexported (golint)
    • Line 74: warning: exported type Delete should have comment or be unexported (golint)
    • Line 78: warning: exported method Delete.Handle should have comment or be unexported (golint)
    • Line 87: warning: exported type Rename should have comment or be unexported (golint)
    • Line 91: warning: exported method Rename.Handle should have comment or be unexported (golint)
    • Line 100: warning: exported type Subscribe should have comment or be unexported (golint)
    • Line 104: warning: exported method Subscribe.Handle should have comment or be unexported (golint)
    • Line 118: warning: exported type Unsubscribe should have comment or be unexported (golint)
    • Line 122: warning: exported method Unsubscribe.Handle should have comment or be unexported (golint)
    • Line 136: warning: exported type List should have comment or be unexported (golint)
    • Line 140: warning: exported method List.Handle should have comment or be unexported (golint)
    • Line 190: warning: exported type Status should have comment or be unexported (golint)
    • Line 194: warning: exported method Status.Handle should have comment or be unexported (golint)
    • Line 221: warning: exported type Append should have comment or be unexported (golint)
    • Line 225: warning: exported method Append.Handle should have comment or be unexported (golint)
    • go-imap/server/server.go
    • Line 20: warning: comment on exported const MinAutoLogout should be of the form "MinAutoLogout ..." (golint)
    • Line 23: warning: comment on exported type Handler should be of the form "Handler ..." (with optional leading article) (golint)
    • Line 34: warning: comment on exported type Upgrader should be of the form "Upgrader ..." (with optional leading article) (golint)
    • Line 44: warning: comment on exported type HandlerFactory should be of the form "HandlerFactory ..." (with optional leading article) (golint)
    • Line 47: warning: comment on exported type SaslServerFactory should be of the form "SaslServerFactory ..." (with optional leading article) (golint)
    • Line 50: warning: comment on exported type Extension should be of the form "Extension ..." (with optional leading article) (golint)
    • Line 58: warning: comment on exported type ConnExtension should be of the form "ConnExtension ..." (with optional leading article) (golint)
    • Line 90: warning: comment on exported type Server should be of the form "Server ..." (with optional leading article) (golint)
    • Line 126: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 280: warning: comment on exported method Server.Command should be of the form "Command ..." (golint)
    • Line 396: warning: comment on exported method Server.Close should be of the form "Close ..." (golint)
    • Line 420: warning: comment on exported method Server.EnableAuth should be of the form "EnableAuth ..." (golint)
    • go-imap/responses/capability.go
    • Line 7: warning: comment on exported type Capability should be of the form "Capability ..." (with optional leading article) (golint)
    • Line 13: warning: exported method Capability.HandleFrom should have comment or be unexported (golint)
    • Line 31: warning: exported method Capability.WriteTo should have comment or be unexported (golint)
    • go-imap/responses/fetch.go
    • Line 7: warning: comment on exported type Fetch should be of the form "Fetch ..." (with optional leading article) (golint)
    • Line 13: warning: exported method Fetch.HandleFrom should have comment or be unexported (golint)
    • Line 45: warning: exported method Fetch.WriteTo should have comment or be unexported (golint)
    • go-imap/commands/authenticate.go
    • Line 28: warning: exported method Authenticate.Command should have comment or be unexported (golint)
    • Line 35: warning: exported method Authenticate.Parse should have comment or be unexported (golint)
    • Line 49: warning: exported method Authenticate.Handle should have comment or be unexported (golint)
    • go-imap/commands/list.go
    • Line 19: warning: exported method List.Command should have comment or be unexported (golint)
    • Line 34: warning: exported method List.Parse should have comment or be unexported (golint)
    • go-imap/commands/noop.go
    • Line 10: warning: exported method Noop.Command should have comment or be unexported (golint)
    • Line 16: warning: exported method Noop.Parse should have comment or be unexported (golint)
    • go-imap/backend/memory/mailbox.go
    • Line 12: warning: exported var Delimiter should have comment or be unexported (golint)
    • Line 14: warning: exported type Mailbox should have comment or be unexported (golint)
    • Line 22: warning: exported method Mailbox.Name should have comment or be unexported (golint)
    • Line 26: warning: exported method Mailbox.Info should have comment or be unexported (golint)
    • Line 62: warning: exported method Mailbox.Status should have comment or be unexported (golint)
    • Line 85: warning: exported method Mailbox.SetSubscribed should have comment or be unexported (golint)
    • Line 90: warning: exported method Mailbox.Check should have comment or be unexported (golint)
    • Line 94: warning: exported method Mailbox.ListMessages should have comment or be unexported (golint)
    • Line 121: warning: exported method Mailbox.SearchMessages should have comment or be unexported (golint)
    • Line 142: warning: exported method Mailbox.CreateMessage should have comment or be unexported (golint)
    • Line 162: warning: exported method Mailbox.UpdateMessagesFlags should have comment or be unexported (golint)
    • Line 180: warning: exported method Mailbox.CopyMessages should have comment or be unexported (golint)
    • Line 205: warning: exported method Mailbox.Expunge should have comment or be unexported (golint)
    • go-imap/backend/memory/user.go
    • Line 9: warning: exported type User should have comment or be unexported (golint)
    • Line 15: warning: exported method User.Username should have comment or be unexported (golint)
    • Line 19: warning: exported method User.ListMailboxes should have comment or be unexported (golint)
    • Line 30: warning: exported method User.GetMailbox should have comment or be unexported (golint)
    • Line 38: warning: exported method User.CreateMailbox should have comment or be unexported (golint)
    • Line 47: warning: exported method User.DeleteMailbox should have comment or be unexported (golint)
    • Line 59: warning: exported method User.RenameMailbox should have comment or be unexported (golint)
    • Line 80: warning: exported method User.Logout should have comment or be unexported (golint)
    • go-imap/commands/append.go
    • Line 19: warning: exported method Append.Command should have comment or be unexported (golint)
    • Line 45: warning: exported method Append.Parse should have comment or be unexported (golint)
    • go-imap/commands/login.go
    • Line 15: warning: exported method Login.Command should have comment or be unexported (golint)
    • Line 22: warning: exported method Login.Parse should have comment or be unexported (golint)
    • go-imap/commands/copy.go
    • Line 16: warning: exported method Copy.Command should have comment or be unexported (golint)
    • Line 25: warning: exported method Copy.Parse should have comment or be unexported (golint)
    • go-imap/write.go
    • Line 17: warning: comment on exported type Quoted should be of the form "Quoted ..." (with optional leading article) (golint)
    • Line 20: warning: exported type WriterTo should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function FormatStringList should be of the form "FormatStringList ..." (golint)
    • Line 47: warning: comment on exported type Writer should be of the form "Writer ..." (with optional leading article) (golint)
    • Line 216: warning: exported method Writer.Flush should have comment or be unexported (golint)
    • Line 223: warning: exported function NewWriter should have comment or be unexported (golint)
    • Line 227: warning: exported function NewClientWriter should have comment or be unexported (golint)
    • go-imap/commands/close.go
    • Line 10: warning: exported method Close.Command should have comment or be unexported (golint)
    • Line 16: warning: exported method Close.Parse should have comment or be unexported (golint)
    • go-imap/seqset_test.go
    • Line 353: warning: don't use underscores in Go names; var test_ok should be testOk (golint)
    • Line 542: warning: don't use underscores in Go names; var test_empty should be testEmpty (golint)
    • Line 546: warning: don't use underscores in Go names; var test_dynamic should be testDynamic (golint)
    • go-imap/response.go
    • Line 7: warning: comment on exported type Responser should be of the form "Responser ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported type Resp should be of the form "Resp ..." (with optional leading article) (golint)
    • Line 22: warning: exported method Resp.WriteTo should have comment or be unexported (golint)
    • Line 33: warning: comment on exported function NewUntaggedResp should be of the form "NewUntaggedResp ..." (golint)
    • Line 41: warning: comment on exported type ContinuationResp should be of the form "ContinuationResp ..." (with optional leading article) (golint)
    • Line 47: warning: exported method ContinuationResp.WriteTo should have comment or be unexported (golint)
    • Line 61: warning: comment on exported function ReadResp should be of the form "ReadResp ..." (golint)
    • go-imap/commands/capability.go
    • Line 10: warning: exported method Capability.Command should have comment or be unexported (golint)
    • Line 16: warning: exported method Capability.Parse should have comment or be unexported (golint)
    • go-imap/command.go
    • Line 40: warning: comment on exported type Commander should be of the form "Commander ..." (with optional leading article) (golint)
    • Line 45: warning: comment on exported type Command should be of the form "Command ..." (with optional leading article) (golint)
    • Line 56: warning: comment on exported method Command.Command should be of the form "Command ..." (golint)
    • Line 61: warning: exported method Command.WriteTo should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words