Preparing report...

Report for github.com/phoreproject/openbazaar-go

A+    Excellent!    Found 158 issues across 233 files

Tweet

gofmt99%

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!


golint45%

Golint is a linter for Go source code.

    • openbazaar-go/cmd/encrypt.go
    • Line 20: warning: exported type EncryptDatabase should have comment or be unexported (golint)
    • Line 24: warning: exported method EncryptDatabase.Execute should have comment or be unexported (golint)
    • openbazaar-go/net/tor.go
    • Line 17: warning: comment on exported function GetTorControlPort should be of the form "GetTorControlPort ..." (golint)
    • Line 32: warning: comment on exported function CreateHiddenServiceKey should be of the form "CreateHiddenServiceKey ..." (golint)
    • Line 62: warning: comment on exported function MaybeCreateHiddenServiceKey should be of the form "MaybeCreateHiddenServiceKey ..." (golint)
    • openbazaar-go/wallet/listeners/wallet_listener.go
    • Line 9: warning: exported type WalletListener should have comment or be unexported (golint)
    • Line 15: warning: exported function NewWalletListener should have comment or be unexported (golint)
    • Line 20: warning: exported method WalletListener.OnTransactionReceived should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration019.go
    • Line 31: warning: exported type ListingData should have comment or be unexported (golint)
    • Line 55: warning: exported method Migration019.Up should have comment or be unexported (golint)
    • Line 81: warning: exported method Migration019.Down should have comment or be unexported (golint)
    • openbazaar-go/net/stun.go
    • Line 12: warning: exported var STUN_SERVERS should have comment or be unexported (golint)
    • Line 21: warning: exported var STUN_PORT should have comment or be unexported (golint)
    • Line 25: warning: don't use underscores in Go names; const _NATType_name should be _NATTypeName (golint)
    • Line 27: warning: don't use underscores in Go names; var _NATType_index should be _NATTypeIndex (golint)
    • Line 31: warning: exported function Stun should have comment or be unexported (golint)
    • Line 45: warning: exported function NATtoString should have comment or be unexported (golint)
    • Line 52: warning: exported function Shuffle should have comment or be unexported (golint)
    • openbazaar-go/net/retriever/retriever.go
    • Line 33: warning: exported const DefaultPointerPrefixLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type MRConfig should have comment or be unexported (golint)
    • Line 52: warning: exported type MessageRetriever should have comment or be unexported (golint)
    • Line 74: warning: exported function NewMessageRetriever should have comment or be unexported (golint)
    • Line 103: warning: exported method MessageRetriever.Run should have comment or be unexported (golint)
    • Line 406: warning: exported var MessageProcessingOrder should have comment or be unexported (golint)
    • openbazaar-go/ipfs/dag.go
    • Line 15: warning: comment on exported function FetchGraph should be of the form "FetchGraph ..." (golint)
    • Line 48: warning: exported function RemoveAll should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration006.go
    • Line 12: warning: exported type Migration006 should have comment or be unexported (golint)
    • Line 14: warning: don't use underscores in Go names; type Migration006_configRecord should be Migration006ConfigRecord (golint)
    • Line 14: warning: exported type Migration006_configRecord should have comment or be unexported (golint)
    • Line 18: warning: don't use underscores in Go names; type Migration006_price should be Migration006Price (golint)
    • Line 18: warning: exported type Migration006_price should have comment or be unexported (golint)
    • Line 22: warning: don't use underscores in Go names; type Migration006_thumbnail should be Migration006Thumbnail (golint)
    • Line 22: warning: exported type Migration006_thumbnail should have comment or be unexported (golint)
    • Line 28: warning: don't use underscores in Go names; type Migration006_listingDataBeforeMigration should be Migration006ListingDataBeforeMigration (golint)
    • Line 28: warning: exported type Migration006_listingDataBeforeMigration should have comment or be unexported (golint)
    • Line 45: warning: don't use underscores in Go names; type Migration006_listingDataAfterMigration should be Migration006ListingDataAfterMigration (golint)
    • Line 45: warning: exported type Migration006_listingDataAfterMigration should have comment or be unexported (golint)
    • Line 65: warning: exported method Migration006.Up should have comment or be unexported (golint)
    • Line 165: warning: exported method Migration006.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/db/db.go
    • Line 10: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 19: warning: exported type SQLiteDatastore should have comment or be unexported (golint)
    • Line 44: warning: exported function Create should have comment or be unexported (golint)
    • Line 63: warning: exported function NewSQLiteDatastore should have comment or be unexported (golint)
    • Line 90: warning: exported type DB should have comment or be unexported (golint)
    • Line 95: warning: exported method SQLiteDatastore.DB should have comment or be unexported (golint)
    • Line 99: warning: exported method SQLiteDatastore.Ping should have comment or be unexported (golint)
    • Line 103: warning: exported method SQLiteDatastore.Close should have comment or be unexported (golint)
    • Line 107: warning: exported method SQLiteDatastore.Config should have comment or be unexported (golint)
    • Line 111: warning: exported method SQLiteDatastore.Followers should have comment or be unexported (golint)
    • Line 115: warning: exported method SQLiteDatastore.Following should have comment or be unexported (golint)
    • Line 119: warning: exported method SQLiteDatastore.OfflineMessages should have comment or be unexported (golint)
    • Line 123: warning: exported method SQLiteDatastore.Pointers should have comment or be unexported (golint)
    • Line 127: warning: exported method SQLiteDatastore.Keys should have comment or be unexported (golint)
    • Line 131: warning: exported method SQLiteDatastore.Stxos should have comment or be unexported (golint)
    • Line 135: warning: exported method SQLiteDatastore.Txns should have comment or be unexported (golint)
    • Line 139: warning: exported method SQLiteDatastore.Utxos should have comment or be unexported (golint)
    • Line 143: warning: exported method SQLiteDatastore.Settings should have comment or be unexported (golint)
    • Line 147: warning: exported method SQLiteDatastore.Inventory should have comment or be unexported (golint)
    • Line 151: warning: exported method SQLiteDatastore.Purchases should have comment or be unexported (golint)
    • Line 155: warning: exported method SQLiteDatastore.Sales should have comment or be unexported (golint)
    • Line 159: warning: exported method SQLiteDatastore.WatchedScripts should have comment or be unexported (golint)
    • Line 163: warning: exported method SQLiteDatastore.Cases should have comment or be unexported (golint)
    • Line 167: warning: exported method SQLiteDatastore.Chat should have comment or be unexported (golint)
    • Line 171: warning: exported method SQLiteDatastore.Notifications should have comment or be unexported (golint)
    • Line 175: warning: exported method SQLiteDatastore.Coupons should have comment or be unexported (golint)
    • Line 179: warning: exported method SQLiteDatastore.TxMetadata should have comment or be unexported (golint)
    • Line 183: warning: exported method SQLiteDatastore.ModeratedStores should have comment or be unexported (golint)
    • Line 187: warning: exported method SQLiteDatastore.Copy should have comment or be unexported (golint)
    • Line 225: warning: exported method SQLiteDatastore.InitTables should have comment or be unexported (golint)
    • Line 225: warning: receiver name s should be consistent with previous receiver name d for SQLiteDatastore (golint)
    • Line 234: warning: exported type ConfigDB should have comment or be unexported (golint)
    • Line 239: warning: exported method ConfigDB.Init should have comment or be unexported (golint)
    • Line 273: warning: exported method ConfigDB.GetMnemonic should have comment or be unexported (golint)
    • Line 289: warning: exported method ConfigDB.GetIdentityKey should have comment or be unexported (golint)
    • Line 305: warning: exported method ConfigDB.GetCreationDate should have comment or be unexported (golint)
    • Line 322: warning: exported method ConfigDB.IsEncrypted should have comment or be unexported (golint)
    • openbazaar-go/net/repointer/repointer.go
    • Line 19: warning: exported type PointerRepublisher should have comment or be unexported (golint)
    • Line 26: warning: exported function NewPointerRepublisher should have comment or be unexported (golint)
    • Line 35: warning: exported method PointerRepublisher.Run should have comment or be unexported (golint)
    • Line 44: warning: exported method PointerRepublisher.Republish should have comment or be unexported (golint)
    • openbazaar-go/test/factory/contract.go
    • Line 12: warning: exported function NewContract should have comment or be unexported (golint)
    • Line 52: warning: exported function NewDisputeableContract should have comment or be unexported (golint)
    • Line 67: warning: exported function NewUndisputeableContract should have comment or be unexported (golint)
    • Line 74: warning: exported function NewDisputedContract should have comment or be unexported (golint)
    • openbazaar-go/net/networkservice.go
    • Line 14: warning: error var OutOfOrderMessage should have name of the form ErrFoo (golint)
    • Line 14: warning: exported var OutOfOrderMessage should have comment or be unexported (golint)
    • Line 15: warning: error var DuplicateMessage should have name of the form ErrFoo (golint)
    • Line 18: warning: exported type NetworkService should have comment or be unexported (golint)
    • openbazaar-go/core/listings.go
    • Line 107: warning: exported var ErrShippingRegionMustBeSet should have comment or be unexported (golint)
    • Line 1213: warning: exported function ValidShippingRegion should have comment or be unexported (golint)
    • openbazaar-go/wallet/status.go
    • Line 12: warning: exported type StatusUpdater should have comment or be unexported (golint)
    • Line 28: warning: context.Context should be the first parameter of a function (golint)
    • Line 28: warning: exported function NewStatusUpdater should have comment or be unexported (golint)
    • Line 32: warning: exported method StatusUpdater.Start should have comment or be unexported (golint)
    • openbazaar-go/repo/db/keys.go
    • Line 16: warning: exported type KeysDB should have comment or be unexported (golint)
    • Line 21: warning: exported function NewKeyStore should have comment or be unexported (golint)
    • Line 25: warning: exported method KeysDB.Put should have comment or be unexported (golint)
    • Line 46: warning: exported method KeysDB.ImportKey should have comment or be unexported (golint)
    • Line 67: warning: exported method KeysDB.MarkKeyAsUsed should have comment or be unexported (golint)
    • Line 89: warning: exported method KeysDB.GetLastKeyIndex should have comment or be unexported (golint)
    • Line 109: warning: exported method KeysDB.GetPathForKey should have comment or be unexported (golint)
    • Line 131: warning: exported method KeysDB.GetKey should have comment or be unexported (golint)
    • Line 153: warning: exported method KeysDB.GetImported should have comment or be unexported (golint)
    • Line 179: warning: exported method KeysDB.GetUnused should have comment or be unexported (golint)
    • Line 200: warning: exported method KeysDB.GetAll should have comment or be unexported (golint)
    • Line 225: warning: exported method KeysDB.GetLookaheadWindows should have comment or be unexported (golint)
    • openbazaar-go/repo/sale_record.go
    • Line 11: warning: don't use underscores in Go names; var VendorDisputeTimeout_lastInterval should be VendorDisputeTimeoutLastInterval (golint)
    • Line 11: warning: exported var VendorDisputeTimeout_lastInterval should have comment or be unexported (golint)
    • openbazaar-go/repo/db/following.go
    • Line 11: warning: exported type FollowingDB should have comment or be unexported (golint)
    • Line 15: warning: exported function NewFollowingStore should have comment or be unexported (golint)
    • Line 19: warning: exported method FollowingDB.Put should have comment or be unexported (golint)
    • Line 34: warning: exported method FollowingDB.Get should have comment or be unexported (golint)
    • Line 57: warning: exported method FollowingDB.Delete should have comment or be unexported (golint)
    • Line 67: warning: exported method FollowingDB.Count should have comment or be unexported (golint)
    • Line 76: warning: exported method FollowingDB.IsFollowing should have comment or be unexported (golint)
    • openbazaar-go/cmd/restore.go
    • Line 49: warning: exported type Restore should have comment or be unexported (golint)
    • Line 59: warning: exported method Restore.Execute should have comment or be unexported (golint)
    • Line 284: warning: exported function RestoreFile should have comment or be unexported (golint)
    • Line 298: warning: exported function RestoreDirectory should have comment or be unexported (golint)
    • Line 350: warning: exported function PrintError should have comment or be unexported (golint)
    • openbazaar-go/core/utils.go
    • Line 23: warning: comment on exported function EncodeCID should be of the form "EncodeCID ..." (golint)
    • Line 156: warning: exported method OpenBazaarNode.ValidateMultiwalletHasPreferredCurrencies should have comment or be unexported (golint)
    • openbazaar-go/net/service/service.go
    • Line 28: warning: exported type OpenBazaarService should have comment or be unexported (golint)
    • Line 40: warning: exported function New should have comment or be unexported (golint)
    • Line 56: warning: exported method OpenBazaarService.WaitForReady should have comment or be unexported (golint)
    • Line 60: warning: exported method OpenBazaarService.DisconnectFromPeer should have comment or be unexported (golint)
    • Line 75: warning: exported method OpenBazaarService.HandleNewStream should have comment or be unexported (golint)
    • Line 167: warning: exported method OpenBazaarService.SendRequest should have comment or be unexported (golint)
    • Line 189: warning: exported method OpenBazaarService.SendMessage should have comment or be unexported (golint)
    • openbazaar-go/wallet/resync/resync_manager.go
    • Line 14: warning: exported var ResyncInterval should have comment or be unexported (golint)
    • Line 16: warning: exported type ResyncManager should have comment or be unexported (golint)
    • Line 21: warning: exported function NewResyncManager should have comment or be unexported (golint)
    • Line 25: warning: exported method ResyncManager.Start should have comment or be unexported (golint)
    • Line 32: warning: exported method ResyncManager.CheckUnfunded should have comment or be unexported (golint)
    • openbazaar-go/ipfs/cat.go
    • Line 21: warning: comment on exported function Cat should be of the form "Cat ..." (golint)
    • Line 51: warning: exported function ResolveThenCat should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration003.go
    • Line 11: warning: exported type Migration003 should have comment or be unexported (golint)
    • Line 13: warning: exported method Migration003.Up should have comment or be unexported (golint)
    • Line 53: warning: exported method Migration003.Down should have comment or be unexported (golint)
    • openbazaar-go/bitcoin/phored/wallet.go
    • Line 225: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 245: warning: exported method RPCWallet.ChildKey should have comment or be unexported (golint)
    • Line 437: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 443: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 478: warning: exported method RPCWallet.AddWatchedAddress should have comment or be unexported (golint)
    • Line 1128: warning: exported type ReceivedTx should have comment or be unexported (golint)
    • openbazaar-go/ipfs/caching_router.go
    • Line 16: warning: exported var ErrCachingRouterIncorrectRoutingType should have comment or be unexported (golint)
    • Line 19: warning: exported type CachingRouter should have comment or be unexported (golint)
    • Line 24: warning: exported function NewCachingRouter should have comment or be unexported (golint)
    • Line 31: warning: exported method CachingRouter.DHT should have comment or be unexported (golint)
    • Line 39: warning: exported method CachingRouter.APIRouter should have comment or be unexported (golint)
    • Line 43: warning: exported method CachingRouter.PutValue should have comment or be unexported (golint)
    • Line 57: warning: exported method CachingRouter.GetValue should have comment or be unexported (golint)
    • Line 75: warning: exported method CachingRouter.GetPublicKey should have comment or be unexported (golint)
    • Line 82: warning: exported method CachingRouter.SearchValue should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration011.go
    • Line 14: warning: exported type Migration011 should have comment or be unexported (golint)
    • Line 16: warning: don't use underscores in Go names; type Migration011_listing should be Migration011Listing (golint)
    • Line 16: warning: exported type Migration011_listing should have comment or be unexported (golint)
    • Line 19: warning: don't use underscores in Go names; type Migration011_listing_listing should be Migration011ListingListing (golint)
    • Line 19: warning: exported type Migration011_listing_listing should have comment or be unexported (golint)
    • Line 23: warning: exported method Migration011.Up should have comment or be unexported (golint)
    • Line 86: warning: exported method Migration011.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/notification.go
    • Line 64: warning: exported method Notification.GetID should have comment or be unexported (golint)
    • Line 65: warning: exported method Notification.GetTypeString should have comment or be unexported (golint)
    • Line 66: warning: exported method Notification.GetType should have comment or be unexported (golint)
    • Line 72: warning: exported method Notification.GetUnixCreatedAt should have comment or be unexported (golint)
    • Line 73: warning: exported method Notification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 76: warning: exported method Notification.Data should have comment or be unexported (golint)
    • Line 77: warning: exported method Notification.WebsocketData should have comment or be unexported (golint)
    • Line 86: warning: exported method Notification.MarshalJSON should have comment or be unexported (golint)
    • Line 100: warning: exported method Notification.UnmarshalJSON should have comment or be unexported (golint)
    • Line 377: warning: exported type Thumbnail should have comment or be unexported (golint)
    • Line 402: warning: exported type ListingPrice should have comment or be unexported (golint)
    • Line 409: warning: exported type OrderNotification should have comment or be unexported (golint)
    • Line 422: warning: exported method OrderNotification.Data should have comment or be unexported (golint)
    • Line 425: warning: exported method OrderNotification.WebsocketData should have comment or be unexported (golint)
    • Line 428: warning: exported method OrderNotification.GetID should have comment or be unexported (golint)
    • Line 429: warning: exported method OrderNotification.GetType should have comment or be unexported (golint)
    • Line 430: warning: exported method OrderNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 441: warning: exported type PaymentNotification should have comment or be unexported (golint)
    • Line 449: warning: exported method PaymentNotification.Data should have comment or be unexported (golint)
    • Line 452: warning: exported method PaymentNotification.WebsocketData should have comment or be unexported (golint)
    • Line 455: warning: exported method PaymentNotification.GetID should have comment or be unexported (golint)
    • Line 456: warning: exported method PaymentNotification.GetType should have comment or be unexported (golint)
    • Line 457: warning: exported method PaymentNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 462: warning: exported type OrderConfirmationNotification should have comment or be unexported (golint)
    • Line 471: warning: exported method OrderConfirmationNotification.Data should have comment or be unexported (golint)
    • Line 474: warning: exported method OrderConfirmationNotification.WebsocketData should have comment or be unexported (golint)
    • Line 477: warning: exported method OrderConfirmationNotification.GetID should have comment or be unexported (golint)
    • Line 478: warning: exported method OrderConfirmationNotification.GetType should have comment or be unexported (golint)
    • Line 481: warning: exported method OrderConfirmationNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 486: warning: exported type OrderDeclinedNotification should have comment or be unexported (golint)
    • Line 495: warning: exported method OrderDeclinedNotification.Data should have comment or be unexported (golint)
    • Line 498: warning: exported method OrderDeclinedNotification.WebsocketData should have comment or be unexported (golint)
    • Line 501: warning: exported method OrderDeclinedNotification.GetID should have comment or be unexported (golint)
    • Line 502: warning: exported method OrderDeclinedNotification.GetType should have comment or be unexported (golint)
    • Line 505: warning: exported method OrderDeclinedNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 507: warning: exported type OrderCancelNotification should have comment or be unexported (golint)
    • Line 516: warning: exported method OrderCancelNotification.Data should have comment or be unexported (golint)
    • Line 519: warning: exported method OrderCancelNotification.WebsocketData should have comment or be unexported (golint)
    • Line 522: warning: exported method OrderCancelNotification.GetID should have comment or be unexported (golint)
    • Line 523: warning: exported method OrderCancelNotification.GetType should have comment or be unexported (golint)
    • Line 526: warning: exported method OrderCancelNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 531: warning: exported type RefundNotification should have comment or be unexported (golint)
    • Line 540: warning: exported method RefundNotification.Data should have comment or be unexported (golint)
    • Line 543: warning: exported method RefundNotification.WebsocketData should have comment or be unexported (golint)
    • Line 546: warning: exported method RefundNotification.GetID should have comment or be unexported (golint)
    • Line 547: warning: exported method RefundNotification.GetType should have comment or be unexported (golint)
    • Line 548: warning: exported method RefundNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 553: warning: exported type FulfillmentNotification should have comment or be unexported (golint)
    • Line 562: warning: exported method FulfillmentNotification.Data should have comment or be unexported (golint)
    • Line 565: warning: exported method FulfillmentNotification.WebsocketData should have comment or be unexported (golint)
    • Line 568: warning: exported method FulfillmentNotification.GetID should have comment or be unexported (golint)
    • Line 569: warning: exported method FulfillmentNotification.GetType should have comment or be unexported (golint)
    • Line 572: warning: exported method FulfillmentNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 577: warning: exported type ProcessingErrorNotification should have comment or be unexported (golint)
    • Line 586: warning: exported method ProcessingErrorNotification.Data should have comment or be unexported (golint)
    • Line 589: warning: exported method ProcessingErrorNotification.WebsocketData should have comment or be unexported (golint)
    • Line 592: warning: exported method ProcessingErrorNotification.GetID should have comment or be unexported (golint)
    • Line 593: warning: exported method ProcessingErrorNotification.GetType should have comment or be unexported (golint)
    • Line 596: warning: exported method ProcessingErrorNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 600: warning: exported type CompletionNotification should have comment or be unexported (golint)
    • Line 609: warning: exported method CompletionNotification.Data should have comment or be unexported (golint)
    • Line 612: warning: exported method CompletionNotification.WebsocketData should have comment or be unexported (golint)
    • Line 615: warning: exported method CompletionNotification.GetID should have comment or be unexported (golint)
    • Line 616: warning: exported method CompletionNotification.GetType should have comment or be unexported (golint)
    • Line 617: warning: exported method CompletionNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 622: warning: exported type DisputeOpenNotification should have comment or be unexported (golint)
    • Line 634: warning: exported method DisputeOpenNotification.Data should have comment or be unexported (golint)
    • Line 637: warning: exported method DisputeOpenNotification.WebsocketData should have comment or be unexported (golint)
    • Line 640: warning: exported method DisputeOpenNotification.GetID should have comment or be unexported (golint)
    • Line 641: warning: exported method DisputeOpenNotification.GetType should have comment or be unexported (golint)
    • Line 644: warning: exported method DisputeOpenNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 649: warning: exported type DisputeUpdateNotification should have comment or be unexported (golint)
    • Line 661: warning: exported method DisputeUpdateNotification.Data should have comment or be unexported (golint)
    • Line 664: warning: exported method DisputeUpdateNotification.WebsocketData should have comment or be unexported (golint)
    • Line 667: warning: exported method DisputeUpdateNotification.GetID should have comment or be unexported (golint)
    • Line 668: warning: exported method DisputeUpdateNotification.GetType should have comment or be unexported (golint)
    • Line 671: warning: exported method DisputeUpdateNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 676: warning: exported type DisputeCloseNotification should have comment or be unexported (golint)
    • Line 686: warning: exported method DisputeCloseNotification.Data should have comment or be unexported (golint)
    • Line 689: warning: exported method DisputeCloseNotification.WebsocketData should have comment or be unexported (golint)
    • Line 692: warning: exported method DisputeCloseNotification.GetID should have comment or be unexported (golint)
    • Line 693: warning: exported method DisputeCloseNotification.GetType should have comment or be unexported (golint)
    • Line 696: warning: exported method DisputeCloseNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 701: warning: exported type DisputeAcceptedNotification should have comment or be unexported (golint)
    • Line 711: warning: exported method DisputeAcceptedNotification.Data should have comment or be unexported (golint)
    • Line 714: warning: exported method DisputeAcceptedNotification.WebsocketData should have comment or be unexported (golint)
    • Line 717: warning: exported method DisputeAcceptedNotification.GetID should have comment or be unexported (golint)
    • Line 718: warning: exported method DisputeAcceptedNotification.GetType should have comment or be unexported (golint)
    • Line 721: warning: exported method DisputeAcceptedNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 725: warning: exported type FollowNotification should have comment or be unexported (golint)
    • Line 731: warning: exported method FollowNotification.Data should have comment or be unexported (golint)
    • Line 734: warning: exported method FollowNotification.WebsocketData should have comment or be unexported (golint)
    • Line 737: warning: exported method FollowNotification.GetID should have comment or be unexported (golint)
    • Line 738: warning: exported method FollowNotification.GetType should have comment or be unexported (golint)
    • Line 741: warning: exported method FollowNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 743: warning: exported type UnfollowNotification should have comment or be unexported (golint)
    • Line 749: warning: exported method UnfollowNotification.Data should have comment or be unexported (golint)
    • Line 752: warning: exported method UnfollowNotification.WebsocketData should have comment or be unexported (golint)
    • Line 755: warning: exported method UnfollowNotification.GetID should have comment or be unexported (golint)
    • Line 756: warning: exported method UnfollowNotification.GetType should have comment or be unexported (golint)
    • Line 757: warning: exported method UnfollowNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 759: warning: exported type ModeratorAddNotification should have comment or be unexported (golint)
    • Line 765: warning: exported method ModeratorAddNotification.Data should have comment or be unexported (golint)
    • Line 768: warning: exported method ModeratorAddNotification.WebsocketData should have comment or be unexported (golint)
    • Line 771: warning: exported method ModeratorAddNotification.GetID should have comment or be unexported (golint)
    • Line 772: warning: exported method ModeratorAddNotification.GetType should have comment or be unexported (golint)
    • Line 775: warning: exported method ModeratorAddNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 777: warning: exported type ModeratorRemoveNotification should have comment or be unexported (golint)
    • Line 783: warning: exported method ModeratorRemoveNotification.Data should have comment or be unexported (golint)
    • Line 786: warning: exported method ModeratorRemoveNotification.WebsocketData should have comment or be unexported (golint)
    • Line 789: warning: exported method ModeratorRemoveNotification.GetID should have comment or be unexported (golint)
    • Line 790: warning: exported method ModeratorRemoveNotification.GetType should have comment or be unexported (golint)
    • Line 793: warning: exported method ModeratorRemoveNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 797: warning: exported type StatusNotification should have comment or be unexported (golint)
    • Line 801: warning: exported method StatusNotification.Data should have comment or be unexported (golint)
    • Line 802: warning: exported method StatusNotification.WebsocketData should have comment or be unexported (golint)
    • Line 803: warning: exported method StatusNotification.GetID should have comment or be unexported (golint)
    • Line 804: warning: exported method StatusNotification.GetType should have comment or be unexported (golint)
    • Line 805: warning: exported method StatusNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 807: warning: exported type ChatMessage should have comment or be unexported (golint)
    • Line 817: warning: exported method ChatMessage.Data should have comment or be unexported (golint)
    • Line 818: warning: exported method ChatMessage.WebsocketData should have comment or be unexported (golint)
    • Line 819: warning: exported method ChatMessage.GetID should have comment or be unexported (golint)
    • Line 820: warning: exported method ChatMessage.GetType should have comment or be unexported (golint)
    • Line 821: warning: exported method ChatMessage.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 823: warning: exported type ChatRead should have comment or be unexported (golint)
    • Line 829: warning: exported method ChatRead.Data should have comment or be unexported (golint)
    • Line 830: warning: exported method ChatRead.WebsocketData should have comment or be unexported (golint)
    • Line 831: warning: exported method ChatRead.GetID should have comment or be unexported (golint)
    • Line 832: warning: exported method ChatRead.GetType should have comment or be unexported (golint)
    • Line 833: warning: exported method ChatRead.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 835: warning: exported type ChatTyping should have comment or be unexported (golint)
    • Line 841: warning: exported method ChatTyping.Data should have comment or be unexported (golint)
    • Line 844: warning: exported method ChatTyping.WebsocketData should have comment or be unexported (golint)
    • Line 845: warning: exported method ChatTyping.GetID should have comment or be unexported (golint)
    • Line 846: warning: exported method ChatTyping.GetType should have comment or be unexported (golint)
    • Line 847: warning: exported method ChatTyping.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 849: warning: exported type IncomingTransaction should have comment or be unexported (golint)
    • Line 864: warning: exported method IncomingTransaction.Data should have comment or be unexported (golint)
    • Line 867: warning: exported method IncomingTransaction.WebsocketData should have comment or be unexported (golint)
    • Line 868: warning: exported method IncomingTransaction.GetID should have comment or be unexported (golint)
    • Line 869: warning: exported method IncomingTransaction.GetType should have comment or be unexported (golint)
    • Line 870: warning: exported method IncomingTransaction.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 883: warning: exported method VendorDisputeTimeout.Data should have comment or be unexported (golint)
    • Line 886: warning: exported method VendorDisputeTimeout.WebsocketData should have comment or be unexported (golint)
    • Line 889: warning: exported method VendorDisputeTimeout.GetID should have comment or be unexported (golint)
    • Line 890: warning: exported method VendorDisputeTimeout.GetType should have comment or be unexported (golint)
    • Line 891: warning: exported method VendorDisputeTimeout.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 905: warning: exported method BuyerDisputeTimeout.Data should have comment or be unexported (golint)
    • Line 908: warning: exported method BuyerDisputeTimeout.WebsocketData should have comment or be unexported (golint)
    • Line 911: warning: exported method BuyerDisputeTimeout.GetID should have comment or be unexported (golint)
    • Line 912: warning: exported method BuyerDisputeTimeout.GetType should have comment or be unexported (golint)
    • Line 913: warning: exported method BuyerDisputeTimeout.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 927: warning: exported method BuyerDisputeExpiry.Data should have comment or be unexported (golint)
    • Line 930: warning: exported method BuyerDisputeExpiry.WebsocketData should have comment or be unexported (golint)
    • Line 933: warning: exported method BuyerDisputeExpiry.GetID should have comment or be unexported (golint)
    • Line 934: warning: exported method BuyerDisputeExpiry.GetType should have comment or be unexported (golint)
    • Line 935: warning: exported method BuyerDisputeExpiry.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 947: warning: exported method VendorFinalizedPayment.Data should have comment or be unexported (golint)
    • Line 950: warning: exported method VendorFinalizedPayment.WebsocketData should have comment or be unexported (golint)
    • Line 953: warning: exported method VendorFinalizedPayment.GetID should have comment or be unexported (golint)
    • Line 954: warning: exported method VendorFinalizedPayment.GetType should have comment or be unexported (golint)
    • Line 955: warning: exported method VendorFinalizedPayment.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 971: warning: exported method ModeratorDisputeExpiry.Data should have comment or be unexported (golint)
    • Line 974: warning: exported method ModeratorDisputeExpiry.WebsocketData should have comment or be unexported (golint)
    • Line 977: warning: exported method ModeratorDisputeExpiry.GetID should have comment or be unexported (golint)
    • Line 978: warning: exported method ModeratorDisputeExpiry.GetType should have comment or be unexported (golint)
    • Line 979: warning: exported method ModeratorDisputeExpiry.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 981: warning: exported type TestNotification should have comment or be unexported (golint)
    • Line 983: warning: exported method TestNotification.Data should have comment or be unexported (golint)
    • Line 986: warning: exported method TestNotification.WebsocketData should have comment or be unexported (golint)
    • Line 987: warning: exported method TestNotification.GetID should have comment or be unexported (golint)
    • Line 988: warning: exported method TestNotification.GetType should have comment or be unexported (golint)
    • Line 989: warning: exported method TestNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 1001: warning: exported method PremarshalledNotifier.Data should have comment or be unexported (golint)
    • Line 1002: warning: exported method PremarshalledNotifier.WebsocketData should have comment or be unexported (golint)
    • Line 1003: warning: exported method PremarshalledNotifier.GetID should have comment or be unexported (golint)
    • Line 1004: warning: exported method PremarshalledNotifier.GetType should have comment or be unexported (golint)
    • Line 1005: warning: exported method PremarshalledNotifier.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 1007: warning: exported function NewNotificationID should have comment or be unexported (golint)
    • openbazaar-go/net/encryption.go
    • Line 22: warning: comment on exported const CiphertextVersion should be of the form "CiphertextVersion ..." (golint)
    • Line 25: warning: comment on exported const CiphertextVersionBytes should be of the form "CiphertextVersionBytes ..." (golint)
    • Line 28: warning: comment on exported const SecretKeyBytes should be of the form "SecretKeyBytes ..." (golint)
    • Line 31: warning: comment on exported const AESKeyBytes should be of the form "AESKeyBytes ..." (golint)
    • Line 34: warning: comment on exported const MacKeyBytes should be of the form "MacKeyBytes ..." (golint)
    • Line 37: warning: comment on exported const EncryptedSecretKeyBytes should be of the form "EncryptedSecretKeyBytes ..." (golint)
    • Line 40: warning: comment on exported const MacBytes should be of the form "MacBytes ..." (golint)
    • Line 43: warning: comment on exported const NonceBytes should be of the form "NonceBytes ..." (golint)
    • Line 46: warning: comment on exported const EphemeralPublicKeyBytes should be of the form "EphemeralPublicKeyBytes ..." (golint)
    • Line 51: warning: comment on exported var ErrShortCiphertext should be of the form "ErrShortCiphertext ..." (golint)
    • Line 54: warning: comment on exported var ErrInvalidHmac should be of the form "ErrInvalidHmac ..." (golint)
    • Line 57: warning: comment on exported var BoxDecryptionError should be of the form "BoxDecryptionError ..." (golint)
    • Line 58: warning: error var BoxDecryptionError should have name of the form ErrFoo (golint)
    • Line 60: warning: comment on exported var Salt should be of the form "Salt ..." (golint)
    • Line 64: warning: exported function Encrypt should have comment or be unexported (golint)
    • Line 174: warning: exported function Decrypt should have comment or be unexported (golint)
    • openbazaar-go/net/service/messagesender.go
    • Line 30: warning: exported var ReadMessageTimeout should have comment or be unexported (golint)
    • Line 31: warning: exported var ErrReadTimeout should have comment or be unexported (golint)
    • Line 32: warning: exported var ErrWriteTimeout should have comment or be unexported (golint)
    • Line 146: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 194: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • openbazaar-go/repo/db/sales.go
    • Line 18: warning: exported type SalesDB should have comment or be unexported (golint)
    • Line 22: warning: exported function NewSaleStore should have comment or be unexported (golint)
    • Line 26: warning: exported method SalesDB.Put should have comment or be unexported (golint)
    • Line 99: warning: exported method SalesDB.MarkAsRead should have comment or be unexported (golint)
    • Line 109: warning: exported method SalesDB.MarkAsUnread should have comment or be unexported (golint)
    • Line 119: warning: exported method SalesDB.UpdateFunding should have comment or be unexported (golint)
    • Line 138: warning: exported method SalesDB.Delete should have comment or be unexported (golint)
    • Line 148: warning: exported method SalesDB.GetAll should have comment or be unexported (golint)
    • Line 227: warning: exported method SalesDB.GetByPaymentAddress should have comment or be unexported (golint)
    • Line 270: warning: exported method SalesDB.GetByOrderId should have comment or be unexported (golint)
    • Line 312: warning: exported method SalesDB.Count should have comment or be unexported (golint)
    • Line 321: warning: exported method SalesDB.GetNeedsResync should have comment or be unexported (golint)
    • Line 350: warning: exported method SalesDB.SetNeedsResync should have comment or be unexported (golint)
    • openbazaar-go/wallet/builder.go
    • Line 38: warning: exported const InvalidCoinType should have comment or be unexported (golint)
    • Line 426: warning: exported type WalletDatastore should have comment or be unexported (golint)
    • Line 434: warning: exported method WalletDatastore.Keys should have comment or be unexported (golint)
    • Line 437: warning: exported method WalletDatastore.Stxos should have comment or be unexported (golint)
    • Line 440: warning: exported method WalletDatastore.Txns should have comment or be unexported (golint)
    • Line 443: warning: exported method WalletDatastore.Utxos should have comment or be unexported (golint)
    • Line 446: warning: exported method WalletDatastore.WatchedScripts should have comment or be unexported (golint)
    • Line 450: warning: exported function CreateWalletDB should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration007.go
    • Line 14: warning: don't use underscores in Go names; const Migration007_casesCreateSQL should be Migration007CasesCreateSQL (golint)
    • Line 14: warning: exported const Migration007_casesCreateSQL should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: don't use underscores in Go names; const Migration007_purchasesCreateSQL should be Migration007PurchasesCreateSQL (golint)
    • Line 16: warning: don't use underscores in Go names; const Migration007_salesCreateSQL should be Migration007SalesCreateSQL (golint)
    • Line 19: warning: exported type Migration007 should have comment or be unexported (golint)
    • Line 21: warning: exported method Migration007.Up should have comment or be unexported (golint)
    • Line 80: warning: exported method Migration007.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/db/inventory.go
    • Line 13: warning: exported type InventoryDB should have comment or be unexported (golint)
    • Line 17: warning: exported function NewInventoryStore should have comment or be unexported (golint)
    • Line 21: warning: exported method InventoryDB.Put should have comment or be unexported (golint)
    • Line 42: warning: exported method InventoryDB.GetSpecific should have comment or be unexported (golint)
    • Line 58: warning: exported method InventoryDB.Get should have comment or be unexported (golint)
    • Line 82: warning: exported method InventoryDB.GetAll should have comment or be unexported (golint)
    • Line 110: warning: exported method InventoryDB.Delete should have comment or be unexported (golint)
    • Line 117: warning: exported method InventoryDB.DeleteAll should have comment or be unexported (golint)
    • openbazaar-go/cmd/decrypt.go
    • Line 20: warning: exported type DecryptDatabase should have comment or be unexported (golint)
    • Line 24: warning: exported method DecryptDatabase.Execute should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration004.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 11: warning: exported type Migration004 should have comment or be unexported (golint)
    • Line 13: warning: exported method Migration004.Up should have comment or be unexported (golint)
    • Line 56: warning: exported method Migration004.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration005.go
    • Line 11: warning: exported type Migration005 should have comment or be unexported (golint)
    • Line 13: warning: exported var SwarmKeyData should have comment or be unexported (golint)
    • Line 15: warning: exported method Migration005.Up should have comment or be unexported (golint)
    • Line 68: warning: exported method Migration005.Down should have comment or be unexported (golint)
    • openbazaar-go/ipfs/add.go
    • Line 16: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 19: warning: comment on exported function AddDirectory should be of the form "AddDirectory ..." (golint)
    • Line 47: warning: exported function AddFile should have comment or be unexported (golint)
    • Line 51: warning: exported function GetHashOfFile should have comment or be unexported (golint)
    • Line 55: warning: exported function GetHash should have comment or be unexported (golint)
    • openbazaar-go/repo/db/utxos.go
    • Line 18: warning: exported type UtxoDB should have comment or be unexported (golint)
    • Line 23: warning: exported function NewUnspentTransactionStore should have comment or be unexported (golint)
    • Line 27: warning: exported method UtxoDB.Put should have comment or be unexported (golint)
    • Line 51: warning: exported method UtxoDB.GetAll should have comment or be unexported (golint)
    • Line 98: warning: exported method UtxoDB.SetWatchOnly should have comment or be unexported (golint)
    • Line 109: warning: exported method UtxoDB.Delete should have comment or be unexported (golint)
    • openbazaar-go/repo/db/stxo.go
    • Line 17: warning: exported type StxoDB should have comment or be unexported (golint)
    • Line 22: warning: exported function NewSpentTransactionStore should have comment or be unexported (golint)
    • Line 26: warning: exported method StxoDB.Put should have comment or be unexported (golint)
    • Line 50: warning: exported method StxoDB.GetAll should have comment or be unexported (golint)
    • Line 108: warning: exported method StxoDB.Delete should have comment or be unexported (golint)
    • openbazaar-go/ipfs/publish.go
    • Line 16: warning: error var pubErr should have name of the form errFoo (golint)
    • Line 24: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • openbazaar-go/repo/migrations/Migration002.go
    • Line 11: warning: exported type Migration002 should have comment or be unexported (golint)
    • Line 13: warning: exported method Migration002.Up should have comment or be unexported (golint)
    • Line 63: warning: exported method Migration002.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration016.go
    • Line 11: warning: exported type Migration016WalletsConfig should have comment or be unexported (golint)
    • Line 76: warning: exported type Migration016 should have comment or be unexported (golint)
    • Line 78: warning: exported method Migration016.Up should have comment or be unexported (golint)
    • Line 108: warning: exported method Migration016.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/db/notifications.go
    • Line 15: warning: exported type NotficationsDB should have comment or be unexported (golint)
    • Line 19: warning: exported function NewNotificationStore should have comment or be unexported (golint)
    • Line 23: warning: exported method NotficationsDB.PutRecord should have comment or be unexported (golint)
    • Line 43: warning: exported method NotficationsDB.GetAll should have comment or be unexported (golint)
    • Line 134: warning: exported method NotficationsDB.MarkAsRead should have comment or be unexported (golint)
    • Line 153: warning: exported method NotficationsDB.MarkAllAsRead should have comment or be unexported (golint)
    • Line 160: warning: exported method NotficationsDB.Delete should have comment or be unexported (golint)
    • Line 171: warning: exported method NotficationsDB.GetUnreadCount should have comment or be unexported (golint)
    • openbazaar-go/test/factory/currency.go
    • Line 10: warning: exported function NewBigInt should have comment or be unexported (golint)
    • Line 18: warning: exported function NewCurrencyDefinition should have comment or be unexported (golint)
    • Line 30: warning: exported function NewCurrencyValue should have comment or be unexported (golint)
    • openbazaar-go/schema/constants.go
    • Line 6: warning: comment on exported const PragmaUserVersionSQL should be of the form "PragmaUserVersionSQL ..." (golint)
    • Line 8: warning: exported const CreateTableConfigSQL should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: comment on exported const EthereumRegistryAddressMainnet should be of the form "EthereumRegistryAddressMainnet ..." (golint)
    • Line 55: warning: don't use underscores in Go names; const BootstrapNodeDefault_LeMarcheSerpette should be BootstrapNodeDefaultLeMarcheSerpette (golint)
    • Line 56: warning: don't use underscores in Go names; const BootstrapNodeDefault_BrixtonVillage should be BootstrapNodeDefaultBrixtonVillage (golint)
    • Line 60: warning: comment on exported const DataPushNodeTestnetOne should be of the form "DataPushNodeTestnetOne ..." (golint)
    • Line 67: warning: comment on exported var ErrorEmptyMnemonic should be of the form "ErrorEmptyMnemonic ..." (golint)
    • Line 73: warning: exported var DataPushNodes should have comment or be unexported (golint)
    • Line 88: warning: exported function EthereumDefaultOptions should have comment or be unexported (golint)
    • Line 97: warning: exported const WalletTypeAPI should have comment (or a comment on this block) or be unexported (golint)
    • Line 102: warning: exported const CoinAPIOpenBazaarPHR should have comment (or a comment on this block) or be unexported (golint)
    • Line 110: warning: exported var CoinPoolPHR should have comment or be unexported (golint)
    • openbazaar-go/cmd/status.go
    • Line 14: warning: exported type Status should have comment or be unexported (golint)
    • Line 19: warning: exported method Status.Execute should have comment or be unexported (golint)
    • openbazaar-go/core/signed_listings.go
    • Line 11: warning: exported function GetSignedListingFromPath should have comment or be unexported (golint)
    • Line 25: warning: exported function SetAcceptedCurrencies should have comment or be unexported (golint)
    • Line 29: warning: exported function AssignMatchingCoupons should have comment or be unexported (golint)
    • Line 41: warning: exported function AssignMatchingQuantities should have comment or be unexported (golint)
    • Line 53: warning: exported function ApplyShippingOptions should have comment or be unexported (golint)
    • openbazaar-go/repo/constants.go
    • Line 4: warning: comment on exported const DisputeOptionTimeoutHours should be of the form "DisputeOptionTimeoutHours ..." (golint)
    • Line 6: warning: comment on exported const DisputeTotalDurationHours should be of the form "DisputeTotalDurationHours ..." (golint)
    • Line 9: warning: exported const NotifierTypeBuyerDisputeTimeout should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported type NotificationType should have comment or be unexported (golint)
    • openbazaar-go/repo/init.go
    • Line 23: warning: exported const RepoVersion should have comment or be unexported (golint)
    • Line 26: warning: exported var ErrRepoExists should have comment or be unexported (golint)
    • Line 32: warning: exported function DoInit should have comment or be unexported (golint)
    • Line 241: warning: comment on exported function GetRepoPath should be of the form "GetRepoPath ..." (golint)
    • openbazaar-go/repo/db/txns.go
    • Line 14: warning: exported type TxnsDB should have comment or be unexported (golint)
    • Line 19: warning: exported function NewTransactionStore should have comment or be unexported (golint)
    • Line 23: warning: exported method TxnsDB.Put should have comment or be unexported (golint)
    • Line 49: warning: exported method TxnsDB.Get should have comment or be unexported (golint)
    • Line 82: warning: exported method TxnsDB.GetAll should have comment or be unexported (golint)
    • Line 125: warning: exported method TxnsDB.Delete should have comment or be unexported (golint)
    • Line 135: warning: exported method TxnsDB.UpdateHeight should have comment or be unexported (golint)
    • openbazaar-go/cmd/convert.go
    • Line 31: warning: exported type Convert should have comment or be unexported (golint)
    • Line 37: warning: exported method Convert.Execute should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration017.go
    • Line 12: warning: exported var Migration017PushToBefore should have comment or be unexported (golint)
    • Line 31: warning: exported type Migration017 should have comment or be unexported (golint)
    • Line 33: warning: exported method Migration017.Up should have comment or be unexported (golint)
    • Line 63: warning: exported method Migration017.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/db/coupons.go
    • Line 10: warning: exported type CouponDB should have comment or be unexported (golint)
    • Line 14: warning: exported function NewCouponStore should have comment or be unexported (golint)
    • Line 18: warning: exported method CouponDB.Put should have comment or be unexported (golint)
    • Line 35: warning: exported method CouponDB.Get should have comment or be unexported (golint)
    • Line 56: warning: exported method CouponDB.Delete should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration014.go
    • Line 12: warning: exported var WalletCoinType should have comment or be unexported (golint)
    • Line 14: warning: exported type Migration014 should have comment or be unexported (golint)
    • Line 16: warning: exported method Migration014.Up should have comment or be unexported (golint)
    • Line 105: warning: exported method Migration014.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/currency_definition.go
    • Line 11: warning: exported const Fiat should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported var ErrCurrencyCodeLengthInvalid should have comment or be unexported (golint)
    • Line 261: warning: exported method CurrencyDefinition.Valid should have comment or be unexported (golint)
    • Line 299: warning: comment on exported method CurrencyDictionary.Lookup should be of the form "Lookup ..." (golint)
    • Line 324: warning: exported function NewTestnetDefinition should have comment or be unexported (golint)
    • openbazaar-go/api/jsonapi.go
    • Line 50: warning: exported type JSONAPIConfig should have comment or be unexported (golint)
    • Line 185: warning: exported function ErrorResponse should have comment or be unexported (golint)
    • Line 197: warning: exported function JSONErrorResponse should have comment or be unexported (golint)
    • Line 202: warning: exported function RenderJSONOrStringError should have comment or be unexported (golint)
    • Line 213: warning: exported function SanitizedResponse should have comment or be unexported (golint)
    • Line 222: warning: exported function SanitizedResponseM should have comment or be unexported (golint)
    • openbazaar-go/core/images.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 10: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • openbazaar-go/repo/db/offinemessages.go
    • Line 11: warning: exported type OfflineMessagesDB should have comment or be unexported (golint)
    • Line 15: warning: exported function NewOfflineMessageStore should have comment or be unexported (golint)
    • Line 19: warning: exported method OfflineMessagesDB.Put should have comment or be unexported (golint)
    • Line 40: warning: exported method OfflineMessagesDB.Has should have comment or be unexported (golint)
    • Line 53: warning: exported method OfflineMessagesDB.SetMessage should have comment or be unexported (golint)
    • Line 63: warning: exported method OfflineMessagesDB.GetMessages should have comment or be unexported (golint)
    • Line 84: warning: exported method OfflineMessagesDB.DeleteMessage should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration010.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 11: warning: exported type Migration010 should have comment or be unexported (golint)
    • Line 13: warning: exported method Migration010.Up should have comment or be unexported (golint)
    • Line 42: warning: exported method Migration010.Down should have comment or be unexported (golint)
    • openbazaar-go/cmd/start.go
    • Line 75: warning: exported var ErrNoGateways should have comment or be unexported (golint)
    • Line 77: warning: exported type Start should have comment or be unexported (golint)
    • Line 101: warning: exported method Start.Execute should have comment or be unexported (golint)
    • Line 748: warning: exported type DummyWriter should have comment or be unexported (golint)
    • Line 754: warning: exported type DummyListener should have comment or be unexported (golint)
    • Line 758: warning: exported method DummyListener.Addr should have comment or be unexported (golint)
    • Line 762: warning: exported method DummyListener.Accept should have comment or be unexported (golint)
    • Line 767: warning: exported method DummyListener.Close should have comment or be unexported (golint)
    • Line 903: warning: exported function InitializeRepo should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration000.go
    • Line 11: warning: exported type Migration000 should have comment or be unexported (golint)
    • Line 13: warning: exported method Migration000.Up should have comment or be unexported (golint)
    • Line 70: warning: exported method Migration000.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/db/pointers.go
    • Line 19: warning: exported type PointersDB should have comment or be unexported (golint)
    • Line 23: warning: exported function NewPointerStore should have comment or be unexported (golint)
    • Line 27: warning: exported method PointersDB.Put should have comment or be unexported (golint)
    • Line 52: warning: exported method PointersDB.Delete should have comment or be unexported (golint)
    • Line 62: warning: exported method PointersDB.DeleteAll should have comment or be unexported (golint)
    • Line 72: warning: exported method PointersDB.GetAll should have comment or be unexported (golint)
    • Line 127: warning: exported method PointersDB.GetByPurpose should have comment or be unexported (golint)
    • Line 182: warning: exported method PointersDB.Get should have comment or be unexported (golint)
    • openbazaar-go/repo/models.go
    • Line 7: warning: exported type SettingsData should have comment or be unexported (golint)
    • Line 24: warning: exported type ShippingAddress should have comment or be unexported (golint)
    • Line 36: warning: exported type SMTPSettings should have comment or be unexported (golint)
    • Line 45: warning: exported type Follower should have comment or be unexported (golint)
    • Line 50: warning: exported type Coupon should have comment or be unexported (golint)
    • Line 56: warning: exported type GroupChatMessage should have comment or be unexported (golint)
    • Line 62: warning: exported type ChatConversation should have comment or be unexported (golint)
    • Line 70: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 79: warning: exported type Purchase should have comment or be unexported (golint)
    • Line 98: warning: exported type Sale should have comment or be unexported (golint)
    • Line 117: warning: exported type Case should have comment or be unexported (golint)
    • Line 136: warning: exported type UnfundedSale should have comment or be unexported (golint)
    • openbazaar-go/repo/payout_ratio.go
    • Line 5: warning: exported type PayoutRatio should have comment or be unexported (golint)
    • Line 7: warning: exported method PayoutRatio.Validate should have comment or be unexported (golint)
    • Line 20: warning: exported method PayoutRatio.BuyerAny should have comment or be unexported (golint)
    • Line 21: warning: exported method PayoutRatio.VendorAny should have comment or be unexported (golint)
    • Line 22: warning: exported method PayoutRatio.BuyerMajority should have comment or be unexported (golint)
    • Line 23: warning: exported method PayoutRatio.VendorMajority should have comment or be unexported (golint)
    • Line 24: warning: exported method PayoutRatio.EvenMajority should have comment or be unexported (golint)
    • openbazaar-go/cmd/init.go
    • Line 19: warning: exported type Init should have comment or be unexported (golint)
    • Line 28: warning: exported method Init.Execute should have comment or be unexported (golint)
    • openbazaar-go/storage/dropbox/dropbox.go
    • Line 17: warning: exported type DropBoxStorage should have comment or be unexported (golint)
    • Line 21: warning: exported function NewDropBoxStorage should have comment or be unexported (golint)
    • Line 31: warning: exported method DropBoxStorage.Store should have comment or be unexported (golint)
    • openbazaar-go/wallet/listeners/transaction_listener.go
    • Line 20: warning: exported type TransactionListener should have comment or be unexported (golint)
    • Line 27: warning: exported function NewTransactionListener should have comment or be unexported (golint)
    • Line 54: warning: exported method TransactionListener.OnTransactionReceived should have comment or be unexported (golint)
    • openbazaar-go/repo/db/purchases.go
    • Line 17: warning: exported type PurchasesDB should have comment or be unexported (golint)
    • Line 21: warning: exported function NewPurchaseStore should have comment or be unexported (golint)
    • Line 25: warning: exported method PurchasesDB.Put should have comment or be unexported (golint)
    • Line 100: warning: exported method PurchasesDB.MarkAsRead should have comment or be unexported (golint)
    • Line 110: warning: exported method PurchasesDB.MarkAsUnread should have comment or be unexported (golint)
    • Line 120: warning: exported method PurchasesDB.UpdateFunding should have comment or be unexported (golint)
    • Line 139: warning: exported method PurchasesDB.Delete should have comment or be unexported (golint)
    • Line 149: warning: exported method PurchasesDB.GetAll should have comment or be unexported (golint)
    • Line 228: warning: exported method PurchasesDB.GetByPaymentAddress should have comment or be unexported (golint)
    • Line 271: warning: exported method PurchasesDB.GetByOrderId should have comment or be unexported (golint)
    • Line 313: warning: exported method PurchasesDB.Count should have comment or be unexported (golint)
    • Line 322: warning: exported method PurchasesDB.GetPurchasesForDisputeExpiryNotification should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration009.go
    • Line 11: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 15: warning: exported type Migration009 should have comment or be unexported (golint)
    • Line 17: warning: don't use underscores in Go names; type Migration009_price should be Migration009Price (golint)
    • Line 17: warning: exported type Migration009_price should have comment or be unexported (golint)
    • Line 21: warning: don't use underscores in Go names; type Migration009_thumbnail should be Migration009Thumbnail (golint)
    • Line 21: warning: exported type Migration009_thumbnail should have comment or be unexported (golint)
    • Line 27: warning: don't use underscores in Go names; type Migration009_listingDataBeforeMigration should be Migration009ListingDataBeforeMigration (golint)
    • Line 27: warning: exported type Migration009_listingDataBeforeMigration should have comment or be unexported (golint)
    • Line 46: warning: don't use underscores in Go names; type Migration009_listingDataAfterMigration should be Migration009ListingDataAfterMigration (golint)
    • Line 46: warning: exported type Migration009_listingDataAfterMigration should have comment or be unexported (golint)
    • Line 68: warning: don't use underscores in Go names; type Migration009_listing should be Migration009Listing (golint)
    • Line 68: warning: exported type Migration009_listing should have comment or be unexported (golint)
    • Line 71: warning: don't use underscores in Go names; type Migration009_listing_listing should be Migration009ListingListing (golint)
    • Line 71: warning: exported type Migration009_listing_listing should have comment or be unexported (golint)
    • Line 74: warning: don't use underscores in Go names; type Migration009_listing_listing_metadata should be Migration009ListingListingMetadata (golint)
    • Line 74: warning: exported type Migration009_listing_listing_metadata should have comment or be unexported (golint)
    • Line 79: warning: exported const Migration009CreatePreviousCasesTable should have comment (or a comment on this block) or be unexported (golint)
    • Line 85: warning: exported method Migration009.Up should have comment or be unexported (golint)
    • Line 143: warning: exported method Migration009.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/db/moderatedstores.go
    • Line 11: warning: exported type ModeratedDB should have comment or be unexported (golint)
    • Line 15: warning: exported function NewModeratedStore should have comment or be unexported (golint)
    • Line 19: warning: exported method ModeratedDB.Put should have comment or be unexported (golint)
    • Line 35: warning: exported method ModeratedDB.Get should have comment or be unexported (golint)
    • Line 59: warning: exported method ModeratedDB.Delete should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration008.go
    • Line 17: warning: don't use underscores in Go names; const Migration008_OrderState_PENDING should be Migration008OrderStatePENDING (golint)
    • Line 17: warning: exported const Migration008_OrderState_PENDING should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: don't use underscores in Go names; const Migration008_OrderState_AWAITING_PAYMENT should be Migration008OrderStateAWAITINGPAYMENT (golint)
    • Line 19: warning: don't use underscores in Go names; const Migration008_OrderState_DISPUTED should be Migration008OrderStateDISPUTED (golint)
    • Line 21: warning: don't use underscores in Go names; const Migration008_casesCreateSQL should be Migration008CasesCreateSQL (golint)
    • Line 22: warning: don't use underscores in Go names; const Migration008_purchasesCreateSQL should be Migration008PurchasesCreateSQL (golint)
    • Line 23: warning: don't use underscores in Go names; const Migration008_salesCreateSQL should be Migration008SalesCreateSQL (golint)
    • Line 26: warning: exported type Migration008 should have comment or be unexported (golint)
    • Line 28: warning: exported method Migration008.Up should have comment or be unexported (golint)
    • Line 151: warning: exported method Migration008.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/datastore.go
    • Line 15: warning: exported type Datastore should have comment or be unexported (golint)
    • Line 35: warning: exported type Queryable should have comment or be unexported (golint)
    • Line 44: warning: exported type Config should have comment or be unexported (golint)
    • Line 62: warning: exported type FollowerStore should have comment or be unexported (golint)
    • Line 82: warning: exported type FollowingStore should have comment or be unexported (golint)
    • Line 102: warning: exported type OfflineMessageStore should have comment or be unexported (golint)
    • Line 121: warning: exported type PointerStore should have comment or be unexported (golint)
    • Line 143: warning: exported type ConfigurationStore should have comment or be unexported (golint)
    • Line 159: warning: exported type InventoryStore should have comment or be unexported (golint)
    • Line 182: warning: exported type PurchaseStore should have comment or be unexported (golint)
    • Line 227: warning: exported type SaleStore should have comment or be unexported (golint)
    • Line 271: warning: exported type CaseStore should have comment or be unexported (golint)
    • Line 318: warning: exported type ChatStore should have comment or be unexported (golint)
    • Line 345: warning: comment on exported type NotificationStore should be of the form "NotificationStore ..." (with optional leading article) (golint)
    • Line 368: warning: comment on exported type CouponStore should be of the form "CouponStore ..." (with optional leading article) (golint)
    • Line 382: warning: comment on exported type TransactionMetadataStore should be of the form "TransactionMetadataStore ..." (with optional leading article) (golint)
    • Line 399: warning: comment on exported type ModeratedStore should be of the form "ModeratedStore ..." (with optional leading article) (golint)
    • Line 414: warning: exported type KeyStore should have comment or be unexported (golint)
    • Line 419: warning: exported type SpentTransactionOutputStore should have comment or be unexported (golint)
    • Line 424: warning: exported type TransactionStore should have comment or be unexported (golint)
    • Line 429: warning: exported type UnspentTransactionOutputStore should have comment or be unexported (golint)
    • Line 434: warning: exported type WatchedScriptStore should have comment or be unexported (golint)
    • openbazaar-go/cmd/gencerts.go
    • Line 20: warning: exported type GenerateCertificates should have comment or be unexported (golint)
    • Line 27: warning: exported method GenerateCertificates.Execute should have comment or be unexported (golint)
    • openbazaar-go/net/ban_manager.go
    • Line 9: warning: exported type BanManager should have comment or be unexported (golint)
    • Line 14: warning: exported function NewBanManager should have comment or be unexported (golint)
    • Line 22: warning: exported method BanManager.AddBlockedId should have comment or be unexported (golint)
    • Line 28: warning: exported method BanManager.RemoveBlockedId should have comment or be unexported (golint)
    • Line 36: warning: exported method BanManager.SetBlockedIds should have comment or be unexported (golint)
    • Line 47: warning: exported method BanManager.GetBlockedIds should have comment or be unexported (golint)
    • Line 61: warning: exported method BanManager.IsBanned should have comment or be unexported (golint)
    • openbazaar-go/ipfs/pointers.go
    • Line 21: warning: comment on exported const MagicPointerID should be of the form "MagicPointerID ..." (golint)
    • Line 30: warning: exported const MODERATOR should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: comment on exported type Pointer should be of the form "Pointer ..." (with optional leading article) (golint)
    • Line 69: warning: context.Context should be the first parameter of a function (golint)
    • Line 69: warning: exported function PublishPointer should have comment or be unexported (golint)
    • Line 74: warning: context.Context should be the first parameter of a function (golint)
    • Line 82: warning: context.Context should be the first parameter of a function (golint)
    • Line 90: warning: context.Context should be the first parameter of a function (golint)
    • Line 90: warning: exported function PutPointerToPeer should have comment or be unexported (golint)
    • Line 94: warning: context.Context should be the first parameter of a function (golint)
    • Line 94: warning: exported function GetPointersFromPeer should have comment or be unexported (golint)
    • Line 103: warning: context.Context should be the first parameter of a function (golint)
    • Line 131: warning: exported function CreatePointerKey should have comment or be unexported (golint)
    • openbazaar-go/repo/db/followers.go
    • Line 11: warning: exported type FollowerDB should have comment or be unexported (golint)
    • Line 15: warning: exported function NewFollowerStore should have comment or be unexported (golint)
    • Line 19: warning: exported method FollowerDB.Put should have comment or be unexported (golint)
    • Line 35: warning: exported method FollowerDB.Get should have comment or be unexported (golint)
    • Line 60: warning: exported method FollowerDB.Delete should have comment or be unexported (golint)
    • Line 70: warning: exported method FollowerDB.Count should have comment or be unexported (golint)
    • Line 79: warning: exported method FollowerDB.FollowsMe should have comment or be unexported (golint)
    • openbazaar-go/repo/db/watched_scripts.go
    • Line 12: warning: comment on exported type WatchedScriptsDB should be of the form "WatchedScriptsDB ..." (with optional leading article) (golint)
    • Line 19: warning: exported function NewWatchedScriptStore should have comment or be unexported (golint)
    • Line 23: warning: comment on exported method WatchedScriptsDB.Put should be of the form "Put ..." (golint)
    • Line 43: warning: comment on exported method WatchedScriptsDB.GetAll should be of the form "GetAll ..." (golint)
    • Line 68: warning: comment on exported method WatchedScriptsDB.Delete should be of the form "Delete ..." (golint)
    • openbazaar-go/core/spend.go
    • Line 19: warning: exported type SpendRequest should have comment or be unexported (golint)
    • Line 32: warning: exported type SpendResponse should have comment or be unexported (golint)
    • openbazaar-go/ipfs/pubsub.go
    • Line 20: warning: exported const MessageTopicPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported type Pubsub should have comment or be unexported (golint)
    • Line 80: warning: exported method PubsubPublisher.Publish should have comment or be unexported (golint)
    • Line 97: warning: exported method PubsubSubscriber.Subscribe should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration012.go
    • Line 19: warning: don't use underscores in Go names; const migration012_ListingVersionForMarkupListings should be migration012ListingVersionForMarkupListings (golint)
    • Line 21: warning: exported type Migration012 should have comment or be unexported (golint)
    • Line 23: warning: don't use underscores in Go names; type Migration012_ListingData should be Migration012ListingData (golint)
    • Line 23: warning: exported type Migration012_ListingData should have comment or be unexported (golint)
    • Line 51: warning: exported function Migration012_listingHasNewFeaturesAndOldVersion should have comment or be unexported (golint)
    • Line 51: warning: don't use underscores in Go names; func Migration012_listingHasNewFeaturesAndOldVersion should be Migration012ListingHasNewFeaturesAndOldVersion (golint)
    • Line 60: warning: exported function Migration012_GetIdentityKey should have comment or be unexported (golint)
    • Line 60: warning: don't use underscores in Go names; func Migration012_GetIdentityKey should be Migration012GetIdentityKey (golint)
    • Line 77: warning: exported method Migration012.Up should have comment or be unexported (golint)
    • Line 265: warning: don't use underscores in Go names; func migration012_listingFilePath should be migration012ListingFilePath (golint)
    • Line 269: warning: exported method Migration012.Down should have comment or be unexported (golint)
    • openbazaar-go/test/factory/purchase_record.go
    • Line 9: warning: exported function NewPurchaseRecord should have comment or be unexported (golint)
    • Line 17: warning: exported function NewExpiredPurchaseRecord should have comment or be unexported (golint)
    • Line 23: warning: exported function NewExpiredDisputeablePurchaseRecord should have comment or be unexported (golint)
    • openbazaar-go/schema/manager.go
    • Line 19: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 25: warning: exported const CurrentSchemaVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: comment on exported function NewCustomSchemaManager should be of the form "NewCustomSchemaManager ..." (golint)
    • Line 255: 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 396: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 467: warning: comment on exported function CreateIdentityKey should be of the form "CreateIdentityKey ..." (golint)
    • Line 495: warning: exported function MustDefaultConfig should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration013.go
    • Line 17: warning: exported type Migration013 should have comment or be unexported (golint)
    • Line 19: warning: don't use underscores in Go names; type Migration013_TransactionRecord_beforeMigration should be Migration013TransactionRecordBeforeMigration (golint)
    • Line 19: warning: exported type Migration013_TransactionRecord_beforeMigration should have comment or be unexported (golint)
    • Line 28: warning: don't use underscores in Go names; type Migration013_TransactionRecord_afterMigration should be Migration013TransactionRecordAfterMigration (golint)
    • Line 28: warning: exported type Migration013_TransactionRecord_afterMigration should have comment or be unexported (golint)
    • Line 37: warning: don't use underscores in Go names; type migration013_record should be migration013Record (golint)
    • Line 44: warning: exported method Migration013.Up should have comment or be unexported (golint)
    • Line 75: warning: exported method Migration013.Down should have comment or be unexported (golint)
    • Line 106: warning: don't use underscores in Go names; func migration013_extractRecords should be migration013ExtractRecords (golint)
    • Line 143: warning: don't use underscores in Go names; func migration013_updateRecords should be migration013UpdateRecords (golint)
    • Line 209: warning: exported function Migration013_ChainConfigParams should have comment or be unexported (golint)
    • Line 209: warning: don't use underscores in Go names; func Migration013_ChainConfigParams should be Migration013ChainConfigParams (golint)
    • Line 213: warning: exported function Migration013_ScriptToAddress should have comment or be unexported (golint)
    • Line 213: warning: don't use underscores in Go names; func Migration013_ScriptToAddress should be Migration013ScriptToAddress (golint)
    • Line 242: warning: exported function Migration013_AddressToScript should have comment or be unexported (golint)
    • Line 242: warning: don't use underscores in Go names; func Migration013_AddressToScript should be Migration013AddressToScript (golint)
    • openbazaar-go/repo/db/cases.go
    • Line 16: warning: exported type CasesDB should have comment or be unexported (golint)
    • Line 20: warning: exported function NewCaseStore should have comment or be unexported (golint)
    • Line 24: warning: exported method CasesDB.PutRecord should have comment or be unexported (golint)
    • Line 67: warning: exported method CasesDB.Put should have comment or be unexported (golint)
    • Line 84: warning: exported method CasesDB.UpdateBuyerInfo should have comment or be unexported (golint)
    • Line 120: warning: exported method CasesDB.UpdateVendorInfo should have comment or be unexported (golint)
    • Line 156: warning: exported method CasesDB.MarkAsRead should have comment or be unexported (golint)
    • Line 166: warning: exported method CasesDB.MarkAsUnread should have comment or be unexported (golint)
    • Line 176: warning: exported method CasesDB.MarkAsClosed should have comment or be unexported (golint)
    • Line 201: warning: exported method CasesDB.Delete should have comment or be unexported (golint)
    • Line 211: warning: exported method CasesDB.GetAll should have comment or be unexported (golint)
    • Line 316: warning: exported method CasesDB.GetCaseMetadata should have comment or be unexported (golint)
    • Line 392: warning: exported method CasesDB.GetByCaseID should have comment or be unexported (golint)
    • Line 487: warning: exported method CasesDB.Count should have comment or be unexported (golint)
    • openbazaar-go/test/factory/listing.go
    • Line 8: warning: exported function NewListing should have comment or be unexported (golint)
    • Line 97: warning: exported function NewCryptoListing should have comment or be unexported (golint)
    • Line 113: warning: exported function NewListingWithShippingRegions should have comment or be unexported (golint)
    • openbazaar-go/repo/currency.go
    • Line 12: warning: exported const CurrencyCodeValidMinimumLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported var ErrCurrencyValueInsufficientPrecision should have comment or be unexported (golint)
    • openbazaar-go/repo/purchase_record.go
    • Line 10: warning: don't use underscores in Go names; var BuyerDisputeTimeout_firstInterval should be BuyerDisputeTimeoutFirstInterval (golint)
    • Line 10: warning: exported var BuyerDisputeTimeout_firstInterval should have comment or be unexported (golint)
    • Line 11: warning: don't use underscores in Go names; var BuyerDisputeTimeout_secondInterval should be BuyerDisputeTimeoutSecondInterval (golint)
    • Line 12: warning: don't use underscores in Go names; var BuyerDisputeTimeout_thirdInterval should be BuyerDisputeTimeoutThirdInterval (golint)
    • Line 13: warning: don't use underscores in Go names; var BuyerDisputeTimeout_lastInterval should be BuyerDisputeTimeoutLastInterval (golint)
    • Line 14: warning: don't use underscores in Go names; var BuyerDisputeTimeout_totalDuration should be BuyerDisputeTimeoutTotalDuration (golint)
    • Line 16: warning: don't use underscores in Go names; var BuyerDisputeExpiry_firstInterval should be BuyerDisputeExpiryFirstInterval (golint)
    • Line 17: warning: don't use underscores in Go names; var BuyerDisputeExpiry_secondInterval should be BuyerDisputeExpirySecondInterval (golint)
    • Line 18: warning: don't use underscores in Go names; var BuyerDisputeExpiry_lastInterval should be BuyerDisputeExpiryLastInterval (golint)
    • Line 19: warning: don't use underscores in Go names; var BuyerDisputeExpiry_totalDuration should be BuyerDisputeExpiryTotalDuration (golint)
    • Line 34: warning: exported method PurchaseRecord.IsDisputeable should have comment or be unexported (golint)
    • openbazaar-go/repo/db/chat.go
    • Line 12: warning: exported type ChatDB should have comment or be unexported (golint)
    • Line 16: warning: exported function NewChatStore should have comment or be unexported (golint)
    • Line 20: warning: exported method ChatDB.Put should have comment or be unexported (golint)
    • Line 61: warning: exported method ChatDB.GetConversations should have comment or be unexported (golint)
    • Line 109: warning: exported method ChatDB.GetMessages should have comment or be unexported (golint)
    • Line 163: warning: exported method ChatDB.MarkAsRead should have comment or be unexported (golint)
    • Line 266: warning: exported method ChatDB.GetUnreadCount should have comment or be unexported (golint)
    • Line 277: warning: exported method ChatDB.DeleteMessage should have comment or be unexported (golint)
    • Line 284: warning: exported method ChatDB.DeleteConversation should have comment or be unexported (golint)
    • openbazaar-go/repo/db/util.go
    • Line 5: warning: exported function PaymentCoinForContract should have comment or be unexported (golint)
    • Line 18: warning: exported function CoinTypeForContract should have comment or be unexported (golint)
    • openbazaar-go/api/sanitize.go
    • Line 19: warning: exported function SanitizeJSON should have comment or be unexported (golint)
    • Line 33: warning: exported function SanitizeProtobuf should have comment or be unexported (golint)
    • openbazaar-go/schema/configuration.go
    • Line 9: warning: exported type APIConfig should have comment or be unexported (golint)
    • Line 22: warning: exported type TorConfig should have comment or be unexported (golint)
    • Line 27: warning: exported type IpnsExtraConfig should have comment or be unexported (golint)
    • Line 32: warning: exported type WalletsConfig should have comment or be unexported (golint)
    • Line 41: warning: exported type CoinConfig should have comment or be unexported (golint)
    • Line 54: warning: exported type DataSharing should have comment or be unexported (golint)
    • Line 59: warning: error var MalformedConfigError should have name of the form ErrFoo (golint)
    • Line 59: warning: exported var MalformedConfigError should have comment or be unexported (golint)
    • Line 61: warning: exported function DefaultWalletsConfig should have comment or be unexported (golint)
    • Line 89: warning: exported function GetAPIConfig should have comment or be unexported (golint)
    • Line 226: warning: exported function GetWalletsConfig should have comment or be unexported (golint)
    • Line 250: warning: exported function GetTorConfig should have comment or be unexported (golint)
    • Line 291: warning: exported function GetIPNSExtraConfig should have comment or be unexported (golint)
    • Line 332: warning: exported function GetDropboxApiToken should have comment or be unexported (golint)
    • Line 356: warning: exported function GetRepublishInterval should have comment or be unexported (golint)
    • Line 386: warning: exported function GetDataSharing should have comment or be unexported (golint)
    • Line 438: warning: exported function GetTestnetBootstrapAddrs should have comment or be unexported (golint)
    • openbazaar-go/repo/dispute_case_record.go
    • Line 10: warning: don't use underscores in Go names; var ModeratorDisputeExpiry_firstInterval should be ModeratorDisputeExpiryFirstInterval (golint)
    • Line 10: warning: exported var ModeratorDisputeExpiry_firstInterval should have comment or be unexported (golint)
    • Line 11: warning: don't use underscores in Go names; var ModeratorDisputeExpiry_secondInterval should be ModeratorDisputeExpirySecondInterval (golint)
    • Line 12: warning: don't use underscores in Go names; var ModeratorDisputeExpiry_thirdInterval should be ModeratorDisputeExpiryThirdInterval (golint)
    • Line 13: warning: don't use underscores in Go names; var ModeratorDisputeExpiry_lastInterval should be ModeratorDisputeExpiryLastInterval (golint)
    • Line 82: warning: comment on exported method DisputeCaseRecord.IsExpiredNow should be of the form "IsExpiredNow ..." (golint)
    • openbazaar-go/repo/db/settings.go
    • Line 13: warning: error var SettingsNotSetError should have name of the form ErrFoo (golint)
    • Line 13: warning: exported var SettingsNotSetError should have comment or be unexported (golint)
    • Line 15: warning: exported type SettingsDB should have comment or be unexported (golint)
    • Line 19: warning: exported function NewConfigurationStore should have comment or be unexported (golint)
    • Line 23: warning: exported method SettingsDB.Put should have comment or be unexported (golint)
    • Line 53: warning: exported method SettingsDB.Get should have comment or be unexported (golint)
    • Line 74: warning: exported method SettingsDB.Update should have comment or be unexported (golint)
    • openbazaar-go/repo/db/txmetadata.go
    • Line 10: warning: exported type TxMetadataDB should have comment or be unexported (golint)
    • Line 14: warning: exported function NewTransactionMetadataStore should have comment or be unexported (golint)
    • Line 18: warning: exported method TxMetadataDB.Put should have comment or be unexported (golint)
    • Line 41: warning: exported method TxMetadataDB.Get should have comment or be unexported (golint)
    • Line 64: warning: exported method TxMetadataDB.GetAll should have comment or be unexported (golint)
    • Line 97: warning: exported method TxMetadataDB.Delete should have comment or be unexported (golint)

gocyclo74%

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.

    • openbazaar-go/core/record_aging_notifier.go
    • Line 185: warning: cyclomatic complexity 20 of function (*recordAgingNotifier).generateBuyerDisputeTimeoutNotifications() is high (> 15) (gocyclo)
    • Line 339: warning: cyclomatic complexity 20 of function (*recordAgingNotifier).generateModeratorDisputeExpiryNotifications() is high (> 15) (gocyclo)
    • Line 264: warning: cyclomatic complexity 18 of function (*recordAgingNotifier).generateBuyerDisputeExpiryNotifications() is high (> 15) (gocyclo)
    • openbazaar-go/repo/db/purchases_test.go
    • Line 353: warning: cyclomatic complexity 23 of function TestPurchasesDB_GetAll() is high (> 15) (gocyclo)
    • Line 662: warning: cyclomatic complexity 20 of function TestGetPurchasesForDisputeExpiryNotificationReturnsRelevantRecords() is high (> 15) (gocyclo)
    • Line 457: warning: cyclomatic complexity 18 of function TestGetPurchasesForDisputeTimeoutReturnsRelevantRecords() is high (> 15) (gocyclo)
    • Line 568: warning: cyclomatic complexity 17 of function TestUpdatePurchaseLastDisputeTimeoutNotifiedAt() is high (> 15) (gocyclo)
    • Line 770: warning: cyclomatic complexity 17 of function TestUpdatePurchaseLastDisputeExpiryNotifiedAt() is high (> 15) (gocyclo)
    • openbazaar-go/core/fulfillment.go
    • Line 24: warning: cyclomatic complexity 32 of function (*OpenBazaarNode).FulfillOrder() is high (> 15) (gocyclo)
    • Line 189: warning: cyclomatic complexity 25 of function (*OpenBazaarNode).ValidateOrderFulfillment() is high (> 15) (gocyclo)
    • openbazaar-go/wallet/builder.go
    • Line 217: warning: cyclomatic complexity 20 of function createSPVWallet() is high (> 15) (gocyclo)
    • Line 68: warning: cyclomatic complexity 19 of function NewMultiWallet() is high (> 15) (gocyclo)
    • Line 132: warning: cyclomatic complexity 18 of function createAPIWallet() is high (> 15) (gocyclo)
    • Line 354: warning: cyclomatic complexity 16 of function prepareAPICoinConfig() is high (> 15) (gocyclo)
    • openbazaar-go/core/listings.go
    • Line 889: warning: cyclomatic complexity 106 of function (*OpenBazaarNode).validateListing() is high (> 15) (gocyclo)
    • Line 131: warning: cyclomatic complexity 29 of function (*OpenBazaarNode).SignListing() is high (> 15) (gocyclo)
    • Line 1231: warning: cyclomatic complexity 26 of function validatePhysicalListing() is high (> 15) (gocyclo)
    • openbazaar-go/core/order.go
    • Line 1206: warning: cyclomatic complexity 68 of function (*OpenBazaarNode).ValidateOrder() is high (> 15) (gocyclo)
    • Line 837: warning: cyclomatic complexity 28 of function (*OpenBazaarNode).CalculateOrderTotal() is high (> 15) (gocyclo)
    • Line 955: warning: cyclomatic complexity 25 of function (*OpenBazaarNode).calculateShippingTotalForListings() is high (> 15) (gocyclo)
    • Line 431: warning: cyclomatic complexity 23 of function (*OpenBazaarNode).createContractWithOrder() is high (> 15) (gocyclo)
    • Line 140: warning: cyclomatic complexity 19 of function prepareModeratedOrderContract() is high (> 15) (gocyclo)
    • Line 1085: warning: cyclomatic complexity 16 of function (*OpenBazaarNode).getPriceInSatoshi() is high (> 15) (gocyclo)
    • Line 755: warning: cyclomatic complexity 16 of function (*OpenBazaarNode).CancelOfflineOrder() is high (> 15) (gocyclo)
    • openbazaar-go/core/record_aging_notifier_test.go
    • Line 21: warning: cyclomatic complexity 54 of function TestPerformTaskCreatesModeratorDisputeExpiryNotifications() is high (> 15) (gocyclo)
    • Line 381: warning: cyclomatic complexity 52 of function TestPerformTaskCreatesBuyerDisputeTimeoutNotifications() is high (> 15) (gocyclo)
    • Line 691: warning: cyclomatic complexity 44 of function TestPerformTaskCreatesPurchaseExpiryNotifications() is high (> 15) (gocyclo)
    • Line 967: warning: cyclomatic complexity 31 of function TestPerformTaskCreatesVendorDisputeTimeoutNotifications() is high (> 15) (gocyclo)
    • openbazaar-go/mobile/node.go
    • Line 88: warning: cyclomatic complexity 25 of function NewNodeWithConfig() is high (> 15) (gocyclo)
    • Line 297: warning: cyclomatic complexity 18 of function (*Node).Start() is high (> 15) (gocyclo)
    • openbazaar-go/api/jsonapi.go
    • Line 87: warning: cyclomatic complexity 26 of function (*jsonAPIHandler).ServeHTTP() is high (> 15) (gocyclo)
    • Line 1741: warning: cyclomatic complexity 26 of function (*jsonAPIHandler).GETModerators() is high (> 15) (gocyclo)
    • Line 3505: warning: cyclomatic complexity 22 of function (*jsonAPIHandler).POSTFetchRatings() is high (> 15) (gocyclo)
    • Line 1940: warning: cyclomatic complexity 20 of function (*jsonAPIHandler).POSTOrderComplete() is high (> 15) (gocyclo)
    • Line 2020: warning: cyclomatic complexity 19 of function (*jsonAPIHandler).POSTOpenDispute() is high (> 15) (gocyclo)
    • Line 1363: warning: cyclomatic complexity 17 of function (*jsonAPIHandler).GETListing() is high (> 15) (gocyclo)
    • Line 2735: warning: cyclomatic complexity 16 of function (*jsonAPIHandler).POSTFetchProfiles() is high (> 15) (gocyclo)
    • openbazaar-go/net/service/handlers.go
    • Line 264: warning: cyclomatic complexity 36 of function (*OpenBazaarService).handleOrder() is high (> 15) (gocyclo)
    • Line 538: warning: cyclomatic complexity 34 of function (*OpenBazaarService).handleReject() is high (> 15) (gocyclo)
    • Line 883: warning: cyclomatic complexity 31 of function (*OpenBazaarService).handleOrderCompletion() is high (> 15) (gocyclo)
    • Line 695: warning: cyclomatic complexity 28 of function (*OpenBazaarService).handleRefund() is high (> 15) (gocyclo)
    • Line 27: warning: cyclomatic complexity 24 of function (*OpenBazaarService).HandlerForMsgType() is high (> 15) (gocyclo)
    • Line 1110: warning: cyclomatic complexity 20 of function (*OpenBazaarService).handleDisputeClose() is high (> 15) (gocyclo)
    • Line 1029: warning: cyclomatic complexity 19 of function (*OpenBazaarService).handleDisputeUpdate() is high (> 15) (gocyclo)
    • Line 425: warning: cyclomatic complexity 17 of function (*OpenBazaarService).handleOrderConfirmation() is high (> 15) (gocyclo)
    • Line 815: warning: cyclomatic complexity 17 of function (*OpenBazaarService).handleOrderFulfillment() is high (> 15) (gocyclo)
    • openbazaar-go/core/profile.go
    • Line 269: warning: cyclomatic complexity 51 of function ValidateProfile() is high (> 15) (gocyclo)
    • Line 121: warning: cyclomatic complexity 16 of function (*OpenBazaarNode).PatchProfile() is high (> 15) (gocyclo)
    • openbazaar-go/core/disputes.go
    • Line 224: warning: cyclomatic complexity 56 of function (*OpenBazaarNode).ProcessDisputeOpen() is high (> 15) (gocyclo)
    • Line 434: warning: cyclomatic complexity 47 of function (*OpenBazaarNode).CloseDispute() is high (> 15) (gocyclo)
    • Line 736: warning: cyclomatic complexity 42 of function (*OpenBazaarNode).ValidateCaseContract() is high (> 15) (gocyclo)
    • Line 991: warning: cyclomatic complexity 22 of function (*OpenBazaarNode).ReleaseFunds() is high (> 15) (gocyclo)
    • openbazaar-go/core/moderation.go
    • Line 185: warning: cyclomatic complexity 16 of function (*OpenBazaarNode).SetModeratorsOnListings() is high (> 15) (gocyclo)
    • Line 50: warning: cyclomatic complexity 16 of function (*OpenBazaarNode).SetSelfAsModerator() is high (> 15) (gocyclo)
    • openbazaar-go/bitcoin/phored/wallet.go
    • Line 532: warning: cyclomatic complexity 21 of function (*RPCWallet).SweepAddress() is high (> 15) (gocyclo)
    • Line 1026: warning: cyclomatic complexity 17 of function (*RPCWallet).Multisign() is high (> 15) (gocyclo)
    • Line 116: warning: cyclomatic complexity 17 of function (*RPCWallet).Start() is high (> 15) (gocyclo)
    • Line 1179: warning: cyclomatic complexity 16 of function (*RPCWallet).receiveTransactions() is high (> 15) (gocyclo)
    • openbazaar-go/repo/db/cases_test.go
    • Line 530: warning: cyclomatic complexity 29 of function TestCasesDB_GetAll() is high (> 15) (gocyclo)
    • Line 335: warning: cyclomatic complexity 25 of function TestCasesGetCaseMetaData() is high (> 15) (gocyclo)
    • Line 409: warning: cyclomatic complexity 22 of function TestGetByCaseID() is high (> 15) (gocyclo)
    • Line 639: warning: cyclomatic complexity 20 of function TestGetDisputesForDisputeExpiryReturnsRelevantRecords() is high (> 15) (gocyclo)
    • openbazaar-go/repo/db/sales_test.go
    • Line 362: warning: cyclomatic complexity 23 of function TestSalesDB_GetAll() is high (> 15) (gocyclo)
    • Line 540: warning: cyclomatic complexity 17 of function TestGetSalesForDisputeTimeoutReturnsRelevantRecords() is high (> 15) (gocyclo)
    • Line 644: warning: cyclomatic complexity 17 of function TestUpdateSaleLastDisputeTimeoutNotifiedAt() is high (> 15) (gocyclo)
    • Line 58: warning: cyclomatic complexity 17 of function TestPutSale() is high (> 15) (gocyclo)
    • openbazaar-go/core/completion.go
    • Line 61: warning: cyclomatic complexity 44 of function (*OpenBazaarNode).CompleteOrder() is high (> 15) (gocyclo)
    • Line 417: warning: cyclomatic complexity 21 of function (*OpenBazaarNode).ValidateAndSaveRating() is high (> 15) (gocyclo)
    • Line 305: warning: cyclomatic complexity 19 of function (*OpenBazaarNode).ReleaseFundsAfterTimeout() is high (> 15) (gocyclo)
    • openbazaar-go/core/confirmation.go
    • Line 166: warning: cyclomatic complexity 19 of function (*OpenBazaarNode).RejectOfflineOrder() is high (> 15) (gocyclo)
    • Line 254: warning: cyclomatic complexity 18 of function (*OpenBazaarNode).ValidateOrderConfirmation() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 16 of function (*OpenBazaarNode).ConfirmOfflineOrder() is high (> 15) (gocyclo)
    • openbazaar-go/repo/db/cases.go
    • Line 211: warning: cyclomatic complexity 16 of function (*CasesDB).GetAll() is high (> 15) (gocyclo)
    • Line 316: warning: cyclomatic complexity 16 of function (*CasesDB).GetCaseMetadata() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words