Report for github.com/textileio/textile

A+    Excellent!    Found 84 issues across 155 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!


gocyclo87%

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.

    • textile/core/core.go
    • Line 209: warning: cyclomatic complexity 48 of function NewTextile() is high (> 15) (gocyclo)
    • Line 557: warning: cyclomatic complexity 18 of function (*Textile).Close() is high (> 15) (gocyclo)
    • textile/api/hubd/service.go
    • Line 822: warning: cyclomatic complexity 22 of function (*Service).destroyAccount() is high (> 15) (gocyclo)
    • Line 72: warning: cyclomatic complexity 21 of function (*Service).Signup() is high (> 15) (gocyclo)

golint56%

Golint is a linter for Go source code.

    • textile/buckets/archive/retrieval/retrieval.go
    • Line 34: warning: exported var CITest should have comment or be unexported (golint)
    • Line 48: warning: comment on exported type TrackerRetrievalRegistrator should be of the form "TrackerRetrievalRegistrator ..." (with optional leading article) (golint)
    • Line 54: warning: exported type Status should have comment or be unexported (golint)
    • Line 57: warning: exported const StatusQueued should have comment (or a comment on this block) or be unexported (golint)
    • Line 64: warning: exported type Type should have comment or be unexported (golint)
    • Line 67: warning: exported const TypeNewBucket should have comment (or a comment on this block) or be unexported (golint)
    • Line 71: warning: exported type Retrieval should have comment or be unexported (golint)
    • Line 113: warning: exported function NewFilRetrieval should have comment or be unexported (golint)
    • Line 138: warning: exported method FilRetrieval.SetBucketCreator should have comment or be unexported (golint)
    • Line 145: warning: exported method FilRetrieval.RunDaemon should have comment or be unexported (golint)
    • Line 547: warning: exported method FilRetrieval.GetAllByAccount should have comment or be unexported (golint)
    • Line 574: warning: exported method FilRetrieval.GetByAccountAndID should have comment or be unexported (golint)
    • Line 589: warning: exported method FilRetrieval.Logs should have comment or be unexported (golint)
    • textile/api/billingd/service/service.go
    • Line 56: warning: exported type Product should have comment or be unexported (golint)
    • Line 72: warning: exported type PriceType should have comment or be unexported (golint)
    • Line 75: warning: exported const PriceTypeTemporal should have comment (or a comment on this block) or be unexported (golint)
    • Line 79: warning: exported type FreeQuotaInterval should have comment or be unexported (golint)
    • Line 82: warning: exported const FreeQuotaMonthly should have comment (or a comment on this block) or be unexported (golint)
    • Line 86: warning: exported var Products should have comment or be unexported (golint)
    • Line 131: warning: exported type Customer should have comment or be unexported (golint)
    • Line 149: warning: exported type Period should have comment or be unexported (golint)
    • Line 154: warning: exported type Usage should have comment or be unexported (golint)
    • Line 161: warning: exported method Customer.AccountStatus should have comment or be unexported (golint)
    • Line 173: warning: exported type Service should have comment or be unexported (golint)
    • Line 198: warning: exported type Config should have comment or be unexported (golint)
    • Line 219: warning: exported function NewService should have comment or be unexported (golint)
    • Line 392: warning: exported method Service.Start should have comment or be unexported (golint)
    • Line 414: warning: exported method Service.Stop should have comment or be unexported (golint)
    • Line 445: warning: exported method Service.CheckHealth should have comment or be unexported (golint)
    • Line 450: warning: exported method Service.CreateCustomer should have comment or be unexported (golint)
    • Line 573: warning: exported method Service.GetCustomer should have comment or be unexported (golint)
    • Line 708: warning: exported method Service.GetCustomerSession should have comment or be unexported (golint)
    • Line 726: warning: exported method Service.ListDependentCustomers should have comment or be unexported (golint)
    • Line 776: warning: exported method Service.UpdateCustomer should have comment or be unexported (golint)
    • Line 795: warning: exported method Service.UpdateCustomerSubscription should have comment or be unexported (golint)
    • Line 827: warning: exported method Service.RecreateCustomerSubscription should have comment or be unexported (golint)
    • Line 858: warning: exported method Service.DeleteCustomer should have comment or be unexported (golint)
    • Line 878: warning: exported method Service.GetCustomerUsage should have comment or be unexported (golint)
    • Line 931: warning: exported method Service.IncCustomerUsage should have comment or be unexported (golint)
    • Line 1014: warning: exported method Service.ReportCustomerUsage should have comment or be unexported (golint)
    • textile/api/mindexd/store/gen.go
    • Line 23: warning: exported method Store.UpdateTextileDealsInfo should have comment or be unexported (golint)
    • Line 38: warning: exported method Store.UpdateTextileRetrievalsInfo should have comment or be unexported (golint)
    • textile/api/mindexd/store/query.go
    • Line 15: warning: exported var ErrMinerNotExists should have comment or be unexported (golint)
    • Line 18: warning: exported type QueryIndexSortField should have comment or be unexported (golint)
    • Line 21: warning: exported const SortFieldTextileDealTotalSuccessful should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type QueryIndexFilters should have comment or be unexported (golint)
    • Line 34: warning: exported type QueryIndexSort should have comment or be unexported (golint)
    • Line 40: warning: exported method Store.GetMinerInfo should have comment or be unexported (golint)
    • Line 55: warning: exported method Store.GetAllMiners should have comment or be unexported (golint)
    • Line 70: warning: exported method Store.QueryIndex should have comment or be unexported (golint)
    • textile/api/bucketsd/client/options.go
    • Line 16: warning: exported type CreateOption should have comment or be unexported (golint)
    • Line 53: warning: exported type Option should have comment or be unexported (golint)
    • Line 69: warning: exported type ArchiveOption should have comment or be unexported (golint)
    • textile/mail/mail.go
    • Line 10: warning: comment on exported const SentboxCollectionName should be of the form "SentboxCollectionName ..." (golint)
    • textile/mongodb/apikeys.go
    • Line 19: warning: exported type APIKeyType should have comment or be unexported (golint)
    • Line 22: warning: exported const AccountKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported type APIKey should have comment or be unexported (golint)
    • Line 36: warning: exported function NewAPIKeyContext should have comment or be unexported (golint)
    • Line 40: warning: exported function APIKeyFromContext should have comment or be unexported (golint)
    • Line 45: warning: exported type APIKeys should have comment or be unexported (golint)
    • Line 49: warning: exported function NewAPIKeys should have comment or be unexported (golint)
    • Line 59: warning: exported method APIKeys.Create should have comment or be unexported (golint)
    • Line 87: warning: exported method APIKeys.Get should have comment or be unexported (golint)
    • Line 99: warning: exported method APIKeys.ListByOwner should have comment or be unexported (golint)
    • Line 127: warning: exported method APIKeys.Invalidate should have comment or be unexported (golint)
    • Line 138: warning: exported method APIKeys.DeleteByOwner should have comment or be unexported (golint)
    • textile/api/bucketsd/service.go
    • Line 128: warning: exported method Service.List should have comment or be unexported (golint)
    • Line 239: warning: exported method Service.Create should have comment or be unexported (golint)
    • Line 892: warning: exported method Service.Root should have comment or be unexported (golint)
    • Line 915: warning: exported method Service.Links should have comment or be unexported (golint)
    • Line 1225: warning: exported method Service.SetPath should have comment or be unexported (golint)
    • Line 1373: warning: exported method Service.ListPath should have comment or be unexported (golint)
    • Line 1406: warning: exported method Service.ListIpfsPath should have comment or be unexported (golint)
    • Line 1451: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1636: warning: exported method Service.PushPath should have comment or be unexported (golint)
    • Line 1924: warning: exported method Service.PushPaths should have comment or be unexported (golint)
    • Line 2041: 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 2128: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 2437: warning: exported method Service.PullPath should have comment or be unexported (golint)
    • Line 2537: warning: exported method Service.PullIpfsPath should have comment or be unexported (golint)
    • Line 2570: warning: exported method Service.Remove should have comment or be unexported (golint)
    • Line 2628: warning: exported method Service.RemovePath should have comment or be unexported (golint)
    • Line 2784: warning: exported method Service.PushPathAccessRoles should have comment or be unexported (golint)
    • Line 2916: warning: exported method Service.PullPathAccessRoles should have comment or be unexported (golint)
    • Line 2952: warning: exported method Service.DefaultArchiveConfig should have comment or be unexported (golint)
    • Line 2976: warning: exported method Service.SetDefaultArchiveConfig should have comment or be unexported (golint)
    • Line 3004: warning: exported method Service.Archive should have comment or be unexported (golint)
    • Line 3078: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 3295: warning: exported method Service.Archives should have comment or be unexported (golint)
    • Line 3358: warning: exported method Service.ArchiveWatch should have comment or be unexported (golint)
    • textile/gateway/buckets.go
    • Line 39: warning: context.Context should be the first parameter of a function (golint)
    • Line 74: warning: context.Context should be the first parameter of a function (golint)
    • textile/mongodb/bucketarchives.go
    • Line 10: warning: exported type BucketArchive should have comment or be unexported (golint)
    • Line 16: warning: exported type Archives should have comment or be unexported (golint)
    • Line 21: warning: exported type Archive should have comment or be unexported (golint)
    • Line 32: warning: exported type DealInfo should have comment or be unexported (golint)
    • Line 93: warning: exported type BucketArchives should have comment or be unexported (golint)
    • Line 97: warning: exported function NewBucketArchives should have comment or be unexported (golint)
    • Line 102: warning: exported method BucketArchives.Create should have comment or be unexported (golint)
    • Line 110: warning: exported method BucketArchives.Replace should have comment or be unexported (golint)
    • Line 121: warning: exported method BucketArchives.GetOrCreate should have comment or be unexported (golint)
    • Line 126: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • textile/mongodb/collections.go
    • Line 15: warning: exported const DuplicateErrMsg should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type Collections should have comment or be unexported (golint)
    • Line 83: warning: exported method Collections.Close should have comment or be unexported (golint)
    • textile/mongodb/sessions.go
    • Line 18: warning: exported type Session should have comment or be unexported (golint)
    • Line 24: warning: exported function NewSessionContext should have comment or be unexported (golint)
    • Line 28: warning: exported function SessionFromContext should have comment or be unexported (golint)
    • Line 33: warning: exported type Sessions should have comment or be unexported (golint)
    • Line 37: warning: exported function NewSessions should have comment or be unexported (golint)
    • Line 47: warning: exported method Sessions.Create should have comment or be unexported (golint)
    • Line 67: warning: exported method Sessions.Get should have comment or be unexported (golint)
    • Line 79: warning: exported method Sessions.Touch should have comment or be unexported (golint)
    • Line 91: warning: exported method Sessions.Delete should have comment or be unexported (golint)
    • Line 102: warning: exported method Sessions.DeleteByOwner should have comment or be unexported (golint)
    • textile/cmd/output.go
    • Line 22: warning: exported function Message should have comment or be unexported (golint)
    • Line 29: warning: exported function Warn should have comment or be unexported (golint)
    • Line 37: warning: exported function Success should have comment or be unexported (golint)
    • Line 42: warning: exported function JSON should have comment or be unexported (golint)
    • Line 48: warning: exported function End should have comment or be unexported (golint)
    • Line 53: warning: exported function Error should have comment or be unexported (golint)
    • Line 88: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 93: warning: exported function ErrCheck should have comment or be unexported (golint)
    • Line 99: warning: exported function RenderTable should have comment or be unexported (golint)
    • Line 105: warning: exported function RenderTableWithoutNewLines should have comment or be unexported (golint)
    • Line 128: warning: exported function HandleInterrupt should have comment or be unexported (golint)
    • Line 137: warning: exported function SetupDefaultLoggingConfig should have comment or be unexported (golint)
    • textile/email/email.go
    • Line 14: warning: exported type Client should have comment or be unexported (golint)
    • Line 20: warning: exported type Config should have comment or be unexported (golint)
    • Line 27: warning: exported function NewClient should have comment or be unexported (golint)
    • textile/buckets/buckets.go
    • Line 42: warning: exported function NewBucketOwnerContext should have comment or be unexported (golint)
    • Line 46: warning: exported function BucketOwnerFromContext should have comment or be unexported (golint)
    • Line 55: warning: exported const None should have comment (or a comment on this block) or be unexported (golint)
    • textile/mongodb/threads.go
    • Line 20: warning: exported var ErrInvalidThreadName should have comment or be unexported (golint)
    • Line 27: warning: exported type Thread should have comment or be unexported (golint)
    • Line 36: warning: exported type Threads should have comment or be unexported (golint)
    • Line 40: warning: exported function NewThreads should have comment or be unexported (golint)
    • Line 59: warning: exported method Threads.Create should have comment or be unexported (golint)
    • Line 92: warning: exported method Threads.Get should have comment or be unexported (golint)
    • Line 108: warning: exported method Threads.GetByName should have comment or be unexported (golint)
    • Line 124: warning: exported method Threads.ListByOwner should have comment or be unexported (golint)
    • Line 152: warning: exported method Threads.ListByKey should have comment or be unexported (golint)
    • Line 176: warning: exported method Threads.Delete should have comment or be unexported (golint)
    • Line 191: warning: exported method Threads.DeleteByOwner should have comment or be unexported (golint)
    • textile/core/options.go
    • Line 3: warning: exported type Options should have comment or be unexported (golint)
    • Line 9: warning: exported type Option should have comment or be unexported (golint)
    • Line 11: warning: exported function WithBadgerThreadsPersistence should have comment or be unexported (golint)
    • Line 17: warning: exported function WithMongoThreadsPersistence should have comment or be unexported (golint)
    • textile/api/mindexd/client/client.go
    • Line 41: warning: comment on exported method Client.CalculateDealPrice should be of the form "CalculateDealPrice ..." (golint)
    • Line 53: warning: exported method Client.QueryIndex should have comment or be unexported (golint)
    • textile/mongodb/accounts.go
    • Line 24: warning: exported var ErrInvalidUsername should have comment or be unexported (golint)
    • Line 32: warning: exported type Account should have comment or be unexported (golint)
    • Line 45: warning: exported type AccountType should have comment or be unexported (golint)
    • Line 48: warning: exported const Dev should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported type Member should have comment or be unexported (golint)
    • Line 59: warning: exported type Role should have comment or be unexported (golint)
    • Line 62: warning: exported const OrgOwner should have comment (or a comment on this block) or be unexported (golint)
    • Line 76: warning: exported type AccountCtx should have comment or be unexported (golint)
    • Line 81: warning: exported function NewAccountContext should have comment or be unexported (golint)
    • Line 88: warning: exported function AccountCtxForAccount should have comment or be unexported (golint)
    • Line 98: warning: exported function AccountFromContext should have comment or be unexported (golint)
    • Line 103: warning: exported method AccountCtx.Owner should have comment or be unexported (golint)
    • Line 110: warning: exported type Accounts should have comment or be unexported (golint)
    • Line 114: warning: exported function NewAccounts should have comment or be unexported (golint)
    • Line 137: warning: exported method Accounts.CreateDev should have comment or be unexported (golint)
    • Line 177: warning: exported method Accounts.CreateOrg should have comment or be unexported (golint)
    • Line 242: warning: exported method Accounts.CreateUser should have comment or be unexported (golint)
    • Line 265: warning: exported method Accounts.Get should have comment or be unexported (golint)
    • Line 281: warning: exported method Accounts.GetByUsername should have comment or be unexported (golint)
    • Line 293: warning: exported method Accounts.GetByUsernameOrEmail should have comment or be unexported (golint)
    • Line 314: warning: exported method Accounts.ValidateUsername should have comment or be unexported (golint)
    • Line 321: warning: exported method Accounts.IsUsernameAvailable should have comment or be unexported (golint)
    • Line 335: warning: exported method Accounts.IsNameAvailable should have comment or be unexported (golint)
    • Line 348: warning: exported method Accounts.SetToken should have comment or be unexported (golint)
    • Line 363: warning: exported method Accounts.UpdatePowInfo should have comment or be unexported (golint)
    • Line 384: warning: exported method Accounts.ListByMember should have comment or be unexported (golint)
    • Line 413: warning: exported method Accounts.ListByOwner should have comment or be unexported (golint)
    • Line 442: warning: exported method Accounts.ListMembers should have comment or be unexported (golint)
    • Line 474: warning: exported method Accounts.IsOwner should have comment or be unexported (golint)
    • Line 484: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 491: warning: exported method Accounts.IsMember should have comment or be unexported (golint)
    • Line 501: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 508: warning: exported method Accounts.AddMember should have comment or be unexported (golint)
    • Line 525: warning: exported method Accounts.RemoveMember should have comment or be unexported (golint)
    • Line 579: warning: exported method Accounts.Delete should have comment or be unexported (golint)
    • textile/mongodb/ipnskeys.go
    • Line 13: warning: exported type IPNSKey should have comment or be unexported (golint)
    • Line 21: warning: exported type IPNSKeys should have comment or be unexported (golint)
    • Line 25: warning: exported function NewIPNSKeys should have comment or be unexported (golint)
    • Line 38: warning: exported method IPNSKeys.Create should have comment or be unexported (golint)
    • Line 49: warning: exported method IPNSKeys.Get should have comment or be unexported (golint)
    • Line 61: warning: exported method IPNSKeys.GetByCid should have comment or be unexported (golint)
    • Line 73: warning: exported method IPNSKeys.ListByThreadID should have comment or be unexported (golint)
    • Line 97: warning: exported method IPNSKeys.List should have comment or be unexported (golint)
    • Line 137: warning: exported method IPNSKeys.Delete should have comment or be unexported (golint)
    • textile/api/mindexd/store/gen_test.go
    • Line 65: warning: don't use underscores in Go names; var f0100_south_america should be f0100SouthAmerica (golint)
    • Line 98: warning: don't use underscores in Go names; var f0100_north_america should be f0100NorthAmerica (golint)
    • Line 124: warning: don't use underscores in Go names; var f0100_africa should be f0100Africa (golint)
    • Line 161: warning: don't use underscores in Go names; var f0101_south_america should be f0101SouthAmerica (golint)
    • Line 177: warning: don't use underscores in Go names; var f0101_north_america should be f0101NorthAmerica (golint)
    • Line 202: warning: don't use underscores in Go names; var f0101_africa should be f0101Africa (golint)
    • textile/threaddb/buckets.go
    • Line 25: warning: exported const Version should have comment or be unexported (golint)
    • Line 259: warning: exported method Bucket.Copy should have comment or be unexported (golint)
    • Line 498: warning: comment on exported method Buckets.New should be of the form "New ..." (golint)
    • Line 635: warning: exported method Buckets.Close should have comment or be unexported (golint)
    • textile/api/mindexd/model/index.go
    • Line 5: warning: exported type MinerInfoSnapshot should have comment or be unexported (golint)
    • Line 10: warning: exported type MinerInfo should have comment or be unexported (golint)
    • Line 18: warning: exported type MetadataInfo should have comment or be unexported (golint)
    • Line 27: warning: exported type FilecoinInfo should have comment or be unexported (golint)
    • Line 39: warning: exported type TextileInfo should have comment or be unexported (golint)
    • Line 46: warning: exported type TextileDealsSummary should have comment or be unexported (golint)
    • Line 53: warning: exported type TextileRetrievalSummary should have comment or be unexported (golint)
    • Line 60: warning: exported type TextileRegionInfo should have comment or be unexported (golint)
    • Line 65: warning: exported type TextileDealsInfo should have comment or be unexported (golint)
    • Line 76: warning: exported type SealedDurationMins should have comment or be unexported (golint)
    • Line 81: warning: exported type TransferMiBPerSec should have comment or be unexported (golint)
    • Line 86: warning: exported type TextileRetrievalsInfo should have comment or be unexported (golint)
    • textile/cmd/hub/cli/cli.go
    • Line 19: warning: exported const Name should have comment or be unexported (golint)
    • Line 71: warning: exported function Init should have comment or be unexported (golint)
    • Line 123: warning: exported function Config should have comment or be unexported (golint)
    • Line 127: warning: exported function SetClients should have comment or be unexported (golint)
    • Line 131: warning: exported function Auth should have comment or be unexported (golint)
    • textile/api/filecoin/client/client.go
    • Line 28: warning: exported method Client.Addresses should have comment or be unexported (golint)
    • Line 32: warning: exported method Client.Balance should have comment or be unexported (golint)
    • Line 39: warning: exported method Client.SignMessage should have comment or be unexported (golint)
    • Line 47: warning: exported method Client.VerifyMessage should have comment or be unexported (golint)
    • Line 52: warning: exported method Client.CidInfo should have comment or be unexported (golint)
    • Line 57: warning: exported method Client.StorageDealRecords should have comment or be unexported (golint)
    • Line 64: warning: exported method Client.RetrievalDealRecords should have comment or be unexported (golint)
    • textile/buckets/archive/events.go
    • Line 3: warning: exported type TrackedJobType should have comment or be unexported (golint)
    • Line 6: warning: exported const TrackedJobTypeArchive should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported type TrackedJobStatus should have comment or be unexported (golint)
    • Line 13: warning: exported const TrackedJobStatusQueued should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type JobEvent should have comment or be unexported (golint)
    • textile/dns/dns.go
    • Line 15: warning: exported const IPFSGateway should have comment or be unexported (golint)
    • Line 108: warning: comment on exported method Manager.DeleteRecord should be of the form "DeleteRecord ..." (golint)
    • textile/api/hubd/service.go
    • Line 45: warning: exported type Service should have comment or be unexported (golint)
    • Line 60: warning: comment on exported method Service.BuildInfo should be of the form "BuildInfo ..." (golint)
    • Line 72: warning: exported method Service.Signup should have comment or be unexported (golint)
    • Line 159: warning: exported method Service.Signin should have comment or be unexported (golint)
    • Line 240: warning: exported method Service.Signout should have comment or be unexported (golint)
    • Line 253: warning: exported method Service.GetSessionInfo should have comment or be unexported (golint)
    • Line 274: warning: exported method Service.GetIdentity should have comment or be unexported (golint)
    • Line 290: warning: exported method Service.CreateKey should have comment or be unexported (golint)
    • Line 355: warning: exported method Service.InvalidateKey should have comment or be unexported (golint)
    • Line 376: warning: exported method Service.ListKeys should have comment or be unexported (golint)
    • Line 409: warning: exported method Service.CreateOrg should have comment or be unexported (golint)
    • Line 475: warning: exported method Service.GetOrg should have comment or be unexported (golint)
    • Line 521: warning: exported method Service.ListOrgs should have comment or be unexported (golint)
    • Line 545: warning: exported method Service.RemoveOrg should have comment or be unexported (golint)
    • Line 588: warning: exported method Service.InviteToOrg should have comment or be unexported (golint)
    • Line 646: warning: exported method Service.LeaveOrg should have comment or be unexported (golint)
    • Line 684: warning: exported method Service.SetupBilling should have comment or be unexported (golint)
    • Line 720: warning: exported method Service.GetBillingSession should have comment or be unexported (golint)
    • Line 740: warning: exported method Service.ListBillingUsers should have comment or be unexported (golint)
    • Line 767: warning: exported method Service.IsUsernameAvailable should have comment or be unexported (golint)
    • Line 779: warning: exported method Service.IsOrgNameAvailable should have comment or be unexported (golint)
    • Line 795: warning: exported method Service.DestroyAccount should have comment or be unexported (golint)
    • textile/api/mindexd/service/service.go
    • Line 42: warning: exported type Service should have comment or be unexported (golint)
    • Line 55: warning: exported type Config should have comment or be unexported (golint)
    • Line 76: warning: exported function NewService should have comment or be unexported (golint)
    • Line 140: warning: exported method Service.Start should have comment or be unexported (golint)
    • Line 194: warning: exported method Service.Stop should have comment or be unexported (golint)
    • Line 229: warning: exported method Service.QueryIndex should have comment or be unexported (golint)
    • textile/api/common/common.go
    • Line 231: warning: exported method Credentials.GetRequestMetadata should have comment or be unexported (golint)
    • Line 269: warning: exported method Credentials.RequireTransportSecurity should have comment or be unexported (golint)
    • textile/api/apitest/apitest.go
    • Line 30: warning: exported const SessionSecret should have comment or be unexported (golint)
    • Line 32: warning: exported function MakeTextile should have comment or be unexported (golint)
    • Line 38: warning: exported function DefaultTextileConfig should have comment or be unexported (golint)
    • Line 65: warning: exported type Options should have comment or be unexported (golint)
    • Line 70: warning: exported type Option should have comment or be unexported (golint)
    • Line 72: warning: exported function WithRepoPath should have comment or be unexported (golint)
    • Line 78: warning: exported function WithoutAutoShutdown should have comment or be unexported (golint)
    • Line 84: warning: exported function MakeTextileWithConfig should have comment or be unexported (golint)
    • Line 106: warning: exported function DefaultBillingConfig should have comment or be unexported (golint)
    • Line 126: warning: exported function MakeBillingWithConfig should have comment or be unexported (golint)
    • Line 137: warning: exported function NewUsername should have comment or be unexported (golint)
    • Line 141: warning: exported function NewEmail should have comment or be unexported (golint)
    • Line 145: warning: exported function Signup should have comment or be unexported (golint)
    • Line 162: warning: exported function Signin should have comment or be unexported (golint)
    • Line 179: warning: exported function ConfirmEmail should have comment or be unexported (golint)
    • textile/core/core.go
    • Line 127: warning: exported type Textile should have comment or be unexported (golint)
    • Line 158: warning: exported type Config should have comment or be unexported (golint)
    • Line 209: warning: exported function NewTextile should have comment or be unexported (golint)
    • Line 553: warning: exported method Textile.Bootstrap should have comment or be unexported (golint)
    • Line 557: warning: exported method Textile.Close should have comment or be unexported (golint)
    • Line 640: warning: exported method Textile.HostID should have comment or be unexported (golint)
    • textile/mongodb/invites.go
    • Line 18: warning: exported type Invite should have comment or be unexported (golint)
    • Line 27: warning: exported type Invites should have comment or be unexported (golint)
    • Line 31: warning: exported function NewInvites should have comment or be unexported (golint)
    • Line 47: warning: exported method Invites.Create should have comment or be unexported (golint)
    • Line 73: warning: exported method Invites.Get should have comment or be unexported (golint)
    • Line 85: warning: exported method Invites.ListByEmail should have comment or be unexported (golint)
    • Line 109: warning: exported method Invites.Accept should have comment or be unexported (golint)
    • Line 120: warning: exported method Invites.Delete should have comment or be unexported (golint)
    • Line 131: warning: exported method Invites.DeleteByFrom should have comment or be unexported (golint)
    • Line 140: warning: exported method Invites.DeleteByOrg should have comment or be unexported (golint)
    • Line 145: warning: exported method Invites.DeleteByFromAndOrg should have comment or be unexported (golint)
    • textile/core/stats_handler.go
    • Line 14: warning: exported type StatsHandler should have comment or be unexported (golint)
    • Line 162: warning: exported method StatsHandler.TagRPC should have comment or be unexported (golint)
    • Line 174: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 206: warning: exported method StatsHandler.HandleConn should have comment or be unexported (golint)
    • Line 208: warning: exported method StatsHandler.TagConn should have comment or be unexported (golint)
    • textile/gateway/threads.go
    • Line 40: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 83: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • textile/api/usersd/service.go
    • Line 31: warning: exported type Service should have comment or be unexported (golint)
    • Line 39: warning: exported method Service.GetThread should have comment or be unexported (golint)
    • Line 57: warning: exported method Service.ListThreads should have comment or be unexported (golint)
    • Line 89: warning: exported method Service.SetupMailbox should have comment or be unexported (golint)
    • Line 104: warning: exported method Service.SendMessage should have comment or be unexported (golint)
    • Line 163: warning: exported method Service.ListInboxMessages should have comment or be unexported (golint)
    • Line 192: warning: exported method Service.ListSentboxMessages should have comment or be unexported (golint)
    • Line 293: warning: exported method Service.ReadInboxMessage should have comment or be unexported (golint)
    • Line 317: warning: exported method Service.DeleteInboxMessage should have comment or be unexported (golint)
    • Line 333: warning: exported method Service.DeleteSentboxMessage should have comment or be unexported (golint)
    • Line 349: warning: exported method Service.GetUsage should have comment or be unexported (golint)
    • textile/api/mindexd/model/record.go
    • Line 21: warning: exported type StorageDealRecord should have comment or be unexported (golint)
    • Line 29: warning: exported type RetrievalRecord should have comment or be unexported (golint)
    • Line 37: warning: exported type PowStorageDealRecord should have comment or be unexported (golint)
    • Line 53: warning: exported type PowStorageDealRecordDealInfo should have comment or be unexported (golint)
    • Line 68: warning: exported type PowRetrievalRecord should have comment or be unexported (golint)
    • Line 81: warning: exported type PowRetrievalRecordDealInfo should have comment or be unexported (golint)
    • textile/cmd/buck/cli/cli.go
    • Line 16: warning: exported const Name should have comment or be unexported (golint)
    • Line 22: warning: exported type Format should have comment or be unexported (golint)
    • Line 25: warning: exported const DefaultFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported function Init should have comment or be unexported (golint)
    • Line 99: warning: exported function SetBucks should have comment or be unexported (golint)
    • textile/core/auth_interceptor.go
    • Line 40: 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 54: 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 97: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 120: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • textile/util/util.go
    • Line 20: warning: exported function ToValidName should have comment or be unexported (golint)
    • Line 29: warning: exported function GenerateRandomBytes should have comment or be unexported (golint)
    • Line 38: warning: exported function MakeToken should have comment or be unexported (golint)
    • Line 47: warning: exported function MustParseAddr should have comment or be unexported (golint)
    • Line 55: warning: exported function NewResolvedPath should have comment or be unexported (golint)
    • Line 67: warning: exported function ParsePath should have comment or be unexported (golint)
    • Line 83: warning: exported function ByteCountDecimal should have comment or be unexported (golint)
    • textile/api/billingd/client/client.go
    • Line 37: warning: exported method Client.CheckHealth should have comment or be unexported (golint)
    • Line 42: warning: exported method Client.CreateCustomer should have comment or be unexported (golint)
    • Line 77: warning: exported method Client.GetCustomer should have comment or be unexported (golint)
    • Line 83: warning: exported method Client.GetCustomerSession should have comment or be unexported (golint)
    • Line 89: warning: exported method Client.ListDependentCustomers should have comment or be unexported (golint)
    • Line 102: warning: exported method Client.UpdateCustomer should have comment or be unexported (golint)
    • Line 118: warning: exported method Client.UpdateCustomerSubscription should have comment or be unexported (golint)
    • Line 135: warning: exported method Client.RecreateCustomerSubscription should have comment or be unexported (golint)
    • Line 142: warning: exported method Client.DeleteCustomer should have comment or be unexported (golint)
    • Line 149: warning: exported method Client.GetCustomerUsage should have comment or be unexported (golint)
    • Line 155: warning: exported method Client.IncCustomerUsage should have comment or be unexported (golint)
    • Line 166: warning: exported method Client.ReportCustomerUsage should have comment or be unexported (golint)
    • textile/mongodb/archivetracking.go
    • Line 16: warning: exported type TrackedJob should have comment or be unexported (golint)
    • Line 56: warning: exported type ArchiveTracking should have comment or be unexported (golint)
    • Line 60: warning: exported function NewArchiveTracking should have comment or be unexported (golint)
    • Line 67: warning: exported method ArchiveTracking.CreateArchive should have comment or be unexported (golint)
    • Line 91: warning: exported method ArchiveTracking.CreateRetrieval should have comment or be unexported (golint)
    • Line 108: warning: exported method ArchiveTracking.GetReadyToCheck should have comment or be unexported (golint)
    • Line 131: warning: exported method ArchiveTracking.Get should have comment or be unexported (golint)
    • Line 144: warning: exported method ArchiveTracking.Finalize should have comment or be unexported (golint)
    • Line 160: warning: exported method ArchiveTracking.Reschedule should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell91%

Misspell Finds commonly misspelled English words