Preparing report...

Report for github.com/skycoin/bbs

A    Great!    Found 43 issues across 51 files

Tweet

gofmt90%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo98%

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.


golint21%

Golint is a linter for Go source code.

    • bbs/cmd/bbsnode/bbsnode.go
    • Line 23: warning: exported const Version should have comment (or a comment on this block) or be unexported (golint)
    • Line 80: warning: exported method Config.Print should have comment or be unexported (golint)
    • bbs/src/misc/typ/paginatedtypes/simple.go
    • Line 5: warning: exported function NewSimple should have comment or be unexported (golint)
    • Line 9: warning: exported type Simple should have comment or be unexported (golint)
    • Line 13: warning: exported method Simple.Append should have comment or be unexported (golint)
    • Line 17: warning: exported method Simple.Has should have comment or be unexported (golint)
    • Line 26: warning: exported method Simple.Get should have comment or be unexported (golint)
    • Line 45: warning: exported method Simple.Len should have comment or be unexported (golint)
    • Line 49: warning: exported method Simple.Clear should have comment or be unexported (golint)
    • bbs/src/store/access_in.go
    • Line 13: warning: exported type SubmissionIn should have comment or be unexported (golint)
    • Line 19: warning: exported method SubmissionIn.Process should have comment or be unexported (golint)
    • Line 34: warning: exported method ConnectionIn.Process should have comment or be unexported (golint)
    • Line 41: warning: exported type UserIn should have comment or be unexported (golint)
    • Line 48: warning: exported method UserIn.Process should have comment or be unexported (golint)
    • Line 67: warning: exported method BoardIn.Process should have comment or be unexported (golint)
    • Line 80: warning: exported type ExportBoardIn should have comment or be unexported (golint)
    • Line 86: warning: exported method ExportBoardIn.Process should have comment or be unexported (golint)
    • Line 94: warning: exported type ImportBoardIn should have comment or be unexported (golint)
    • Line 98: warning: exported method ImportBoardIn.Process should have comment or be unexported (golint)
    • Line 105: warning: exported type NewBoardIn should have comment or be unexported (golint)
    • Line 115: warning: exported method NewBoardIn.Process should have comment or be unexported (golint)
    • Line 146: warning: exported type ThreadIn should have comment or be unexported (golint)
    • Line 155: warning: exported method ThreadIn.Process should have comment or be unexported (golint)
    • Line 171: warning: exported type NewThreadIn should have comment or be unexported (golint)
    • Line 183: warning: exported method NewThreadIn.Process should have comment or be unexported (golint)
    • Line 220: warning: exported type NewPostIn should have comment or be unexported (golint)
    • Line 238: warning: exported method NewPostIn.Process should have comment or be unexported (golint)
    • Line 291: warning: exported type VoteThreadIn should have comment or be unexported (golint)
    • Line 307: warning: exported method VoteThreadIn.Process should have comment or be unexported (golint)
    • Line 347: warning: exported type VoteUserIn should have comment or be unexported (golint)
    • Line 363: warning: exported method VoteUserIn.Process should have comment or be unexported (golint)
    • Line 404: warning: exported type VotePostIn should have comment or be unexported (golint)
    • Line 420: warning: exported method VotePostIn.Process should have comment or be unexported (golint)
    • Line 465: warning: exported function ErrProcess should have comment or be unexported (golint)
    • Line 469: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bbs/src/store/object/cxo_types_content.go
    • Line 19: warning: exported const TrustTag should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type ImageData should have comment or be unexported (golint)
    • Line 34: warning: exported type Body should have comment or be unexported (golint)
    • Line 50: warning: exported function NewBody should have comment or be unexported (golint)
    • Line 58: warning: exported method Body.ToRaw should have comment or be unexported (golint)
    • Line 63: warning: exported method Body.GetOfBoard should have comment or be unexported (golint)
    • Line 66: 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)
    • Line 71: warning: exported method Body.GetOfThread should have comment or be unexported (golint)
    • Line 74: 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)
    • Line 79: warning: exported method Body.GetOfPost should have comment or be unexported (golint)
    • Line 82: 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)
    • Line 87: warning: exported method Body.GetOfUser should have comment or be unexported (golint)
    • Line 90: 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)
    • Line 95: warning: exported method Body.GetSubKeys should have comment or be unexported (golint)
    • Line 106: warning: exported method Body.SetSubKeys should have comment or be unexported (golint)
    • Line 113: warning: exported method Body.GetCreator should have comment or be unexported (golint)
    • Line 116: 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)
    • Line 121: warning: exported method Body.HasTag should have comment or be unexported (golint)
    • Line 130: warning: exported method Body.HasValue should have comment or be unexported (golint)
    • Line 134: warning: exported type Content should have comment or be unexported (golint)
    • Line 151: warning: exported method Content.Verify should have comment or be unexported (golint)
    • Line 176: warning: exported function GetContentFromRef should have comment or be unexported (golint)
    • Line 188: warning: exported function GetContentFromElem should have comment or be unexported (golint)
    • Line 200: warning: exported method Content.GetHeader should have comment or be unexported (golint)
    • Line 206: warning: exported method Content.SetHeader should have comment or be unexported (golint)
    • Line 210: warning: exported method Content.GetBody should have comment or be unexported (golint)
    • Line 216: warning: exported method Content.SetBody should have comment or be unexported (golint)
    • Line 220: warning: exported method Content.SetBodyRaw should have comment or be unexported (golint)
    • Line 224: warning: exported method Content.ToRep should have comment or be unexported (golint)
    • Line 231: warning: exported type ContentRep should have comment or be unexported (golint)
    • Line 238: warning: exported type ContentType should have comment or be unexported (golint)
    • Line 240: warning: exported method ContentType.IsValid should have comment or be unexported (golint)
    • Line 255: warning: exported const V5BoardType should have comment (or a comment on this block) or be unexported (golint)
    • Line 263: warning: exported type ContentHeaderData should have comment or be unexported (golint)
    • Line 268: warning: exported method ContentHeaderData.GetHash should have comment or be unexported (golint)
    • Line 276: warning: exported method ContentHeaderData.GetSig should have comment or be unexported (golint)
    • Line 284: warning: exported method ContentHeaderData.Verify should have comment or be unexported (golint)
    • Line 295: warning: exported type Transport should have comment or be unexported (golint)
    • Line 301: warning: exported function NewTransport should have comment or be unexported (golint)
    • Line 331: warning: exported method Transport.GetOfBoard should have comment or be unexported (golint)
    • Line 340: warning: exported type BoardSummaryWrap should have comment or be unexported (golint)
    • Line 346: warning: exported method BoardSummaryWrap.Sign should have comment or be unexported (golint)
    • Line 350: warning: exported method BoardSummaryWrap.Verify should have comment or be unexported (golint)
    • bbs/src/store/state/board_instance.go
    • Line 27: warning: exported type BoardInstance should have comment or be unexported (golint)
    • Line 101: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 349: warning: exported method BoardInstance.Export should have comment or be unexported (golint)
    • Line 367: warning: exported method BoardInstance.Import should have comment or be unexported (golint)
    • bbs/src/store/state/board_instance_add.go
    • Line 9: warning: exported method BoardInstance.Submit should have comment or be unexported (golint)
    • Line 219: warning: exported method BoardInstance.EnsureSubmissionKeys should have comment or be unexported (golint)
    • Line 229: warning: exported method BoardInstance.GetSubmissionKeys should have comment or be unexported (golint)
    • Line 288: warning: exported method BoardInstance.ViewBoard should have comment or be unexported (golint)
    • bbs/src/misc/typ/list.go
    • Line 8: warning: exported type List should have comment or be unexported (golint)
    • Line 13: warning: exported function NewList should have comment or be unexported (golint)
    • Line 19: warning: exported method List.Len should have comment or be unexported (golint)
    • Line 23: warning: exported method List.Append should have comment or be unexported (golint)
    • Line 26: 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)
    • Line 33: warning: exported method List.Set should have comment or be unexported (golint)
    • Line 42: warning: exported method List.Replace 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)
    • Line 51: warning: exported method List.DelOfIndex should have comment or be unexported (golint)
    • Line 60: warning: exported method List.DelOfKey should have comment or be unexported (golint)
    • Line 75: warning: exported method List.GetOfKey should have comment or be unexported (golint)
    • Line 80: warning: exported method List.GetOfIndex should have comment or be unexported (golint)
    • Line 87: warning: exported method List.Keys should have comment or be unexported (golint)
    • Line 91: warning: exported method List.Values should have comment or be unexported (golint)
    • Line 99: warning: exported method List.HasKey should have comment or be unexported (golint)
    • Line 104: warning: exported type RangeOrder should have comment or be unexported (golint)
    • Line 107: warning: exported const Ascending should have comment (or a comment on this block) or be unexported (golint)
    • Line 111: warning: exported type RangeFunc should have comment or be unexported (golint)
    • Line 113: warning: exported method List.Range should have comment or be unexported (golint)
    • bbs/src/rpc/gateway.go
    • Line 11: warning: exported var ErrEmptyInput should have comment or be unexported (golint)
    • Line 14: warning: exported type Gateway should have comment or be unexported (golint)
    • Line 19: warning: exported method Gateway.Quit should have comment or be unexported (golint)
    • Line 32: warning: exported method Gateway.GetMessengerConnections should have comment or be unexported (golint)
    • Line 36: warning: exported method Gateway.NewMessengerConnection should have comment or be unexported (golint)
    • Line 40: warning: exported method Gateway.DeleteMessengerConnection should have comment or be unexported (golint)
    • Line 44: warning: exported method Gateway.Discover should have comment or be unexported (golint)
    • Line 52: warning: exported method Gateway.GetConnections should have comment or be unexported (golint)
    • Line 56: warning: exported method Gateway.NewConnection should have comment or be unexported (golint)
    • Line 60: warning: exported method Gateway.DeleteConnection should have comment or be unexported (golint)
    • Line 68: warning: exported method Gateway.GetSubscriptions should have comment or be unexported (golint)
    • Line 72: warning: exported method Gateway.NewSubscription should have comment or be unexported (golint)
    • Line 76: warning: exported method Gateway.DeleteSubscription should have comment or be unexported (golint)
    • Line 84: warning: exported method Gateway.NewBoard should have comment or be unexported (golint)
    • Line 88: warning: exported method Gateway.DeleteBoard should have comment or be unexported (golint)
    • Line 92: warning: exported method Gateway.ExportBoard should have comment or be unexported (golint)
    • Line 96: warning: exported method Gateway.ImportBoard should have comment or be unexported (golint)
    • Line 104: warning: exported method Gateway.GetBoards should have comment or be unexported (golint)
    • Line 108: warning: exported method Gateway.GetBoard should have comment or be unexported (golint)
    • Line 112: warning: exported method Gateway.GetBoardPage should have comment or be unexported (golint)
    • Line 116: warning: exported method Gateway.GetThreadPage should have comment or be unexported (golint)
    • Line 120: warning: exported method Gateway.GetFollowPage should have comment or be unexported (golint)
    • Line 128: warning: exported method Gateway.NewThread should have comment or be unexported (golint)
    • Line 132: warning: exported method Gateway.NewPost should have comment or be unexported (golint)
    • Line 136: warning: exported method Gateway.VoteThread should have comment or be unexported (golint)
    • Line 140: warning: exported method Gateway.VotePost should have comment or be unexported (golint)
    • Line 144: warning: exported method Gateway.VoteUser should have comment or be unexported (golint)
    • bbs/cmd/v4export/v4export.go
    • Line 17: warning: exported const Version should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported var FlagPort should have comment or be unexported (golint)
    • bbs/src/store/access_prepare.go
    • Line 11: warning: exported type PrepareOut should have comment or be unexported (golint)
    • Line 16: warning: exported type PrepareThreadIn should have comment or be unexported (golint)
    • Line 25: warning: exported method PrepareThreadIn.Process should have comment or be unexported (golint)
    • Line 50: warning: exported type PreparePostIn should have comment or be unexported (golint)
    • Line 62: warning: exported method PreparePostIn.Process should have comment or be unexported (golint)
    • Line 104: warning: exported type PrepareThreadVoteIn should have comment or be unexported (golint)
    • Line 114: warning: exported method PrepareThreadVoteIn.Process should have comment or be unexported (golint)
    • Line 145: warning: exported type PreparePostVoteIn should have comment or be unexported (golint)
    • Line 155: warning: exported method PreparePostVoteIn.Process should have comment or be unexported (golint)
    • Line 186: warning: exported type PrepareUserVoteIn should have comment or be unexported (golint)
    • Line 196: warning: exported method PrepareUserVoteIn.Process should have comment or be unexported (golint)
    • Line 227: warning: exported type FinalizeSubmissionIn should have comment or be unexported (golint)
    • Line 234: warning: exported method FinalizeSubmissionIn.Process should have comment or be unexported (golint)
    • bbs/src/store/state/viewer.go
    • Line 73: 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)
    • Line 115: 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)
    • Line 248: 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)
    • Line 345: warning: exported method Viewer.HasUser should have comment or be unexported (golint)
    • Line 353: warning: exported method Viewer.HasThread should have comment or be unexported (golint)
    • Line 361: warning: exported method Viewer.HasContent should have comment or be unexported (golint)
    • Line 501: warning: exported type UserProfileIn should have comment or be unexported (golint)
    • Line 505: warning: exported type UserProfileOut should have comment or be unexported (golint)
    • Line 510: warning: exported method Viewer.GetUserProfile should have comment or be unexported (golint)
    • Line 530: warning: exported type ParticipantsOut should have comment or be unexported (golint)
    • Line 534: warning: exported method Viewer.GetParticipants should have comment or be unexported (golint)
    • bbs/src/rpc/client.go
    • Line 10: warning: exported function Send should have comment or be unexported (golint)
    • Line 20: 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)
    • Line 26: warning: exported function Do should have comment or be unexported (golint)
    • Line 40: warning: exported function GetMessengerConnections should have comment or be unexported (golint)
    • Line 44: warning: exported function NewMessengerConnection should have comment or be unexported (golint)
    • Line 48: warning: exported function DeleteMessengerConnection should have comment or be unexported (golint)
    • Line 52: warning: exported function Discover should have comment or be unexported (golint)
    • Line 60: warning: exported function GetConnections should have comment or be unexported (golint)
    • Line 64: warning: exported function NewConnection should have comment or be unexported (golint)
    • Line 68: warning: exported function DeleteConnection should have comment or be unexported (golint)
    • Line 76: warning: exported function GetSubscriptions should have comment or be unexported (golint)
    • Line 80: warning: exported function NewSubscription should have comment or be unexported (golint)
    • Line 84: warning: exported function DeleteSubscription should have comment or be unexported (golint)
    • Line 92: warning: exported function NewBoard should have comment or be unexported (golint)
    • Line 96: warning: exported function DeleteBoard should have comment or be unexported (golint)
    • Line 100: warning: exported function ExportBoard should have comment or be unexported (golint)
    • Line 105: warning: exported function ImportBoard should have comment or be unexported (golint)
    • Line 114: warning: exported function GetBoards should have comment or be unexported (golint)
    • Line 118: warning: exported function GetBoard should have comment or be unexported (golint)
    • Line 122: warning: exported function GetBoardPage should have comment or be unexported (golint)
    • Line 126: warning: exported function GetThreadPage should have comment or be unexported (golint)
    • Line 130: warning: exported function GetFollowPage should have comment or be unexported (golint)
    • Line 138: warning: exported function NewThread should have comment or be unexported (golint)
    • Line 142: warning: exported function NewPost should have comment or be unexported (golint)
    • Line 146: warning: exported function VoteThread should have comment or be unexported (golint)
    • Line 150: warning: exported function VotePost should have comment or be unexported (golint)
    • Line 154: warning: exported function VoteUser should have comment or be unexported (golint)
    • bbs/src/store/access.go
    • Line 18: warning: exported type Access should have comment or be unexported (golint)
    • Line 23: warning: exported method Access.PrepareThread should have comment or be unexported (golint)
    • Line 29: 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)
    • Line 37: warning: exported method Access.PreparePost should have comment or be unexported (golint)
    • Line 43: 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)
    • Line 51: warning: exported method Access.PrepareThreadVote should have comment or be unexported (golint)
    • Line 57: 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)
    • Line 65: warning: exported method Access.PreparePostVote should have comment or be unexported (golint)
    • Line 71: 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)
    • Line 79: warning: exported method Access.PrepareUserVote should have comment or be unexported (golint)
    • Line 85: 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)
    • Line 93: warning: exported method Access.FinalizeSubmission should have comment or be unexported (golint)
    • Line 172: warning: exported method Access.GetMessengerConnections should have comment or be unexported (golint)
    • Line 176: warning: exported method Access.NewMessengerConnection should have comment or be unexported (golint)
    • Line 186: warning: exported method Access.DeleteMessengerConnection should have comment or be unexported (golint)
    • Line 196: warning: exported method Access.GetAvailableBoards should have comment or be unexported (golint)
    • Line 204: warning: exported method Access.GetConnections should have comment or be unexported (golint)
    • Line 208: warning: exported method Access.NewConnection should have comment or be unexported (golint)
    • Line 219: warning: exported method Access.DeleteConnection should have comment or be unexported (golint)
    • Line 233: warning: exported method Access.GetSubscriptions should have comment or be unexported (golint)
    • Line 237: warning: exported method Access.NewSubscription should have comment or be unexported (golint)
    • Line 247: warning: exported method Access.DeleteSubscription should have comment or be unexported (golint)
    • Line 261: warning: exported method Access.NewBoard should have comment or be unexported (golint)
    • Line 271: warning: exported method Access.DeleteBoard should have comment or be unexported (golint)
    • Line 283: warning: exported method Access.ExportBoard should have comment or be unexported (golint)
    • Line 298: warning: exported method Access.ImportBoard should have comment or be unexported (golint)
    • Line 316: warning: exported method Access.GetBoards should have comment or be unexported (golint)
    • Line 324: warning: exported method Access.GetBoard should have comment or be unexported (golint)
    • Line 339: warning: exported method Access.GetBoardPage should have comment or be unexported (golint)
    • Line 353: warning: exported method Access.NewThread should have comment or be unexported (golint)
    • Line 382: warning: exported method Access.GetThreadPage should have comment or be unexported (golint)
    • Line 397: warning: exported method Access.NewPost should have comment or be unexported (golint)
    • Line 426: warning: exported method Access.GetParticipants should have comment or be unexported (golint)
    • Line 441: warning: exported method Access.GetFollowPage should have comment or be unexported (golint)
    • Line 454: warning: exported method Access.VoteUser should have comment or be unexported (golint)
    • Line 481: warning: exported method Access.VoteThread should have comment or be unexported (golint)
    • Line 509: warning: exported method Access.VotePost should have comment or be unexported (golint)
    • bbs/src/store/state/viewer_profile.go
    • Line 3: warning: exported type Profile should have comment or be unexported (golint)
    • Line 13: warning: exported function NewProfile should have comment or be unexported (golint)
    • Line 24: warning: exported type ProfileView should have comment or be unexported (golint)
    • Line 40: warning: exported method Profile.View should have comment or be unexported (golint)
    • Line 95: warning: exported method Profile.ClearVotesFor should have comment or be unexported (golint)
    • Line 101: warning: exported method Profile.ClearVotesBy should have comment or be unexported (golint)
    • bbs/src/misc/typ/paginated.go
    • Line 7: warning: exported type PaginatedCreator should have comment or be unexported (golint)
    • Line 9: warning: exported type Paginated should have comment or be unexported (golint)
    • Line 17: warning: exported type PaginatedInput should have comment or be unexported (golint)
    • Line 23: warning: exported type PaginatedOutput should have comment or be unexported (golint)
    • Line 31: warning: exported function NewPaginatedOutput should have comment or be unexported (golint)
    • bbs/src/misc/tag/access.go
    • Line 16: warning: exported type GenerateSeedOut should have comment or be unexported (golint)
    • Line 20: warning: exported function GenerateSeed should have comment or be unexported (golint)
    • Line 34: warning: exported type GenerateKeyPairIn should have comment or be unexported (golint)
    • Line 38: warning: exported type GenerateKeyPairOut should have comment or be unexported (golint)
    • Line 44: warning: exported function GenerateKeyPair should have comment or be unexported (golint)
    • Line 62: warning: exported type SumSHA256In should have comment or be unexported (golint)
    • Line 66: warning: exported type SumSHA256Out should have comment or be unexported (golint)
    • Line 71: warning: exported function SumSHA256 should have comment or be unexported (golint)
    • Line 78: warning: exported type SignHashIn should have comment or be unexported (golint)
    • Line 83: warning: exported type SignHashOut should have comment or be unexported (golint)
    • Line 88: warning: exported function SignHash should have comment or be unexported (golint)
    • bbs/src/http/gateway.go
    • Line 94: warning: exported type Error should have comment or be unexported (golint)
    • Line 100: warning: exported type Response should have comment or be unexported (golint)
    • bbs/src/store/medial/server.go
    • Line 11: warning: exported type Item should have comment or be unexported (golint)
    • Line 17: warning: exported method Item.IsTimedOut should have comment or be unexported (golint)
    • Line 21: warning: exported type ServerConfig should have comment or be unexported (golint)
    • Line 26: warning: exported type Server should have comment or be unexported (golint)
    • Line 34: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 49: warning: exported method Server.Close should have comment or be unexported (golint)
    • Line 85: warning: exported method Server.Add should have comment or be unexported (golint)
    • Line 102: warning: exported method Server.Satisfy should have comment or be unexported (golint)
    • Line 108: 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)
    • bbs/src/accord/incomplete.go
    • Line 9: warning: exported type Elem should have comment or be unexported (golint)
    • Line 14: warning: exported type Incomplete should have comment or be unexported (golint)
    • Line 19: warning: exported function NewIncomplete should have comment or be unexported (golint)
    • Line 25: warning: exported method Incomplete.Add should have comment or be unexported (golint)
    • Line 37: warning: exported method Incomplete.Remove should have comment or be unexported (golint)
    • Line 46: warning: exported method Incomplete.Satisfy should have comment or be unexported (golint)
    • bbs/src/store/cxo/manager.go
    • Line 30: warning: exported const LogPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 333: warning: exported method Manager.ConnectToMessenger should have comment or be unexported (golint)
    • Line 340: warning: exported method Manager.DisconnectFromMessenger should have comment or be unexported (golint)
    • Line 354: warning: exported method Manager.GetMessengers should have comment or be unexported (golint)
    • Line 370: warning: exported method Manager.SubmitToRemote should have comment or be unexported (golint)
    • Line 426: warning: exported method Manager.GetAvailableBoards should have comment or be unexported (golint)
    • Line 450: warning: exported method Manager.GetActiveConnections should have comment or be unexported (golint)
    • Line 462: warning: exported method Manager.GetSavedConnections should have comment or be unexported (golint)
    • Line 480: warning: exported method Manager.Connect should have comment or be unexported (golint)
    • Line 499: warning: exported method Manager.Disconnect should have comment or be unexported (golint)
    • Line 522: warning: exported method Manager.GetSubscriptions should have comment or be unexported (golint)
    • Line 527: warning: exported method Manager.SubscribeRemote should have comment or be unexported (golint)
    • Line 535: warning: exported method Manager.SubscribeMaster should have comment or be unexported (golint)
    • Line 550: warning: exported method Manager.UnsubscribeRemote should have comment or be unexported (golint)
    • Line 562: warning: exported method Manager.UnsubscribeMaster should have comment or be unexported (golint)
    • Line 583: warning: exported method Manager.GetBoardInstance should have comment or be unexported (golint)
    • Line 587: warning: exported method Manager.GetBoards should have comment or be unexported (golint)
    • Line 622: warning: exported method Manager.NewBoard should have comment or be unexported (golint)
    • Line 633: 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)
    • Line 647: warning: exported method Manager.ExportBoard should have comment or be unexported (golint)
    • Line 660: warning: exported method Manager.ImportBoard should have comment or be unexported (golint)
    • bbs/src/misc/tag/get.go
    • Line 68: warning: exported function GetVoteValue should have comment or be unexported (golint)
    • Line 81: warning: exported function GetTags should have comment or be unexported (golint)
    • bbs/src/store/object/cxo_file_manager.go
    • Line 68: warning: exported method CXOFileManager.EnsureBashAutoComplete should have comment or be unexported (golint)
    • Line 87: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 301: warning: exported method CXOFileManager.UnsafeSetMessengerPK should have comment or be unexported (golint)
    • Line 314: 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)
    • Line 319: warning: exported method CXOFileManager.GetMessengersLen should have comment or be unexported (golint)
    • Line 376: 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)
    • bbs/cmd/bbscli/bbscli.go
    • Line 14: warning: exported const Version should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported var Port should have comment or be unexported (golint)
    • Line 25: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bbs/src/accord/types.go
    • Line 18: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 48: warning: exported function NewWrapper should have comment or be unexported (golint)
    • Line 74: warning: exported method Wrapper.GetFromPK should have comment or be unexported (golint)
    • Line 79: warning: exported method Wrapper.GetToPK should have comment or be unexported (golint)
    • Line 84: warning: exported method Wrapper.GetType should have comment or be unexported (golint)
    • Line 88: warning: exported method Wrapper.GetBody should have comment or be unexported (golint)
    • Line 92: warning: exported method Wrapper.ToSubmission should have comment or be unexported (golint)
    • Line 100: warning: exported method Wrapper.ToSubmissionResponse should have comment or be unexported (golint)
    • Line 114: warning: exported method Submission.GetHash should have comment or be unexported (golint)
    • Line 118: warning: exported method Submission.ToTransport should have comment or be unexported (golint)
    • Line 131: warning: exported function NewSubmissionResponse should have comment or be unexported (golint)
    • Line 138: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 148: warning: exported method SubmissionResponse.Serialize should have comment or be unexported (golint)
    • Line 155: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bbs/src/accord/relay.go
    • Line 19: warning: exported const LogPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type Relay should have comment or be unexported (golint)
    • Line 33: warning: exported function NewRelay should have comment or be unexported (golint)
    • Line 43: warning: exported method Relay.Open should have comment or be unexported (golint)
    • Line 48: warning: exported method Relay.Close should have comment or be unexported (golint)
    • Line 53: warning: exported method Relay.Connect should have comment or be unexported (golint)
    • Line 61: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 66: warning: exported method Relay.Disconnect should have comment or be unexported (golint)
    • Line 148: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 171: warning: exported method Relay.SubmitToRemote should have comment or be unexported (golint)
    • Line 215: warning: exported method Relay.SubmissionKeys should have comment or be unexported (golint)
    • Line 228: warning: exported method Relay.Disconnections should have comment or be unexported (golint)
    • bbs/src/store/object/cxo_file.go
    • Line 7: warning: exported type SubscriptionView should have comment or be unexported (golint)
    • Line 12: warning: exported type Subscription should have comment or be unexported (golint)
    • Line 17: warning: exported method Subscription.View should have comment or be unexported (golint)
    • Line 22: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 30: warning: exported type CXOFile should have comment or be unexported (golint)
    • bbs/src/store/object/cxo_types.go
    • Line 15: warning: exported const RootPageName should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported const IndexRootPage should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported type Pages should have comment or be unexported (golint)
    • Line 51: warning: exported type PagesJSON should have comment or be unexported (golint)
    • Line 60: warning: exported function NewPages should have comment or be unexported (golint)
    • Line 82: warning: exported method PagesJSON.GetPubKey should have comment or be unexported (golint)
    • Line 87: warning: exported method PagesJSON.GetSecKey should have comment or be unexported (golint)
    • Line 92: warning: exported type GetPagesIn should have comment or be unexported (golint)
    • Line 99: warning: exported function GetPages should have comment or be unexported (golint)
    • Line 124: warning: exported method Pages.Save should have comment or be unexported (golint)
    • Line 143: warning: exported method Pages.ToJSON should have comment or be unexported (golint)
    • Line 167: warning: exported const RootTypeBoard should have comment (or a comment on this block) or be unexported (golint)
    • Line 178: warning: exported function GetRootPage should have comment or be unexported (golint)
    • Line 195: warning: exported type BoardPage should have comment or be unexported (golint)
    • Line 200: warning: exported type BoardPageJSON should have comment or be unexported (golint)
    • Line 205: warning: exported function NewBoardPage should have comment or be unexported (golint)
    • Line 223: warning: exported function GetBoardPage should have comment or be unexported (golint)
    • Line 235: warning: exported method BoardPage.Save should have comment or be unexported (golint)
    • Line 242: warning: exported method BoardPage.GetBoard should have comment or be unexported (golint)
    • Line 250: warning: exported method BoardPage.GetThreadCount should have comment or be unexported (golint)
    • Line 255: warning: exported method BoardPage.RangeThreadPages should have comment or be unexported (golint)
    • Line 265: warning: exported method BoardPage.GetThreadPage should have comment or be unexported (golint)
    • Line 281: warning: exported method BoardPage.AddThread should have comment or be unexported (golint)
    • Line 289: warning: exported method BoardPage.ToJSON should have comment or be unexported (golint)
    • Line 308: warning: exported type ThreadPage should have comment or be unexported (golint)
    • Line 313: warning: exported type ThreadPageJSON should have comment or be unexported (golint)
    • Line 318: warning: exported function NewThreadPage should have comment or be unexported (golint)
    • Line 332: warning: exported function GetThreadPage should have comment or be unexported (golint)
    • Line 344: warning: exported method ThreadPage.GetThread should have comment or be unexported (golint)
    • Line 352: warning: exported method ThreadPage.GetPostCount should have comment or be unexported (golint)
    • Line 357: warning: exported method ThreadPage.RangePosts should have comment or be unexported (golint)
    • Line 367: warning: exported method ThreadPage.AddPost should have comment or be unexported (golint)
    • Line 379: warning: exported method ThreadPage.Save should have comment or be unexported (golint)
    • Line 386: warning: exported method ThreadPage.ToJSON should have comment or be unexported (golint)
    • Line 405: warning: exported type DiffPage should have comment or be unexported (golint)
    • Line 409: warning: exported type DiffPageJSON should have comment or be unexported (golint)
    • Line 413: warning: exported type Changes should have comment or be unexported (golint)
    • Line 419: warning: exported function NewDiffPage should have comment or be unexported (golint)
    • Line 430: warning: exported function GetDiffPage should have comment or be unexported (golint)
    • Line 442: warning: exported method DiffPage.Save should have comment or be unexported (golint)
    • Line 449: warning: exported method DiffPage.Add should have comment or be unexported (golint)
    • Line 457: warning: exported method DiffPage.GetOfIndex should have comment or be unexported (golint)
    • Line 465: warning: exported method DiffPage.GetChanges should have comment or be unexported (golint)
    • Line 499: warning: exported method DiffPage.ToJSON should have comment or be unexported (golint)
    • Line 520: warning: exported type UsersPage should have comment or be unexported (golint)
    • Line 524: warning: exported type UsersPageJSON should have comment or be unexported (golint)
    • Line 528: warning: exported function NewUsersPage should have comment or be unexported (golint)
    • Line 543: warning: exported function GetUsersPage should have comment or be unexported (golint)
    • Line 555: warning: exported method UsersPage.GetUsersLen should have comment or be unexported (golint)
    • Line 560: warning: exported method UsersPage.Save should have comment or be unexported (golint)
    • Line 567: warning: exported method UsersPage.NewUserProfile should have comment or be unexported (golint)
    • Line 575: warning: exported method UsersPage.AddUserSubmission should have comment or be unexported (golint)
    • Line 596: warning: exported method UsersPage.RangeUserProfiles should have comment or be unexported (golint)
    • Line 606: warning: exported method UsersPage.ToJSON should have comment or be unexported (golint)
    • Line 630: warning: exported type UserProfile should have comment or be unexported (golint)
    • Line 636: warning: exported type UserProfileJSON should have comment or be unexported (golint)
    • Line 641: warning: exported function NewUserProfile should have comment or be unexported (golint)
    • Line 654: warning: exported function GetUserProfile should have comment or be unexported (golint)
    • Line 667: warning: exported method UserProfile.GetSubmissionsLen should have comment or be unexported (golint)
    • Line 672: warning: exported method UserProfile.RangeSubmissions should have comment or be unexported (golint)
    • Line 682: warning: exported method UserProfile.ToJSON should have comment or be unexported (golint)
    • Line 698: warning: exported type User should have comment or be unexported (golint)
    • Line 704: warning: exported type UserView should have comment or be unexported (golint)
    • Line 714: warning: exported type Connection should have comment or be unexported (golint)
    • Line 719: warning: exported type MessengerConnection should have comment or be unexported (golint)
    • Line 726: warning: exported type MessengerSubKeyTransport should have comment or be unexported (golint)
    • Line 731: warning: exported method MessengerSubKeyTransport.ToMessengerSubKey should have comment or be unexported (golint)
    • Line 735: warning: exported type MessengerSubKey should have comment or be unexported (golint)
    • Line 737: warning: exported function NewMessengerSubKey should have comment or be unexported (golint)
    • Line 742: warning: exported method MessengerSubKey.IsValid should have comment or be unexported (golint)
    • Line 753: warning: exported method MessengerSubKey.Address should have comment or be unexported (golint)
    • Line 757: warning: exported method MessengerSubKey.PubKey should have comment or be unexported (golint)
    • Line 762: warning: exported method MessengerSubKey.ToTransport should have comment or be unexported (golint)
    • Line 768: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bbs/src/store/state/compiler.go
    • Line 18: warning: exported const LogPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 151: warning: exported method Compiler.DeleteBoard should have comment or be unexported (golint)
    • Line 164: warning: exported method Compiler.GetBoard should have comment or be unexported (golint)
    • Line 182: warning: exported method Compiler.UpdateBoard should have comment or be unexported (golint)
    • Line 186: warning: exported method Compiler.UpdateBoardWithContext should have comment or be unexported (golint)
    • Line 197: warning: exported method Compiler.GetMasterSummaries should have comment or be unexported (golint)
    • Line 214: warning: exported method Compiler.RangeMasterSubs should have comment or be unexported (golint)
    • bbs/src/store/state/headers.go
    • Line 15: warning: exported type Headers should have comment or be unexported (golint)
    • Line 26: warning: exported function NewHeaders should have comment or be unexported (golint)
    • Line 90: warning: exported method Headers.GetRootSeq should have comment or be unexported (golint)
    • Line 94: warning: exported method Headers.GetChanges should have comment or be unexported (golint)
    • Line 98: warning: exported method Headers.GetThreadPageHash should have comment or be unexported (golint)
    • Line 105: warning: exported method Headers.GetUserProfileHash should have comment or be unexported (golint)
    • Line 112: warning: exported method Headers.SetUser should have comment or be unexported (golint)
    • Line 118: warning: exported method Headers.SetThread should have comment or be unexported (golint)
    • Line 129: warning: exported method Headers.RangeThreads should have comment or be unexported (golint)
    • bbs/src/store/state/viewer_votes.go
    • Line 8: warning: exported type VotesRep should have comment or be unexported (golint)
    • Line 22: warning: exported method VotesRep.GetValue should have comment or be unexported (golint)
    • Line 35: warning: exported method VotesRep.Fill should have comment or be unexported (golint)
    • Line 42: warning: exported method VotesRep.Add should have comment or be unexported (golint)
    • Line 64: warning: exported type X should have comment or be unexported (golint)
    • Line 69: warning: exported type VoteRepView should have comment or be unexported (golint)
    • Line 75: warning: exported method VotesRep.View should have comment or be unexported (golint)
    • bbs/src/misc/typ/paginatedtypes/mapped.go
    • Line 5: warning: exported function NewMapped should have comment or be unexported (golint)
    • Line 11: warning: exported type Mapped should have comment or be unexported (golint)
    • Line 16: warning: exported method Mapped.Append should have comment or be unexported (golint)
    • Line 24: warning: exported method Mapped.Has should have comment or be unexported (golint)
    • Line 29: warning: exported method Mapped.Get should have comment or be unexported (golint)
    • Line 48: warning: exported method Mapped.Len should have comment or be unexported (golint)
    • Line 52: warning: exported method Mapped.Clear should have comment or be unexported (golint)
    • bbs/src/misc/typ/bool.go
    • Line 5: warning: exported type Bool should have comment or be unexported (golint)
    • Line 10: warning: exported method Bool.Set should have comment or be unexported (golint)
    • Line 16: warning: exported method Bool.Clear should have comment or be unexported (golint)
    • Line 22: warning: exported method Bool.Value should have comment or be unexported (golint)
    • bbs/src/rpc/server.go
    • Line 17: warning: exported type ServerConfig should have comment or be unexported (golint)
    • Line 22: warning: exported type Server should have comment or be unexported (golint)
    • Line 31: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 60: warning: exported method Server.Close should have comment or be unexported (golint)
    • bbs/src/store/access_out.go
    • Line 10: warning: exported type SubmissionOut should have comment or be unexported (golint)
    • Line 15: warning: exported type MessengersOut should have comment or be unexported (golint)
    • Line 25: warning: exported type AvailableBoardsOut should have comment or be unexported (golint)
    • Line 39: warning: exported type ConnectionsOut should have comment or be unexported (golint)
    • Line 51: warning: exported type SubscriptionsOut should have comment or be unexported (golint)
    • Line 65: warning: exported type BoardsOut should have comment or be unexported (golint)
    • Line 77: warning: exported type BoardOut should have comment or be unexported (golint)
    • Line 87: warning: exported type ExportBoardOut should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!