Preparing report...

Report for github.com/OpenBazaar/openbazaar-go

A+    Excellent!    Found 191 issues across 301 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!


golint50%

Golint is a linter for Go source code.

    • 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/test/factory/profile.go
    • Line 15: warning: exported function MustLoadProfileFixture should have comment or be unexported (golint)
    • Line 24: warning: exported function MustNewProfile should have comment or be unexported (golint)
    • Line 32: warning: exported function MustNewProfileProtobuf should have comment or be unexported (golint)
    • openbazaar-go/wallet/listeners/wallet_listener.go
    • Line 10: warning: exported type WalletListener should have comment or be unexported (golint)
    • Line 16: warning: exported function NewWalletListener should have comment or be unexported (golint)
    • Line 21: warning: exported method WalletListener.OnTransactionReceived should have comment or be unexported (golint)
    • openbazaar-go/repo/db/followers.go
    • Line 12: warning: exported type FollowerDB should have comment or be unexported (golint)
    • Line 16: warning: exported function NewFollowerStore should have comment or be unexported (golint)
    • Line 20: warning: exported method FollowerDB.Put should have comment or be unexported (golint)
    • Line 36: warning: exported method FollowerDB.Get should have comment or be unexported (golint)
    • Line 64: warning: exported method FollowerDB.Delete should have comment or be unexported (golint)
    • Line 74: warning: exported method FollowerDB.Count should have comment or be unexported (golint)
    • Line 86: warning: exported method FollowerDB.FollowsMe should have comment or be unexported (golint)
    • openbazaar-go/ipfs/pubsub.go
    • Line 21: warning: exported type Pubsub should have comment or be unexported (golint)
    • Line 75: warning: exported method PubsubPublisher.Publish should have comment or be unexported (golint)
    • Line 93: warning: exported method PubsubSubscriber.Subscribe 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 45: warning: comment on exported const EthereumRegistryAddressMainnet should be of the form "EthereumRegistryAddressMainnet ..." (golint)
    • Line 54: warning: don't use underscores in Go names; const BootstrapNodeTestnet_BrooklynFlea should be BootstrapNodeTestnetBrooklynFlea (golint)
    • Line 55: warning: don't use underscores in Go names; const BootstrapNodeTestnet_Shipshewana should be BootstrapNodeTestnetShipshewana (golint)
    • Line 56: warning: don't use underscores in Go names; const BootstrapNodeDefault_LeMarcheSerpette should be BootstrapNodeDefaultLeMarcheSerpette (golint)
    • Line 57: warning: don't use underscores in Go names; const BootstrapNodeDefault_BrixtonVillage should be BootstrapNodeDefaultBrixtonVillage (golint)
    • Line 58: warning: don't use underscores in Go names; const BootstrapNodeDefault_Johari should be BootstrapNodeDefaultJohari (golint)
    • Line 65: warning: comment on exported var ErrorEmptyMnemonic should be of the form "ErrorEmptyMnemonic ..." (golint)
    • Line 71: warning: exported var DataPushNodes should have comment or be unexported (golint)
    • Line 84: warning: exported function EthereumDefaultOptions should have comment or be unexported (golint)
    • Line 93: warning: exported const WalletTypeAPI should have comment (or a comment on this block) or be unexported (golint)
    • Line 98: warning: exported const CoinAPIOpenBazaarBTC should have comment (or a comment on this block) or be unexported (golint)
    • Line 112: warning: exported var CoinPoolBTC should have comment or be unexported (golint)
    • openbazaar-go/repo/db/moderatedstores.go
    • Line 12: warning: exported type ModeratedDB should have comment or be unexported (golint)
    • Line 16: warning: exported function NewModeratedStore should have comment or be unexported (golint)
    • Line 20: warning: exported method ModeratedDB.Put should have comment or be unexported (golint)
    • Line 36: warning: exported method ModeratedDB.Get should have comment or be unexported (golint)
    • Line 63: warning: exported method ModeratedDB.Delete should have comment or be unexported (golint)
    • openbazaar-go/repo/db/offinemessages.go
    • Line 12: warning: exported type OfflineMessagesDB should have comment or be unexported (golint)
    • Line 16: warning: exported function NewOfflineMessageStore should have comment or be unexported (golint)
    • Line 20: warning: exported method OfflineMessagesDB.Put should have comment or be unexported (golint)
    • Line 36: warning: exported method OfflineMessagesDB.Has should have comment or be unexported (golint)
    • Line 49: warning: exported method OfflineMessagesDB.SetMessage should have comment or be unexported (golint)
    • Line 59: warning: exported method OfflineMessagesDB.GetMessages should have comment or be unexported (golint)
    • Line 83: warning: exported method OfflineMessagesDB.DeleteMessage 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/db/utxos.go
    • Line 17: warning: exported type UtxoDB should have comment or be unexported (golint)
    • Line 22: warning: exported function NewUnspentTransactionStore should have comment or be unexported (golint)
    • Line 26: warning: exported method UtxoDB.Put should have comment or be unexported (golint)
    • Line 47: 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/watched_scripts.go
    • Line 13: warning: exported type WatchedScriptsDB should have comment or be unexported (golint)
    • Line 18: warning: exported function NewWatchedScriptStore should have comment or be unexported (golint)
    • Line 22: warning: exported method WatchedScriptsDB.PutAll should have comment or be unexported (golint)
    • Line 53: warning: exported method WatchedScriptsDB.Put should have comment or be unexported (golint)
    • Line 69: warning: exported method WatchedScriptsDB.GetAll should have comment or be unexported (golint)
    • Line 95: warning: exported method WatchedScriptsDB.Delete 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/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/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/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 47: warning: exported method StxoDB.GetAll should have comment or be unexported (golint)
    • Line 105: 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/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 56: warning: exported method Migration003.Down should have comment or be unexported (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 44: warning: exported method SettingsDB.Get should have comment or be unexported (golint)
    • Line 65: warning: exported method SettingsDB.Update 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/migrations/Migration009.go
    • Line 12: 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/init.go
    • Line 20: warning: exported const RepoVersion should have comment or be unexported (golint)
    • Line 23: warning: exported var ErrRepoExists should have comment or be unexported (golint)
    • Line 29: warning: exported function DoInit should have comment or be unexported (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 66: warning: exported method Migration002.Down 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 29: warning: exported type Migration017 should have comment or be unexported (golint)
    • Line 31: warning: exported method Migration017.Up should have comment or be unexported (golint)
    • Line 61: warning: exported method Migration017.Down should have comment or be unexported (golint)
    • openbazaar-go/wallet/status.go
    • Line 13: warning: exported type StatusUpdater should have comment or be unexported (golint)
    • Line 31: warning: context.Context should be the first parameter of a function (golint)
    • Line 31: warning: exported function NewStatusUpdater should have comment or be unexported (golint)
    • Line 41: warning: exported method StatusUpdater.Start should have comment or be unexported (golint)
    • openbazaar-go/mobile/node.go
    • Line 29: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 534: warning: exported method Node.Restart should have comment or be unexported (golint)
    • openbazaar-go/repo/db/cases.go
    • Line 17: warning: exported type CasesDB should have comment or be unexported (golint)
    • Line 21: warning: exported function NewCaseStore should have comment or be unexported (golint)
    • Line 25: warning: exported method CasesDB.PutRecord should have comment or be unexported (golint)
    • Line 64: warning: exported method CasesDB.Put should have comment or be unexported (golint)
    • Line 82: warning: exported method CasesDB.UpdateBuyerInfo should have comment or be unexported (golint)
    • Line 118: warning: exported method CasesDB.UpdateVendorInfo should have comment or be unexported (golint)
    • Line 154: warning: exported method CasesDB.MarkAsRead should have comment or be unexported (golint)
    • Line 164: warning: exported method CasesDB.MarkAsUnread should have comment or be unexported (golint)
    • Line 174: warning: exported method CasesDB.MarkAsClosed should have comment or be unexported (golint)
    • Line 199: warning: exported method CasesDB.Delete should have comment or be unexported (golint)
    • Line 209: warning: exported method CasesDB.GetAll should have comment or be unexported (golint)
    • Line 331: warning: exported method CasesDB.GetCaseMetadata should have comment or be unexported (golint)
    • Line 410: warning: exported method CasesDB.GetByCaseID should have comment or be unexported (golint)
    • Line 508: warning: exported method CasesDB.Count should have comment or be unexported (golint)
    • openbazaar-go/repo/checkout.go
    • Line 3: warning: exported type CheckoutVariant should have comment or be unexported (golint)
    • Line 9: warning: exported type CheckoutCurrency should have comment or be unexported (golint)
    • Line 14: warning: exported type CheckoutBreakdown 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/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/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 46: warning: exported type Follower should have comment or be unexported (golint)
    • Line 51: warning: exported type Coupon should have comment or be unexported (golint)
    • Line 57: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 66: warning: exported type Purchase should have comment or be unexported (golint)
    • Line 85: warning: exported type Sale should have comment or be unexported (golint)
    • Line 104: warning: exported type Case should have comment or be unexported (golint)
    • Line 123: warning: exported type UnfundedOrder should have comment or be unexported (golint)
    • Line 130: warning: exported type OrderMessage should have comment or be unexported (golint)
    • openbazaar-go/net/retriever/retriever.go
    • Line 30: warning: exported const DefaultPointerPrefixLength should have comment or be unexported (golint)
    • Line 34: warning: exported type MRConfig should have comment or be unexported (golint)
    • Line 47: warning: exported type MessageRetriever should have comment or be unexported (golint)
    • Line 69: warning: exported function NewMessageRetriever should have comment or be unexported (golint)
    • Line 98: warning: exported method MessageRetriever.Run should have comment or be unexported (golint)
    • Line 436: warning: exported var MessageProcessingOrder 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 73: warning: exported method Migration000.Down 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/repo/migrations/Migration013.go
    • Line 18: warning: exported type Migration013 should have comment or be unexported (golint)
    • Line 20: warning: don't use underscores in Go names; type Migration013_TransactionRecord_beforeMigration should be Migration013TransactionRecordBeforeMigration (golint)
    • Line 20: warning: exported type Migration013_TransactionRecord_beforeMigration should have comment or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; type Migration013_TransactionRecord_afterMigration should be Migration013TransactionRecordAfterMigration (golint)
    • Line 29: warning: exported type Migration013_TransactionRecord_afterMigration should have comment or be unexported (golint)
    • Line 38: warning: don't use underscores in Go names; type migration013_record should be migration013Record (golint)
    • Line 45: warning: exported method Migration013.Up should have comment or be unexported (golint)
    • Line 76: warning: exported method Migration013.Down should have comment or be unexported (golint)
    • Line 107: warning: don't use underscores in Go names; func migration013_extractRecords should be migration013ExtractRecords (golint)
    • Line 144: warning: don't use underscores in Go names; func migration013_updateRecords should be migration013UpdateRecords (golint)
    • Line 210: warning: exported function Migration013_ChainConfigParams should have comment or be unexported (golint)
    • Line 210: warning: don't use underscores in Go names; func Migration013_ChainConfigParams should be Migration013ChainConfigParams (golint)
    • Line 217: warning: exported function Migration013_ScriptToAddress should have comment or be unexported (golint)
    • Line 217: warning: don't use underscores in Go names; func Migration013_ScriptToAddress should be Migration013ScriptToAddress (golint)
    • Line 246: warning: don't use underscores in Go names; func migration013_DecodeBCHAddress should be migration013DecodeBCHAddress (golint)
    • Line 265: warning: exported function Migration013_AddressToScript should have comment or be unexported (golint)
    • Line 265: warning: don't use underscores in Go names; func Migration013_AddressToScript should be Migration013AddressToScript (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/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/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 150: warning: exported method NotficationsDB.MarkAllAsRead should have comment or be unexported (golint)
    • Line 157: warning: exported method NotficationsDB.Delete should have comment or be unexported (golint)
    • Line 167: warning: exported method NotficationsDB.GetUnreadCount should have comment or be unexported (golint)
    • openbazaar-go/repo/db/sales.go
    • Line 20: warning: exported type SalesDB should have comment or be unexported (golint)
    • Line 24: warning: exported function NewSaleStore should have comment or be unexported (golint)
    • Line 28: warning: exported method SalesDB.Put should have comment or be unexported (golint)
    • Line 101: warning: exported method SalesDB.MarkAsRead should have comment or be unexported (golint)
    • Line 111: warning: exported method SalesDB.MarkAsUnread should have comment or be unexported (golint)
    • Line 121: warning: exported method SalesDB.UpdateFunding should have comment or be unexported (golint)
    • Line 140: warning: exported method SalesDB.Delete should have comment or be unexported (golint)
    • Line 150: warning: exported method SalesDB.GetAll should have comment or be unexported (golint)
    • Line 249: warning: exported method SalesDB.GetByPaymentAddress should have comment or be unexported (golint)
    • Line 292: warning: exported method SalesDB.GetByOrderId should have comment or be unexported (golint)
    • Line 340: warning: exported method SalesDB.Count should have comment or be unexported (golint)
    • Line 352: warning: exported method SalesDB.GetUnfunded should have comment or be unexported (golint)
    • openbazaar-go/api/jsonapi.go
    • Line 53: warning: exported type JSONAPIConfig should have comment or be unexported (golint)
    • Line 69: warning: exported type APIError should have comment or be unexported (golint)
    • Line 76: warning: exported const OfflineMessageScanInterval should have comment or be unexported (golint)
    • Line 197: warning: exported function ErrorResponse should have comment or be unexported (golint)
    • Line 205: warning: exported function JSONErrorResponse should have comment or be unexported (golint)
    • Line 210: warning: exported function RenderJSONOrStringError should have comment or be unexported (golint)
    • Line 221: warning: exported function SanitizedResponse should have comment or be unexported (golint)
    • Line 230: warning: exported function SanitizedResponseM should have comment or be unexported (golint)
    • openbazaar-go/wallet/builder.go
    • Line 31: warning: exported const InvalidCoinType should have comment or be unexported (golint)
    • Line 351: warning: exported type WalletDatastore should have comment or be unexported (golint)
    • Line 359: warning: exported method WalletDatastore.Keys should have comment or be unexported (golint)
    • Line 362: warning: exported method WalletDatastore.Stxos should have comment or be unexported (golint)
    • Line 365: warning: exported method WalletDatastore.Txns should have comment or be unexported (golint)
    • Line 368: warning: exported method WalletDatastore.Utxos should have comment or be unexported (golint)
    • Line 371: warning: exported method WalletDatastore.WatchedScripts should have comment or be unexported (golint)
    • Line 375: 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/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 48: warning: exported method PointersDB.Delete should have comment or be unexported (golint)
    • Line 58: warning: exported method PointersDB.DeleteAll should have comment or be unexported (golint)
    • Line 68: warning: exported method PointersDB.GetAll should have comment or be unexported (golint)
    • Line 123: warning: exported method PointersDB.GetByPurpose should have comment or be unexported (golint)
    • Line 178: warning: exported method PointersDB.Get should have comment or be unexported (golint)
    • openbazaar-go/repo/signed_listing.go
    • Line 28: warning: exported function NewSignedListingFromProtobuf should have comment or be unexported (golint)
    • Line 42: warning: exported method SignedListing.Reset should have comment or be unexported (golint)
    • Line 44: warning: exported method SignedListing.ProtoMessage should have comment or be unexported (golint)
    • Line 109: warning: exported method SignedListing.MarshalJSON 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/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/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 154: warning: exported method Migration008.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration010.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 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/test/factory/currency.go
    • Line 11: warning: exported function NewCurrencyDefinition should have comment or be unexported (golint)
    • Line 28: warning: exported function MustNewCurrencyValue should have comment or be unexported (golint)
    • Line 39: warning: exported function MustNewCurrencyValueUsingDiv 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/wallet/listeners/transaction_listener.go
    • Line 24: warning: exported type TransactionListener should have comment or be unexported (golint)
    • Line 31: warning: exported function NewTransactionListener should have comment or be unexported (golint)
    • Line 92: warning: exported method TransactionListener.OnTransactionReceived 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/Migration030.go
    • Line 10: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 14: warning: don't use underscores in Go names; var am03_up_create_utxos should be am03UpCreateUtxos (golint)
    • Line 15: warning: don't use underscores in Go names; var am03_down_create_utxos should be am03DownCreateUtxos (golint)
    • Line 16: warning: don't use underscores in Go names; var am03_temp_utxos should be am03TempUtxos (golint)
    • Line 17: warning: don't use underscores in Go names; var am03_insert_utxos should be am03InsertUtxos (golint)
    • Line 18: warning: don't use underscores in Go names; var am03_drop_temp_utxos should be am03DropTempUtxos (golint)
    • Line 20: warning: don't use underscores in Go names; var am03_up_create_stxos should be am03UpCreateStxos (golint)
    • Line 21: warning: don't use underscores in Go names; var am03_down_create_stxos should be am03DownCreateStxos (golint)
    • Line 22: warning: don't use underscores in Go names; var am03_temp_stxos should be am03TempStxos (golint)
    • Line 23: warning: don't use underscores in Go names; var am03_insert_stxos should be am03InsertStxos (golint)
    • Line 24: warning: don't use underscores in Go names; var am03_drop_temp_stxos should be am03DropTempStxos (golint)
    • Line 26: warning: don't use underscores in Go names; var am03_up_create_txns should be am03UpCreateTxns (golint)
    • Line 27: warning: don't use underscores in Go names; var am03_down_create_txns should be am03DownCreateTxns (golint)
    • Line 28: warning: don't use underscores in Go names; var am03_temp_txns should be am03TempTxns (golint)
    • Line 29: warning: don't use underscores in Go names; var am03_insert_txns should be am03InsertTxns (golint)
    • Line 30: warning: don't use underscores in Go names; var am03_drop_temp_txns should be am03DropTempTxns (golint)
    • Line 33: warning: exported type Migration030 should have comment or be unexported (golint)
    • Line 35: warning: exported type AM03 should have comment or be unexported (golint)
    • Line 37: warning: exported method AM03.Up should have comment or be unexported (golint)
    • Line 95: warning: exported method AM03.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/db/inventory.go
    • Line 16: warning: exported type InventoryDB should have comment or be unexported (golint)
    • Line 20: warning: exported function NewInventoryStore should have comment or be unexported (golint)
    • Line 24: 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 62: warning: exported method InventoryDB.Get should have comment or be unexported (golint)
    • Line 97: warning: exported method InventoryDB.GetAll should have comment or be unexported (golint)
    • Line 134: warning: exported method InventoryDB.Delete should have comment or be unexported (golint)
    • Line 141: warning: exported method InventoryDB.DeleteAll should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration027.go
    • Line 13: warning: exported type Migration027 should have comment or be unexported (golint)
    • Line 19: warning: don't use underscores in Go names; type UpdateListingHash_Price should be UpdateListingHashPrice (golint)
    • Line 19: warning: exported type UpdateListingHash_Price should have comment or be unexported (golint)
    • Line 24: warning: don't use underscores in Go names; type UpdateListingHash_Thumbnail should be UpdateListingHashThumbnail (golint)
    • Line 24: warning: exported type UpdateListingHash_Thumbnail should have comment or be unexported (golint)
    • Line 30: warning: don't use underscores in Go names; type UpdateListingHash_ListingData should be UpdateListingHashListingData (golint)
    • Line 30: warning: exported type UpdateListingHash_ListingData should have comment or be unexported (golint)
    • Line 50: warning: exported method UpdateListingHash.Up should have comment or be unexported (golint)
    • Line 93: warning: exported method UpdateListingHash.Down 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/repo/db/db.go
    • Line 13: 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 45: warning: exported function Create should have comment or be unexported (golint)
    • Line 67: warning: exported function NewSQLiteDatastore should have comment or be unexported (golint)
    • Line 95: warning: exported type DB should have comment or be unexported (golint)
    • Line 100: warning: exported method SQLiteDatastore.DB should have comment or be unexported (golint)
    • Line 104: warning: exported method SQLiteDatastore.Ping should have comment or be unexported (golint)
    • Line 108: warning: exported method SQLiteDatastore.Close should have comment or be unexported (golint)
    • Line 112: warning: exported method SQLiteDatastore.Config should have comment or be unexported (golint)
    • Line 116: warning: exported method SQLiteDatastore.Followers should have comment or be unexported (golint)
    • Line 120: warning: exported method SQLiteDatastore.Following should have comment or be unexported (golint)
    • Line 124: warning: exported method SQLiteDatastore.OfflineMessages should have comment or be unexported (golint)
    • Line 128: warning: exported method SQLiteDatastore.Pointers should have comment or be unexported (golint)
    • Line 132: warning: exported method SQLiteDatastore.Keys should have comment or be unexported (golint)
    • Line 136: warning: exported method SQLiteDatastore.Stxos should have comment or be unexported (golint)
    • Line 140: warning: exported method SQLiteDatastore.Txns should have comment or be unexported (golint)
    • Line 144: warning: exported method SQLiteDatastore.Utxos should have comment or be unexported (golint)
    • Line 148: warning: exported method SQLiteDatastore.Settings should have comment or be unexported (golint)
    • Line 152: warning: exported method SQLiteDatastore.Inventory should have comment or be unexported (golint)
    • Line 156: warning: exported method SQLiteDatastore.Purchases should have comment or be unexported (golint)
    • Line 160: warning: exported method SQLiteDatastore.Sales should have comment or be unexported (golint)
    • Line 164: warning: exported method SQLiteDatastore.WatchedScripts should have comment or be unexported (golint)
    • Line 168: warning: exported method SQLiteDatastore.Cases should have comment or be unexported (golint)
    • Line 172: warning: exported method SQLiteDatastore.Chat should have comment or be unexported (golint)
    • Line 176: warning: exported method SQLiteDatastore.Notifications should have comment or be unexported (golint)
    • Line 180: warning: exported method SQLiteDatastore.Coupons should have comment or be unexported (golint)
    • Line 184: warning: exported method SQLiteDatastore.TxMetadata should have comment or be unexported (golint)
    • Line 188: warning: exported method SQLiteDatastore.ModeratedStores should have comment or be unexported (golint)
    • Line 197: warning: exported method SQLiteDatastore.Copy should have comment or be unexported (golint)
    • Line 235: warning: exported method SQLiteDatastore.InitTables should have comment or be unexported (golint)
    • Line 235: warning: receiver name s should be consistent with previous receiver name d for SQLiteDatastore (golint)
    • Line 244: warning: exported type ConfigDB should have comment or be unexported (golint)
    • Line 248: warning: exported method ConfigDB.Init should have comment or be unexported (golint)
    • Line 275: warning: exported method ConfigDB.GetMnemonic should have comment or be unexported (golint)
    • Line 291: warning: exported method ConfigDB.GetIdentityKey should have comment or be unexported (golint)
    • Line 307: warning: exported method ConfigDB.GetCreationDate should have comment or be unexported (golint)
    • Line 324: warning: exported method ConfigDB.IsEncrypted should have comment or be unexported (golint)
    • openbazaar-go/repo/dispute_case_record.go
    • Line 11: warning: don't use underscores in Go names; var ModeratorDisputeExpiry_firstInterval should be ModeratorDisputeExpiryFirstInterval (golint)
    • Line 11: warning: exported var ModeratorDisputeExpiry_firstInterval should have comment or be unexported (golint)
    • Line 12: warning: don't use underscores in Go names; var ModeratorDisputeExpiry_secondInterval should be ModeratorDisputeExpirySecondInterval (golint)
    • Line 13: warning: don't use underscores in Go names; var ModeratorDisputeExpiry_thirdInterval should be ModeratorDisputeExpiryThirdInterval (golint)
    • Line 14: warning: don't use underscores in Go names; var ModeratorDisputeExpiry_lastInterval should be ModeratorDisputeExpiryLastInterval (golint)
    • Line 83: warning: comment on exported method DisputeCaseRecord.IsExpiredNow should be of the form "IsExpiredNow ..." (golint)
    • openbazaar-go/cmd/encrypt.go
    • Line 19: warning: exported type EncryptDatabase should have comment or be unexported (golint)
    • Line 23: warning: exported method EncryptDatabase.Execute 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 39: warning: exported method TxMetadataDB.Get should have comment or be unexported (golint)
    • Line 62: warning: exported method TxMetadataDB.GetAll should have comment or be unexported (golint)
    • Line 95: warning: exported method TxMetadataDB.Delete should have comment or be unexported (golint)
    • openbazaar-go/repo/db/util.go
    • Line 8: warning: exported function PaymentCoinForContract should have comment or be unexported (golint)
    • Line 22: warning: exported function CoinTypeForContract 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/migrations/Migration016.go
    • Line 17: warning: exported type Migration016WalletsConfig should have comment or be unexported (golint)
    • Line 118: warning: exported type Migration016 should have comment or be unexported (golint)
    • Line 120: warning: exported method Migration016.Up should have comment or be unexported (golint)
    • Line 150: warning: exported method Migration016.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration025.go
    • Line 8: warning: exported type Migration025 should have comment or be unexported (golint)
    • Line 10: warning: exported method Migration025.Up should have comment or be unexported (golint)
    • Line 50: warning: exported method Migration025.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/db/coupons.go
    • Line 11: warning: exported type CouponDB should have comment or be unexported (golint)
    • Line 15: warning: exported function NewCouponStore should have comment or be unexported (golint)
    • Line 19: warning: exported method CouponDB.Put should have comment or be unexported (golint)
    • Line 44: warning: exported method CouponDB.Get should have comment or be unexported (golint)
    • Line 68: warning: exported method CouponDB.Delete should have comment or be unexported (golint)
    • openbazaar-go/repo/notification.go
    • Line 65: warning: exported method Notification.GetID should have comment or be unexported (golint)
    • Line 66: warning: exported method Notification.GetTypeString should have comment or be unexported (golint)
    • Line 67: warning: exported method Notification.GetType should have comment or be unexported (golint)
    • Line 73: warning: exported method Notification.GetUnixCreatedAt should have comment or be unexported (golint)
    • Line 74: warning: exported method Notification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 77: warning: exported method Notification.Data should have comment or be unexported (golint)
    • Line 78: warning: exported method Notification.WebsocketData should have comment or be unexported (golint)
    • Line 87: warning: exported method Notification.MarshalJSON should have comment or be unexported (golint)
    • Line 101: warning: exported method Notification.UnmarshalJSON should have comment or be unexported (golint)
    • Line 398: warning: exported type Thumbnail should have comment or be unexported (golint)
    • Line 423: warning: exported type OrderNotification should have comment or be unexported (golint)
    • Line 437: warning: exported type ListingPrice should have comment or be unexported (golint)
    • Line 444: warning: exported type OrderNotificationV4 should have comment or be unexported (golint)
    • Line 458: warning: exported method OrderNotification.Data should have comment or be unexported (golint)
    • Line 461: warning: exported method OrderNotification.WebsocketData should have comment or be unexported (golint)
    • Line 464: warning: exported method OrderNotification.GetID should have comment or be unexported (golint)
    • Line 465: warning: exported method OrderNotification.GetType should have comment or be unexported (golint)
    • Line 466: warning: exported method OrderNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 477: warning: exported type PaymentNotification should have comment or be unexported (golint)
    • Line 485: warning: exported method PaymentNotification.Data should have comment or be unexported (golint)
    • Line 488: warning: exported method PaymentNotification.WebsocketData should have comment or be unexported (golint)
    • Line 491: warning: exported method PaymentNotification.GetID should have comment or be unexported (golint)
    • Line 492: warning: exported method PaymentNotification.GetType should have comment or be unexported (golint)
    • Line 493: warning: exported method PaymentNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 498: warning: exported type OrderConfirmationNotification should have comment or be unexported (golint)
    • Line 507: warning: exported method OrderConfirmationNotification.Data should have comment or be unexported (golint)
    • Line 510: warning: exported method OrderConfirmationNotification.WebsocketData should have comment or be unexported (golint)
    • Line 513: warning: exported method OrderConfirmationNotification.GetID should have comment or be unexported (golint)
    • Line 514: warning: exported method OrderConfirmationNotification.GetType should have comment or be unexported (golint)
    • Line 517: warning: exported method OrderConfirmationNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 522: warning: exported type OrderDeclinedNotification should have comment or be unexported (golint)
    • Line 531: warning: exported method OrderDeclinedNotification.Data should have comment or be unexported (golint)
    • Line 534: warning: exported method OrderDeclinedNotification.WebsocketData should have comment or be unexported (golint)
    • Line 537: warning: exported method OrderDeclinedNotification.GetID should have comment or be unexported (golint)
    • Line 538: warning: exported method OrderDeclinedNotification.GetType should have comment or be unexported (golint)
    • Line 541: warning: exported method OrderDeclinedNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 543: warning: exported type OrderCancelNotification should have comment or be unexported (golint)
    • Line 552: warning: exported method OrderCancelNotification.Data should have comment or be unexported (golint)
    • Line 555: warning: exported method OrderCancelNotification.WebsocketData should have comment or be unexported (golint)
    • Line 558: warning: exported method OrderCancelNotification.GetID should have comment or be unexported (golint)
    • Line 559: warning: exported method OrderCancelNotification.GetType should have comment or be unexported (golint)
    • Line 562: warning: exported method OrderCancelNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 567: warning: exported type RefundNotification should have comment or be unexported (golint)
    • Line 576: warning: exported method RefundNotification.Data should have comment or be unexported (golint)
    • Line 579: warning: exported method RefundNotification.WebsocketData should have comment or be unexported (golint)
    • Line 582: warning: exported method RefundNotification.GetID should have comment or be unexported (golint)
    • Line 583: warning: exported method RefundNotification.GetType should have comment or be unexported (golint)
    • Line 584: warning: exported method RefundNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 589: warning: exported type FulfillmentNotification should have comment or be unexported (golint)
    • Line 598: warning: exported method FulfillmentNotification.Data should have comment or be unexported (golint)
    • Line 601: warning: exported method FulfillmentNotification.WebsocketData should have comment or be unexported (golint)
    • Line 604: warning: exported method FulfillmentNotification.GetID should have comment or be unexported (golint)
    • Line 605: warning: exported method FulfillmentNotification.GetType should have comment or be unexported (golint)
    • Line 608: warning: exported method FulfillmentNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 613: warning: exported type ProcessingErrorNotification should have comment or be unexported (golint)
    • Line 622: warning: exported method ProcessingErrorNotification.Data should have comment or be unexported (golint)
    • Line 625: warning: exported method ProcessingErrorNotification.WebsocketData should have comment or be unexported (golint)
    • Line 628: warning: exported method ProcessingErrorNotification.GetID should have comment or be unexported (golint)
    • Line 629: warning: exported method ProcessingErrorNotification.GetType should have comment or be unexported (golint)
    • Line 632: warning: exported method ProcessingErrorNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 636: warning: exported type CompletionNotification should have comment or be unexported (golint)
    • Line 645: warning: exported method CompletionNotification.Data should have comment or be unexported (golint)
    • Line 648: warning: exported method CompletionNotification.WebsocketData should have comment or be unexported (golint)
    • Line 651: warning: exported method CompletionNotification.GetID should have comment or be unexported (golint)
    • Line 652: warning: exported method CompletionNotification.GetType should have comment or be unexported (golint)
    • Line 653: warning: exported method CompletionNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 658: warning: exported type DisputeOpenNotification should have comment or be unexported (golint)
    • Line 670: warning: exported method DisputeOpenNotification.Data should have comment or be unexported (golint)
    • Line 673: warning: exported method DisputeOpenNotification.WebsocketData should have comment or be unexported (golint)
    • Line 676: warning: exported method DisputeOpenNotification.GetID should have comment or be unexported (golint)
    • Line 677: warning: exported method DisputeOpenNotification.GetType should have comment or be unexported (golint)
    • Line 680: warning: exported method DisputeOpenNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 685: warning: exported type DisputeUpdateNotification should have comment or be unexported (golint)
    • Line 697: warning: exported method DisputeUpdateNotification.Data should have comment or be unexported (golint)
    • Line 700: warning: exported method DisputeUpdateNotification.WebsocketData should have comment or be unexported (golint)
    • Line 703: warning: exported method DisputeUpdateNotification.GetID should have comment or be unexported (golint)
    • Line 704: warning: exported method DisputeUpdateNotification.GetType should have comment or be unexported (golint)
    • Line 707: warning: exported method DisputeUpdateNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 712: warning: exported type DisputeCloseNotification should have comment or be unexported (golint)
    • Line 722: warning: exported method DisputeCloseNotification.Data should have comment or be unexported (golint)
    • Line 725: warning: exported method DisputeCloseNotification.WebsocketData should have comment or be unexported (golint)
    • Line 728: warning: exported method DisputeCloseNotification.GetID should have comment or be unexported (golint)
    • Line 729: warning: exported method DisputeCloseNotification.GetType should have comment or be unexported (golint)
    • Line 732: warning: exported method DisputeCloseNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 737: warning: exported type DisputeAcceptedNotification should have comment or be unexported (golint)
    • Line 747: warning: exported method DisputeAcceptedNotification.Data should have comment or be unexported (golint)
    • Line 750: warning: exported method DisputeAcceptedNotification.WebsocketData should have comment or be unexported (golint)
    • Line 753: warning: exported method DisputeAcceptedNotification.GetID should have comment or be unexported (golint)
    • Line 754: warning: exported method DisputeAcceptedNotification.GetType should have comment or be unexported (golint)
    • Line 757: warning: exported method DisputeAcceptedNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 761: warning: exported type FollowNotification should have comment or be unexported (golint)
    • Line 767: warning: exported method FollowNotification.Data should have comment or be unexported (golint)
    • Line 770: warning: exported method FollowNotification.WebsocketData should have comment or be unexported (golint)
    • Line 773: warning: exported method FollowNotification.GetID should have comment or be unexported (golint)
    • Line 774: warning: exported method FollowNotification.GetType should have comment or be unexported (golint)
    • Line 777: warning: exported method FollowNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 779: warning: exported type UnfollowNotification should have comment or be unexported (golint)
    • Line 785: warning: exported method UnfollowNotification.Data should have comment or be unexported (golint)
    • Line 788: warning: exported method UnfollowNotification.WebsocketData should have comment or be unexported (golint)
    • Line 791: warning: exported method UnfollowNotification.GetID should have comment or be unexported (golint)
    • Line 792: warning: exported method UnfollowNotification.GetType should have comment or be unexported (golint)
    • Line 793: warning: exported method UnfollowNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 795: warning: exported type ModeratorAddNotification should have comment or be unexported (golint)
    • Line 801: warning: exported method ModeratorAddNotification.Data should have comment or be unexported (golint)
    • Line 804: warning: exported method ModeratorAddNotification.WebsocketData should have comment or be unexported (golint)
    • Line 807: warning: exported method ModeratorAddNotification.GetID should have comment or be unexported (golint)
    • Line 808: warning: exported method ModeratorAddNotification.GetType should have comment or be unexported (golint)
    • Line 811: warning: exported method ModeratorAddNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 813: warning: exported type ModeratorRemoveNotification should have comment or be unexported (golint)
    • Line 819: warning: exported method ModeratorRemoveNotification.Data should have comment or be unexported (golint)
    • Line 822: warning: exported method ModeratorRemoveNotification.WebsocketData should have comment or be unexported (golint)
    • Line 825: warning: exported method ModeratorRemoveNotification.GetID should have comment or be unexported (golint)
    • Line 826: warning: exported method ModeratorRemoveNotification.GetType should have comment or be unexported (golint)
    • Line 829: warning: exported method ModeratorRemoveNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 833: warning: exported type StatusNotification should have comment or be unexported (golint)
    • Line 837: warning: exported method StatusNotification.Data should have comment or be unexported (golint)
    • Line 838: warning: exported method StatusNotification.WebsocketData should have comment or be unexported (golint)
    • Line 839: warning: exported method StatusNotification.GetID should have comment or be unexported (golint)
    • Line 840: warning: exported method StatusNotification.GetType should have comment or be unexported (golint)
    • Line 841: warning: exported method StatusNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 846: warning: exported method ChatMessageNotification.Data should have comment or be unexported (golint)
    • Line 849: warning: exported method ChatMessageNotification.WebsocketData should have comment or be unexported (golint)
    • Line 850: warning: exported method ChatMessageNotification.GetID should have comment or be unexported (golint)
    • Line 851: warning: exported method ChatMessageNotification.GetType should have comment or be unexported (golint)
    • Line 852: warning: exported method ChatMessageNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 854: warning: exported type ChatRead should have comment or be unexported (golint)
    • Line 860: warning: exported method ChatRead.Data should have comment or be unexported (golint)
    • Line 861: warning: exported method ChatRead.WebsocketData should have comment or be unexported (golint)
    • Line 862: warning: exported method ChatRead.GetID should have comment or be unexported (golint)
    • Line 863: warning: exported method ChatRead.GetType should have comment or be unexported (golint)
    • Line 864: warning: exported method ChatRead.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 866: warning: exported type ChatTyping should have comment or be unexported (golint)
    • Line 872: warning: exported method ChatTyping.Data should have comment or be unexported (golint)
    • Line 875: warning: exported method ChatTyping.WebsocketData should have comment or be unexported (golint)
    • Line 876: warning: exported method ChatTyping.GetID should have comment or be unexported (golint)
    • Line 877: warning: exported method ChatTyping.GetType should have comment or be unexported (golint)
    • Line 878: warning: exported method ChatTyping.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 880: warning: exported type IncomingTransaction should have comment or be unexported (golint)
    • Line 894: warning: exported method IncomingTransaction.Data should have comment or be unexported (golint)
    • Line 897: warning: exported method IncomingTransaction.WebsocketData should have comment or be unexported (golint)
    • Line 898: warning: exported method IncomingTransaction.GetID should have comment or be unexported (golint)
    • Line 899: warning: exported method IncomingTransaction.GetType should have comment or be unexported (golint)
    • Line 900: warning: exported method IncomingTransaction.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 913: warning: exported method VendorDisputeTimeout.Data should have comment or be unexported (golint)
    • Line 916: warning: exported method VendorDisputeTimeout.WebsocketData should have comment or be unexported (golint)
    • Line 919: warning: exported method VendorDisputeTimeout.GetID should have comment or be unexported (golint)
    • Line 920: warning: exported method VendorDisputeTimeout.GetType should have comment or be unexported (golint)
    • Line 921: warning: exported method VendorDisputeTimeout.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 935: warning: exported method BuyerDisputeTimeout.Data should have comment or be unexported (golint)
    • Line 938: warning: exported method BuyerDisputeTimeout.WebsocketData should have comment or be unexported (golint)
    • Line 941: warning: exported method BuyerDisputeTimeout.GetID should have comment or be unexported (golint)
    • Line 942: warning: exported method BuyerDisputeTimeout.GetType should have comment or be unexported (golint)
    • Line 943: warning: exported method BuyerDisputeTimeout.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 957: warning: exported method BuyerDisputeExpiry.Data should have comment or be unexported (golint)
    • Line 960: warning: exported method BuyerDisputeExpiry.WebsocketData should have comment or be unexported (golint)
    • Line 963: warning: exported method BuyerDisputeExpiry.GetID should have comment or be unexported (golint)
    • Line 964: warning: exported method BuyerDisputeExpiry.GetType should have comment or be unexported (golint)
    • Line 965: warning: exported method BuyerDisputeExpiry.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 977: warning: exported method VendorFinalizedPayment.Data should have comment or be unexported (golint)
    • Line 980: warning: exported method VendorFinalizedPayment.WebsocketData should have comment or be unexported (golint)
    • Line 983: warning: exported method VendorFinalizedPayment.GetID should have comment or be unexported (golint)
    • Line 984: warning: exported method VendorFinalizedPayment.GetType should have comment or be unexported (golint)
    • Line 985: warning: exported method VendorFinalizedPayment.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 1001: warning: exported method ModeratorDisputeExpiry.Data should have comment or be unexported (golint)
    • Line 1004: warning: exported method ModeratorDisputeExpiry.WebsocketData should have comment or be unexported (golint)
    • Line 1007: warning: exported method ModeratorDisputeExpiry.GetID should have comment or be unexported (golint)
    • Line 1008: warning: exported method ModeratorDisputeExpiry.GetType should have comment or be unexported (golint)
    • Line 1009: warning: exported method ModeratorDisputeExpiry.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 1011: warning: exported type TestNotification should have comment or be unexported (golint)
    • Line 1013: warning: exported method TestNotification.Data should have comment or be unexported (golint)
    • Line 1016: warning: exported method TestNotification.WebsocketData should have comment or be unexported (golint)
    • Line 1017: warning: exported method TestNotification.GetID should have comment or be unexported (golint)
    • Line 1018: warning: exported method TestNotification.GetType should have comment or be unexported (golint)
    • Line 1019: warning: exported method TestNotification.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 1031: warning: exported method PremarshalledNotifier.Data should have comment or be unexported (golint)
    • Line 1032: warning: exported method PremarshalledNotifier.WebsocketData should have comment or be unexported (golint)
    • Line 1033: warning: exported method PremarshalledNotifier.GetID should have comment or be unexported (golint)
    • Line 1034: warning: exported method PremarshalledNotifier.GetType should have comment or be unexported (golint)
    • Line 1035: warning: exported method PremarshalledNotifier.GetSMTPTitleAndBody should have comment or be unexported (golint)
    • Line 1037: warning: exported function NewNotificationID 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)
    • 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 180: warning: exported function Decrypt should have comment or be unexported (golint)
    • openbazaar-go/ipfs/pointers.go
    • Line 21: warning: exported const MagicPointerID should have comment or be unexported (golint)
    • Line 23: warning: exported type Purpose should have comment or be unexported (golint)
    • Line 26: warning: exported const MESSAGE should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: comment on exported type Pointer should be of the form "Pointer ..." (with optional leading article) (golint)
    • Line 45: warning: comment on exported function NewPointer should be of the form "NewPointer ..." (golint)
    • Line 65: warning: context.Context should be the first parameter of a function (golint)
    • Line 65: warning: exported function PublishPointer should have comment or be unexported (golint)
    • Line 69: warning: comment on exported function FindPointersAsync should be of the form "FindPointersAsync ..." (golint)
    • Line 70: warning: context.Context should be the first parameter of a function (golint)
    • Line 77: warning: comment on exported function FindPointers should be of the form "FindPointers ..." (golint)
    • Line 78: warning: context.Context should be the first parameter of a function (golint)
    • Line 86: warning: context.Context should be the first parameter of a function (golint)
    • Line 86: warning: exported function PutPointerToPeer should have comment or be unexported (golint)
    • Line 90: warning: context.Context should be the first parameter of a function (golint)
    • Line 90: warning: exported function GetPointersFromPeer should have comment or be unexported (golint)
    • Line 99: warning: context.Context should be the first parameter of a function (golint)
    • Line 130: warning: exported function CreatePointerKey should have comment or be unexported (golint)
    • openbazaar-go/repo/listing_index.go
    • Line 9: warning: exported type ListingThumbnail should have comment or be unexported (golint)
    • Line 67: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 73: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • openbazaar-go/wallet/resync/resync_manager.go
    • Line 16: warning: exported var ResyncInterval should have comment or be unexported (golint)
    • Line 18: warning: exported type ResyncManager should have comment or be unexported (golint)
    • Line 24: warning: exported function NewResyncManager should have comment or be unexported (golint)
    • Line 28: warning: exported method ResyncManager.Start should have comment or be unexported (golint)
    • Line 35: warning: exported method ResyncManager.CheckUnfunded 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 65: warning: exported method Migration004.Down 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 74: warning: exported method OpenBazaarService.HandleNewStream should have comment or be unexported (golint)
    • Line 186: warning: exported method OpenBazaarService.SendRequest should have comment or be unexported (golint)
    • Line 208: warning: exported method OpenBazaarService.SendMessage 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/repo/db/chat.go
    • Line 13: warning: exported type ChatDB should have comment or be unexported (golint)
    • Line 17: warning: exported function NewChatStore should have comment or be unexported (golint)
    • Line 21: warning: exported method ChatDB.Put should have comment or be unexported (golint)
    • Line 63: warning: exported method ChatDB.GetConversations should have comment or be unexported (golint)
    • Line 119: warning: exported method ChatDB.GetMessages should have comment or be unexported (golint)
    • Line 175: warning: exported method ChatDB.MarkAsRead should have comment or be unexported (golint)
    • Line 230: warning: exported method ChatDB.GetUnreadCount should have comment or be unexported (golint)
    • Line 241: warning: exported method ChatDB.DeleteMessage should have comment or be unexported (golint)
    • Line 251: warning: exported method ChatDB.DeleteConversation should have comment or be unexported (golint)
    • openbazaar-go/repo/currency.go
    • Line 14: warning: exported const CurrencyCodeValidMinimumLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported var ErrCurrencyValueInsufficientPrecision should have comment or be unexported (golint)
    • Line 32: warning: exported method CurrencyValue.MarshalJSON should have comment or be unexported (golint)
    • Line 48: warning: exported method CurrencyValue.UnmarshalJSON should have comment or be unexported (golint)
    • openbazaar-go/repo/datastore.go
    • Line 16: warning: exported type Datastore should have comment or be unexported (golint)
    • Line 37: warning: exported type Queryable should have comment or be unexported (golint)
    • Line 46: warning: exported type Config should have comment or be unexported (golint)
    • Line 64: warning: exported type FollowerStore should have comment or be unexported (golint)
    • Line 84: warning: exported type FollowingStore should have comment or be unexported (golint)
    • Line 104: warning: exported type OfflineMessageStore should have comment or be unexported (golint)
    • Line 123: warning: exported type PointerStore should have comment or be unexported (golint)
    • Line 145: warning: exported type ConfigurationStore should have comment or be unexported (golint)
    • Line 161: warning: exported type InventoryStore should have comment or be unexported (golint)
    • Line 184: warning: exported type PurchaseStore should have comment or be unexported (golint)
    • Line 232: warning: exported type SaleStore should have comment or be unexported (golint)
    • Line 273: warning: exported type CaseStore should have comment or be unexported (golint)
    • Line 320: warning: exported type ChatStore should have comment or be unexported (golint)
    • Line 347: warning: exported type NotificationStore should have comment or be unexported (golint)
    • Line 369: warning: exported type CouponStore should have comment or be unexported (golint)
    • Line 382: warning: exported type TransactionMetadataStore should have comment or be unexported (golint)
    • Line 398: warning: exported type ModeratedStore should have comment or be unexported (golint)
    • Line 412: warning: exported type KeyStore should have comment or be unexported (golint)
    • Line 417: warning: exported type SpentTransactionOutputStore should have comment or be unexported (golint)
    • Line 422: warning: exported type TransactionStore should have comment or be unexported (golint)
    • Line 427: warning: exported type UnspentTransactionOutputStore should have comment or be unexported (golint)
    • Line 432: warning: exported type WatchedScriptStore should have comment or be unexported (golint)
    • openbazaar-go/repo/listing.go
    • Line 135: warning: exported method Listing.Reset should have comment or be unexported (golint)
    • Line 137: warning: exported method Listing.ProtoMessage should have comment or be unexported (golint)
    • Line 296: warning: exported function GetPathForListingSlug should have comment or be unexported (golint)
    • Line 304: warning: exported function ToHtmlEntities should have comment or be unexported (golint)
    • Line 340: warning: comment on exported function ExtractVersionFromSignedListing should be of the form "ExtractVersionFromSignedListing ..." (golint)
    • Line 424: 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 434: 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 440: 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 446: 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 505: warning: comment on exported method Listing.SetPrices should be of the form "SetPrices ..." (golint)
    • Line 633: warning: comment on exported method Listing.GetNsfw should be of the form "GetNsfw ..." (golint)
    • Line 649: warning: comment on exported method Listing.GetWeightGrams should be of the form "GetWeightGrams ..." (golint)
    • Line 816: warning: comment on exported method Listing.GetEscrowTimeoutHours should be of the form "GetEscrowTimeoutHours ..." (golint)
    • Line 1620: 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 1719: warning: exported method Listing.ValidateCryptoListing should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration029.go
    • Line 10: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 14: warning: don't use underscores in Go names; var AM02_up_create_sales should be AM02UpCreateSales (golint)
    • Line 14: warning: exported var AM02_up_create_sales should have comment or be unexported (golint)
    • Line 15: warning: don't use underscores in Go names; var AM02_down_create_sales should be AM02DownCreateSales (golint)
    • Line 16: warning: don't use underscores in Go names; var AM02_temp_sales should be AM02TempSales (golint)
    • Line 17: warning: don't use underscores in Go names; var AM02_insert_sales should be AM02InsertSales (golint)
    • Line 18: warning: don't use underscores in Go names; var AM02_drop_temp_sales should be AM02DropTempSales (golint)
    • Line 20: warning: don't use underscores in Go names; var AM02_up_update_purchases should be AM02UpUpdatePurchases (golint)
    • Line 21: warning: don't use underscores in Go names; var AM02_up_create_purchases should be AM02UpCreatePurchases (golint)
    • Line 22: warning: don't use underscores in Go names; var AM02_down_create_purchases should be AM02DownCreatePurchases (golint)
    • Line 23: warning: don't use underscores in Go names; var AM02_temp_purchases should be AM02TempPurchases (golint)
    • Line 24: warning: don't use underscores in Go names; var AM02_insert_purchases should be AM02InsertPurchases (golint)
    • Line 25: warning: don't use underscores in Go names; var AM02_drop_temp_purchases should be AM02DropTempPurchases (golint)
    • Line 27: warning: don't use underscores in Go names; var AM02_up_create_inventory should be AM02UpCreateInventory (golint)
    • Line 28: warning: don't use underscores in Go names; var AM02_down_create_inventory should be AM02DownCreateInventory (golint)
    • Line 29: warning: don't use underscores in Go names; var AM02_temp_inventory should be AM02TempInventory (golint)
    • Line 30: warning: don't use underscores in Go names; var AM02_insert_inventory should be AM02InsertInventory (golint)
    • Line 31: warning: don't use underscores in Go names; var AM02_drop_temp_inventory should be AM02DropTempInventory (golint)
    • Line 34: warning: exported type Migration029 should have comment or be unexported (golint)
    • Line 36: warning: exported type AM02 should have comment or be unexported (golint)
    • Line 38: warning: exported var AM02UpVer should have comment or be unexported (golint)
    • Line 39: warning: exported var AM02DownVer should have comment or be unexported (golint)
    • Line 41: warning: exported method AM02.Up should have comment or be unexported (golint)
    • Line 100: warning: exported method AM02.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/db/following.go
    • Line 12: warning: exported type FollowingDB should have comment or be unexported (golint)
    • Line 16: warning: exported function NewFollowingStore should have comment or be unexported (golint)
    • Line 20: warning: exported method FollowingDB.Put should have comment or be unexported (golint)
    • Line 35: warning: exported method FollowingDB.Get should have comment or be unexported (golint)
    • Line 61: warning: exported method FollowingDB.Delete should have comment or be unexported (golint)
    • Line 71: warning: exported method FollowingDB.Count should have comment or be unexported (golint)
    • Line 83: warning: exported method FollowingDB.IsFollowing should have comment or be unexported (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 44: warning: exported method TxnsDB.Get should have comment or be unexported (golint)
    • Line 77: warning: exported method TxnsDB.GetAll should have comment or be unexported (golint)
    • Line 120: warning: exported method TxnsDB.Delete should have comment or be unexported (golint)
    • Line 130: warning: exported method TxnsDB.UpdateHeight should have comment or be unexported (golint)
    • openbazaar-go/core/spend.go
    • Line 20: warning: exported type SpendRequest should have comment or be unexported (golint)
    • Line 34: warning: exported type SpendResponse should have comment or be unexported (golint)
    • openbazaar-go/schema/configuration.go
    • Line 10: warning: exported type APIConfig should have comment or be unexported (golint)
    • Line 23: warning: exported type TorConfig should have comment or be unexported (golint)
    • Line 28: warning: exported type IpnsExtraConfig should have comment or be unexported (golint)
    • Line 33: 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 55: warning: exported type DataSharing should have comment or be unexported (golint)
    • Line 75: warning: exported function DefaultWalletsConfig should have comment or be unexported (golint)
    • Line 136: warning: exported function GetAPIConfig should have comment or be unexported (golint)
    • Line 286: warning: exported function GetWalletsConfig should have comment or be unexported (golint)
    • Line 311: warning: exported function GetTorConfig should have comment or be unexported (golint)
    • Line 357: warning: exported function GetIPNSExtraConfig should have comment or be unexported (golint)
    • Line 403: warning: exported function GetDropboxApiToken should have comment or be unexported (golint)
    • Line 428: warning: exported function GetRepublishInterval should have comment or be unexported (golint)
    • Line 459: warning: exported function GetDataSharing should have comment or be unexported (golint)
    • Line 517: warning: exported function GetTestnetBootstrapAddrs should have comment or be unexported (golint)
    • openbazaar-go/schema/manager.go
    • Line 20: 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 400: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 471: warning: comment on exported function CreateIdentityKey should be of the form "CreateIdentityKey ..." (golint)
    • Line 499: warning: exported function MustDefaultConfig 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 41: warning: exported method KeysDB.ImportKey should have comment or be unexported (golint)
    • Line 56: warning: exported method KeysDB.MarkKeyAsUsed should have comment or be unexported (golint)
    • Line 72: warning: exported method KeysDB.GetLastKeyIndex should have comment or be unexported (golint)
    • Line 92: warning: exported method KeysDB.GetPathForKey should have comment or be unexported (golint)
    • Line 114: warning: exported method KeysDB.GetKey should have comment or be unexported (golint)
    • Line 136: warning: exported method KeysDB.GetImported should have comment or be unexported (golint)
    • Line 162: warning: exported method KeysDB.GetUnused should have comment or be unexported (golint)
    • Line 183: warning: exported method KeysDB.GetAll should have comment or be unexported (golint)
    • Line 208: warning: exported method KeysDB.GetLookaheadWindows should have comment or be unexported (golint)
    • openbazaar-go/repo/chat_message.go
    • Line 3: warning: exported type ChatMessage should have comment or be unexported (golint)
    • Line 13: warning: exported type ChatConversation should have comment or be unexported (golint)
    • Line 21: warning: exported type GroupChatMessage should have comment or be unexported (golint)
    • openbazaar-go/net/service/handlers.go
    • Line 35: warning: exported method OpenBazaarService.HandlerForMsgType should have comment or be unexported (golint)
    • Line 358: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • openbazaar-go/repo/currency_definition.go
    • Line 44: warning: exported const Fiat should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported var ErrCurrencyCodeLengthInvalid should have comment or be unexported (golint)
    • Line 282: warning: exported method CurrencyDictionaryProcessingError.All should have comment or be unexported (golint)
    • openbazaar-go/ipfs/identity.go
    • Line 24: warning: exported function IdentityFromKey should have comment or be unexported (golint)
    • Line 44: warning: exported function IdentityKeyFromSeed should have comment or be unexported (golint)
    • openbazaar-go/cmd/start.go
    • Line 70: warning: exported var ErrNoGateways should have comment or be unexported (golint)
    • Line 72: warning: exported type Start should have comment or be unexported (golint)
    • Line 94: warning: exported method Start.Execute should have comment or be unexported (golint)
    • Line 731: warning: exported type DummyWriter should have comment or be unexported (golint)
    • Line 737: warning: exported type DummyListener should have comment or be unexported (golint)
    • Line 741: warning: exported method DummyListener.Addr should have comment or be unexported (golint)
    • Line 745: warning: exported method DummyListener.Accept should have comment or be unexported (golint)
    • Line 750: warning: exported method DummyListener.Close should have comment or be unexported (golint)
    • Line 886: warning: exported function InitializeRepo should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration023.go
    • Line 10: warning: don't use underscores in Go names; type Migration023_ChatMessage should be Migration023ChatMessage (golint)
    • Line 10: warning: exported type Migration023_ChatMessage should have comment or be unexported (golint)
    • Line 20: warning: exported type Migration023 should have comment or be unexported (golint)
    • Line 22: warning: exported method Migration023.Up should have comment or be unexported (golint)
    • Line 56: warning: exported method Migration023.Down should have comment or be unexported (golint)
    • openbazaar-go/repo/migrations/Migration028.go
    • Line 22: warning: exported type Migration028 should have comment or be unexported (golint)
    • Line 27: warning: don't use underscores in Go names; type MigrateListingsToV5Schema_ListingThumbnail should be MigrateListingsToV5SchemaListingThumbnail (golint)
    • Line 27: warning: exported type MigrateListingsToV5Schema_ListingThumbnail should have comment or be unexported (golint)
    • Line 33: warning: don't use underscores in Go names; type MigrateListingsToV5Schema_V5CurrencyValue should be MigrateListingsToV5SchemaV5CurrencyValue (golint)
    • Line 33: warning: exported type MigrateListingsToV5Schema_V5CurrencyValue should have comment or be unexported (golint)
    • Line 38: warning: don't use underscores in Go names; type MigrateListingsToV5Schema_V5CurrencyCode should be MigrateListingsToV5SchemaV5CurrencyCode (golint)
    • Line 38: warning: exported type MigrateListingsToV5Schema_V5CurrencyCode should have comment or be unexported (golint)
    • Line 40: warning: don't use underscores in Go names; type MigrateListingsToV5Schema_V5CurrencyDefinition should be MigrateListingsToV5SchemaV5CurrencyDefinition (golint)
    • Line 40: warning: exported type MigrateListingsToV5Schema_V5CurrencyDefinition should have comment or be unexported (golint)
    • Line 45: warning: don't use underscores in Go names; type MigrateListingsToV5Schema_V5ListingIndexData should be MigrateListingsToV5SchemaV5ListingIndexData (golint)
    • Line 45: warning: exported type MigrateListingsToV5Schema_V5ListingIndexData should have comment or be unexported (golint)
    • Line 66: warning: don't use underscores in Go names; type MigrateListingsToV5Schema_V4price should be MigrateListingsToV5SchemaV4price (golint)
    • Line 66: warning: exported type MigrateListingsToV5Schema_V4price should have comment or be unexported (golint)
    • Line 72: warning: don't use underscores in Go names; type MigrateListingsToV5Schema_V4ListingIndexData should be MigrateListingsToV5SchemaV4ListingIndexData (golint)
    • Line 72: warning: exported type MigrateListingsToV5Schema_V4ListingIndexData should have comment or be unexported (golint)
    • Line 93: warning: exported method MigrateListingsToV5Schema_V5CurrencyValue.MarshalJSON should have comment or be unexported (golint)
    • Line 109: warning: exported method MigrateListingsToV5Schema_V5CurrencyValue.UnmarshalJSON should have comment or be unexported (golint)
    • Line 770: warning: don't use underscores in Go names; func migration027_GetIdentityKey should be migration027GetIdentityKey (golint)
    • openbazaar-go/repo/migrations/Migration032.go
    • Line 11: warning: exported type Migration032 should have comment or be unexported (golint)
    • Line 18: warning: exported var AM01UpVer should have comment or be unexported (golint)
    • Line 19: warning: exported var AM01DownVer should have comment or be unexported (golint)
    • Line 21: warning: don't use underscores in Go names; type AM01_TransactionRecord_beforeMigration should be AM01TransactionRecordBeforeMigration (golint)
    • Line 21: warning: exported type AM01_TransactionRecord_beforeMigration should have comment or be unexported (golint)
    • Line 30: warning: don't use underscores in Go names; type AM01_TransactionRecord_afterMigration should be AM01TransactionRecordAfterMigration (golint)
    • Line 30: warning: exported type AM01_TransactionRecord_afterMigration should have comment or be unexported (golint)
    • Line 39: warning: don't use underscores in Go names; type AM01_record should be AM01Record (golint)
    • Line 39: warning: exported type AM01_record should have comment or be unexported (golint)
    • Line 46: warning: exported method AM01.Up should have comment or be unexported (golint)
    • Line 77: warning: exported method AM01.Down should have comment or be unexported (golint)
    • Line 108: warning: exported function AM01_extractRecords should have comment or be unexported (golint)
    • Line 108: warning: don't use underscores in Go names; func AM01_extractRecords should be AM01ExtractRecords (golint)
    • Line 145: warning: exported function AM01_updateRecords should have comment or be unexported (golint)
    • Line 145: warning: don't use underscores in Go names; func AM01_updateRecords should be AM01UpdateRecords (golint)
    • openbazaar-go/test/factory/peer_info.go
    • Line 13: warning: exported function NewPeerIDProtobuf should have comment or be unexported (golint)
    • Line 27: warning: exported function MustNewPubkeysIdentityKeyBytes should have comment or be unexported (golint)
    • Line 35: warning: exported function MustNewBitcoinPrivKey should have comment or be unexported (golint)
    • Line 43: warning: exported function MustNewPubkeysProtobuf should have comment or be unexported (golint)
    • Line 70: warning: comment on exported function MustNewValidPeerInfo should be of the form "MustNewValidPeerInfo ..." (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 162: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 216: warning: if block ends with a return statement, so drop this else and outdent its block (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/peer_info.go
    • Line 17: warning: exported var ErrInvalidInlinePeerID should have comment or be unexported (golint)
    • Line 63: warning: exported method PeerInfo.Handle should have comment or be unexported (golint)
    • Line 64: warning: exported method PeerInfo.BitcoinSignature should have comment or be unexported (golint)
    • Line 84: warning: exported method PeerInfo.GeneratePeerIDFromIdentityKey should have comment or be unexported (golint)
    • Line 95: warning: exported method PeerInfo.BitcoinKey should have comment or be unexported (golint)
    • Line 100: warning: exported method PeerInfo.IdentityKeyBytes should have comment or be unexported (golint)
    • Line 105: warning: exported method PeerInfo.IdentityKey should have comment or be unexported (golint)
    • Line 113: warning: exported method PeerInfo.Equal should have comment or be unexported (golint)
    • Line 199: warning: exported method PeerInfo.Protobuf 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/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/repo/migrations/Migration005.go
    • Line 11: warning: exported type Migration005 should have comment or be unexported (golint)
    • Line 13: warning: exported method Migration005.Up should have comment or be unexported (golint)
    • Line 65: warning: exported method Migration005.Down should have comment or be unexported (golint)
    • openbazaar-go/cmd/decrypt.go
    • Line 19: warning: exported type DecryptDatabase should have comment or be unexported (golint)
    • Line 23: warning: exported method DecryptDatabase.Execute should have comment or be unexported (golint)
    • openbazaar-go/cmd/restore.go
    • Line 47: warning: exported type Restore should have comment or be unexported (golint)
    • Line 57: warning: exported method Restore.Execute should have comment or be unexported (golint)
    • Line 282: warning: exported function RestoreFile should have comment or be unexported (golint)
    • Line 296: warning: exported function RestoreDirectory should have comment or be unexported (golint)
    • Line 348: warning: exported function PrintError should have comment or be unexported (golint)
    • openbazaar-go/repo/db/purchases.go
    • Line 19: warning: exported type PurchasesDB should have comment or be unexported (golint)
    • Line 23: warning: exported function NewPurchaseStore should have comment or be unexported (golint)
    • Line 27: 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 261: warning: exported method PurchasesDB.GetUnfunded should have comment or be unexported (golint)
    • Line 300: warning: exported method PurchasesDB.GetByPaymentAddress should have comment or be unexported (golint)
    • Line 343: warning: exported method PurchasesDB.GetByOrderId should have comment or be unexported (golint)
    • Line 391: warning: exported method PurchasesDB.Count should have comment or be unexported (golint)
    • Line 404: warning: exported method PurchasesDB.GetPurchasesForDisputeExpiryNotification should have comment or be unexported (golint)
    • openbazaar-go/repo/api_time.go
    • Line 9: warning: exported var ErrUnknownAPITimeFormat should have comment or be unexported (golint)
    • Line 11: warning: exported const JSONAPITimeFormat should have comment or be unexported (golint)
    • Line 13: warning: exported type APITime should have comment or be unexported (golint)
    • Line 23: warning: exported method APITime.MarshalJSON should have comment or be unexported (golint)
    • Line 27: warning: exported method APITime.UnmarshalJSON 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/cmd/init.go
    • Line 18: warning: exported type Init should have comment or be unexported (golint)
    • Line 27: warning: exported method Init.Execute should have comment or be unexported (golint)
    • openbazaar-go/core/order.go
    • Line 1172: warning: exported method OpenBazaarNode.CalculateOrderTotal should have comment or be unexported (golint)
    • Line 1268: warning: exported function GetTotalCouponCodeDiscount should have comment or be unexported (golint)
    • Line 1293: warning: exported function GetItemSurchargeAmount should have comment or be unexported (golint)
    • Line 1320: warning: exported function GetNormalizedListing should have comment or be unexported (golint)
    • Line 1339: warning: exported function GetOriginalAmount should have comment or be unexported (golint)

gocyclo76%

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/repo/listing.go
    • Line 1280: warning: cyclomatic complexity 117 of function (*Listing).ValidateListing() is high (> 15) (gocyclo)
    • Line 1638: warning: cyclomatic complexity 26 of function (*Listing).validatePhysicalListing() is high (> 15) (gocyclo)
    • openbazaar-go/core/order.go
    • Line 1575: warning: cyclomatic complexity 69 of function (*OpenBazaarNode).ValidateOrder() is high (> 15) (gocyclo)
    • Line 1360: warning: cyclomatic complexity 30 of function (*OpenBazaarNode).calculateShippingTotalForListings() is high (> 15) (gocyclo)
    • Line 574: warning: cyclomatic complexity 29 of function (*OpenBazaarNode).createContractWithOrder() is high (> 15) (gocyclo)
    • Line 863: warning: cyclomatic complexity 26 of function (*OpenBazaarNode).CheckoutBreakdown() is high (> 15) (gocyclo)
    • Line 214: warning: cyclomatic complexity 23 of function prepareModeratedOrderContract() is high (> 15) (gocyclo)
    • Line 1172: warning: cyclomatic complexity 19 of function (*OpenBazaarNode).CalculateOrderTotal() is high (> 15) (gocyclo)
    • Line 1084: warning: cyclomatic complexity 18 of function (*OpenBazaarNode).CancelOfflineOrder() is high (> 15) (gocyclo)
    • Line 381: warning: cyclomatic complexity 16 of function processOfflineDirectOrder() is high (> 15) (gocyclo)
    • openbazaar-go/repo/db/purchases_test.go
    • Line 366: warning: cyclomatic complexity 26 of function TestPurchasesDB_GetAll() is high (> 15) (gocyclo)
    • Line 729: warning: cyclomatic complexity 20 of function TestGetPurchasesForDisputeExpiryNotificationReturnsRelevantRecords() is high (> 15) (gocyclo)
    • Line 524: warning: cyclomatic complexity 18 of function TestGetPurchasesForDisputeTimeoutReturnsRelevantRecords() is high (> 15) (gocyclo)
    • Line 635: warning: cyclomatic complexity 17 of function TestUpdatePurchaseLastDisputeTimeoutNotifiedAt() is high (> 15) (gocyclo)
    • Line 837: warning: cyclomatic complexity 17 of function TestUpdatePurchaseLastDisputeExpiryNotifiedAt() is high (> 15) (gocyclo)
    • openbazaar-go/core/completion.go
    • Line 64: warning: cyclomatic complexity 44 of function (*OpenBazaarNode).CompleteOrder() is high (> 15) (gocyclo)
    • Line 307: warning: cyclomatic complexity 22 of function (*OpenBazaarNode).ReleaseFundsAfterTimeout() is high (> 15) (gocyclo)
    • Line 431: warning: cyclomatic complexity 21 of function (*OpenBazaarNode).ValidateAndSaveRating() is high (> 15) (gocyclo)
    • openbazaar-go/repo/db/sales_test.go
    • Line 377: warning: cyclomatic complexity 26 of function TestSalesDB_GetAll() is high (> 15) (gocyclo)
    • Line 535: warning: cyclomatic complexity 17 of function TestGetSalesForDisputeTimeoutReturnsRelevantRecords() is high (> 15) (gocyclo)
    • Line 60: warning: cyclomatic complexity 17 of function TestPutSale() is high (> 15) (gocyclo)
    • Line 639: warning: cyclomatic complexity 17 of function TestUpdateSaleLastDisputeTimeoutNotifiedAt() is high (> 15) (gocyclo)
    • openbazaar-go/core/profile.go
    • Line 302: warning: cyclomatic complexity 54 of function ValidateProfile() is high (> 15) (gocyclo)
    • Line 136: warning: cyclomatic complexity 21 of function (*OpenBazaarNode).PatchProfile() is high (> 15) (gocyclo)
    • openbazaar-go/wallet/listeners/transaction_listener.go
    • Line 92: warning: cyclomatic complexity 45 of function (*TransactionListener).OnTransactionReceived() is high (> 15) (gocyclo)
    • Line 258: warning: cyclomatic complexity 23 of function (*TransactionListener).processSalePayment() is high (> 15) (gocyclo)
    • Line 366: warning: cyclomatic complexity 20 of function (*TransactionListener).processPurchasePayment() is high (> 15) (gocyclo)
    • Line 444: warning: cyclomatic complexity 18 of function (*TransactionListener).adjustInventory() is high (> 15) (gocyclo)
    • openbazaar-go/core/confirmation.go
    • Line 195: warning: cyclomatic complexity 21 of function (*OpenBazaarNode).RejectOfflineOrder() is high (> 15) (gocyclo)
    • Line 102: warning: cyclomatic complexity 19 of function (*OpenBazaarNode).ConfirmOfflineOrder() is high (> 15) (gocyclo)
    • Line 290: warning: cyclomatic complexity 19 of function (*OpenBazaarNode).ValidateOrderConfirmation() is high (> 15) (gocyclo)
    • openbazaar-go/repo/db/cases_test.go
    • Line 562: warning: cyclomatic complexity 29 of function TestCasesDB_GetAll() is high (> 15) (gocyclo)
    • Line 343: warning: cyclomatic complexity 25 of function TestCasesGetCaseMetaData() is high (> 15) (gocyclo)
    • Line 425: warning: cyclomatic complexity 22 of function TestGetByCaseID() is high (> 15) (gocyclo)
    • Line 679: warning: cyclomatic complexity 20 of function TestGetDisputesForDisputeExpiryReturnsRelevantRecords() 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/core/fulfillment.go
    • Line 27: warning: cyclomatic complexity 35 of function (*OpenBazaarNode).FulfillOrder() is high (> 15) (gocyclo)
    • Line 199: warning: cyclomatic complexity 26 of function (*OpenBazaarNode).ValidateOrderFulfillment() is high (> 15) (gocyclo)
    • openbazaar-go/mobile/node.go
    • Line 100: warning: cyclomatic complexity 28 of function NewNodeWithConfig() is high (> 15) (gocyclo)
    • Line 370: warning: cyclomatic complexity 21 of function (*Node).start() is high (> 15) (gocyclo)
    • openbazaar-go/core/moderation.go
    • Line 151: warning: cyclomatic complexity 22 of function (*OpenBazaarNode).GetModeratorFee() is high (> 15) (gocyclo)
    • Line 55: warning: cyclomatic complexity 20 of function (*OpenBazaarNode).SetSelfAsModerator() is high (> 15) (gocyclo)
    • openbazaar-go/net/service/handlers.go
    • Line 287: warning: cyclomatic complexity 47 of function (*OpenBazaarService).handleOrder() is high (> 15) (gocyclo)
    • Line 692: warning: cyclomatic complexity 40 of function (*OpenBazaarService).handleReject() is high (> 15) (gocyclo)
    • Line 1137: warning: cyclomatic complexity 38 of function (*OpenBazaarService).handleOrderCompletion() is high (> 15) (gocyclo)
    • Line 879: warning: cyclomatic complexity 34 of function (*OpenBazaarService).handleRefund() is high (> 15) (gocyclo)
    • Line 1451: warning: cyclomatic complexity 27 of function (*OpenBazaarService).handleDisputeClose() is high (> 15) (gocyclo)
    • Line 35: warning: cyclomatic complexity 26 of function (*OpenBazaarService).HandlerForMsgType() is high (> 15) (gocyclo)
    • Line 1613: warning: cyclomatic complexity 26 of function analyzeForMissingMessages() is high (> 15) (gocyclo)
    • Line 511: warning: cyclomatic complexity 24 of function (*OpenBazaarService).handleOrderConfirmation() is high (> 15) (gocyclo)
    • Line 1030: warning: cyclomatic complexity 23 of function (*OpenBazaarService).handleOrderFulfillment() is high (> 15) (gocyclo)
    • Line 1946: warning: cyclomatic complexity 23 of function (*OpenBazaarService).handleOrderPayment() is high (> 15) (gocyclo)
    • Line 1344: warning: cyclomatic complexity 23 of function (*OpenBazaarService).handleDisputeUpdate() is high (> 15) (gocyclo)
    • Line 1651: warning: cyclomatic complexity 16 of function (*OpenBazaarService).handleChat() is high (> 15) (gocyclo)
    • openbazaar-go/repo/db/cases.go
    • Line 209: warning: cyclomatic complexity 20 of function (*CasesDB).GetAll() is high (> 15) (gocyclo)
    • Line 331: warning: cyclomatic complexity 16 of function (*CasesDB).GetCaseMetadata() is high (> 15) (gocyclo)
    • openbazaar-go/core/record_aging_notifier.go
    • Line 351: warning: cyclomatic complexity 20 of function (*recordAgingNotifier).generateModeratorDisputeExpiryNotifications() is high (> 15) (gocyclo)
    • Line 189: warning: cyclomatic complexity 20 of function (*recordAgingNotifier).generateBuyerDisputeTimeoutNotifications() is high (> 15) (gocyclo)
    • Line 272: warning: cyclomatic complexity 18 of function (*recordAgingNotifier).generateBuyerDisputeExpiryNotifications() is high (> 15) (gocyclo)
    • openbazaar-go/api/jsonapi.go
    • Line 1820: warning: cyclomatic complexity 27 of function (*jsonAPIHandler).GETModerators() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 26 of function (*jsonAPIHandler).ServeHTTP() is high (> 15) (gocyclo)
    • Line 3722: warning: cyclomatic complexity 23 of function (*jsonAPIHandler).POSTFetchRatings() is high (> 15) (gocyclo)
    • Line 2031: warning: cyclomatic complexity 21 of function (*jsonAPIHandler).POSTOrderComplete() is high (> 15) (gocyclo)
    • Line 2117: warning: cyclomatic complexity 20 of function (*jsonAPIHandler).POSTOpenDispute() is high (> 15) (gocyclo)
    • Line 1465: warning: cyclomatic complexity 18 of function (*jsonAPIHandler).GETListing() is high (> 15) (gocyclo)
    • Line 2872: warning: cyclomatic complexity 17 of function (*jsonAPIHandler).POSTFetchProfiles() is high (> 15) (gocyclo)
    • Line 2336: warning: cyclomatic complexity 16 of function (*jsonAPIHandler).POSTReleaseEscrow() is high (> 15) (gocyclo)
    • openbazaar-go/core/disputes.go
    • Line 251: warning: cyclomatic complexity 61 of function (*OpenBazaarNode).ProcessDisputeOpen() is high (> 15) (gocyclo)
    • Line 485: warning: cyclomatic complexity 57 of function (*OpenBazaarNode).CloseDispute() is high (> 15) (gocyclo)
    • Line 843: warning: cyclomatic complexity 43 of function (*OpenBazaarNode).ValidateCaseContract() is high (> 15) (gocyclo)
    • Line 1107: warning: cyclomatic complexity 29 of function (*OpenBazaarNode).ReleaseFunds() is high (> 15) (gocyclo)
    • Line 50: warning: cyclomatic complexity 17 of function (*OpenBazaarNode).OpenDispute() is high (> 15) (gocyclo)
    • openbazaar-go/core/order_test.go
    • Line 298: warning: cyclomatic complexity 38 of function TestOpenBazaarNode_CalculateOrderTotalWithV4Schema() is high (> 15) (gocyclo)
    • Line 14: warning: cyclomatic complexity 38 of function TestOpenBazaarNode_CalculateOrderTotal() is high (> 15) (gocyclo)

ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words