Preparing report...

Report for github.com/ipfs/go-ipfs

A+    Excellent!    Found 144 issues across 275 files

Tweet

gofmt100%

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

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo91%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • go-ipfs/gc/gc.go
    • Line 40: warning: cyclomatic complexity 24 of function GC() is high (> 15) (gocyclo)
    • Line 170: warning: cyclomatic complexity 22 of function ColoredSet() is high (> 15) (gocyclo)
    • go-ipfs/cmd/ipfs/daemon.go
    • Line 204: warning: cyclomatic complexity 65 of function daemonFunc() is high (> 15) (gocyclo)
    • Line 695: warning: cyclomatic complexity 16 of function serveHTTPGateway() is high (> 15) (gocyclo)
    • Line 555: warning: cyclomatic complexity 16 of function serveHTTPApi() is high (> 15) (gocyclo)

golint51%

Golint is a linter for Go source code.

    • go-ipfs/fuse/mount/fuse.go
    • Line 16: warning: exported var ErrNotMounted should have comment or be unexported (golint)
    • Line 30: warning: comment on exported function NewMount should be of the form "NewMount ..." (golint)
    • Line 32: warning: don't use underscores in Go names; func parameter allow_other should be allowOther (golint)
    • go-ipfs/core/node/libp2p/libp2p.go
    • Line 21: warning: exported type Libp2pOpts should have comment or be unexported (golint)
    • Line 29: warning: exported var UserAgent should have comment or be unexported (golint)
    • Line 31: warning: exported function ConnectionManager should have comment or be unexported (golint)
    • Line 39: warning: exported function PstoreAddSelfKeys should have comment or be unexported (golint)
    • go-ipfs/core/corehttp/gateway.go
    • Line 17: warning: exported type GatewayConfig should have comment or be unexported (golint)
    • Line 43: warning: exported function GatewayOption should have comment or be unexported (golint)
    • Line 103: warning: exported function VersionOption should have comment or be unexported (golint)
    • go-ipfs/core/coreapi/pubsub.go
    • Line 14: warning: exported type PubSubAPI should have comment or be unexported (golint)
    • Line 24: warning: exported method PubSubAPI.Ls should have comment or be unexported (golint)
    • Line 33: warning: exported method PubSubAPI.Peers should have comment or be unexported (golint)
    • Line 47: warning: exported method PubSubAPI.Publish should have comment or be unexported (golint)
    • Line 57: warning: exported method PubSubAPI.Subscribe should have comment or be unexported (golint)
    • go-ipfs/core/node/groups.go
    • Line 28: warning: exported var BaseLibP2P should have comment or be unexported (golint)
    • Line 40: warning: exported function LibP2P should have comment or be unexported (golint)
    • Line 302: warning: exported function Networked should have comment or be unexported (golint)
    • go-ipfs/core/corehttp/metrics.go
    • Line 17: warning: comment on exported function MetricsScrapingOption should be of the form "MetricsScrapingOption ..." (golint)
    • Line 25: warning: comment on exported function MetricsOpenCensusCollectionOption should be of the form "MetricsOpenCensusCollectionOption ..." (golint)
    • Line 54: warning: comment on exported function MetricsCollectionOption should be of the form "MetricsCollectionOption ..." (golint)
    • Line 143: warning: exported type IpfsNodeCollector should have comment or be unexported (golint)
    • Line 147: warning: exported method IpfsNodeCollector.Describe should have comment or be unexported (golint)
    • Line 147: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 151: warning: exported method IpfsNodeCollector.Collect should have comment or be unexported (golint)
    • Line 162: warning: exported method IpfsNodeCollector.PeersTotalValues should have comment or be unexported (golint)
    • go-ipfs/core/node/libp2p/smux.go
    • Line 57: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 70: warning: exported function SmuxTransport should have comment or be unexported (golint)
    • go-ipfs/core/commands/unixfs/ls.go
    • Line 17: warning: exported type LsLink should have comment or be unexported (golint)
    • Line 23: warning: exported type LsObject should have comment or be unexported (golint)
    • Line 30: warning: exported type LsOutput should have comment or be unexported (golint)
    • Line 35: warning: exported var LsCmd should have comment or be unexported (golint)
    • go-ipfs/thirdparty/verifbs/verifbs.go
    • Line 10: warning: exported type VerifBSGC should have comment or be unexported (golint)
    • Line 14: warning: exported method VerifBSGC.Put should have comment or be unexported (golint)
    • Line 21: warning: exported method VerifBSGC.PutMany should have comment or be unexported (golint)
    • Line 30: warning: exported method VerifBSGC.Get should have comment or be unexported (golint)
    • Line 37: warning: exported type VerifBS should have comment or be unexported (golint)
    • Line 41: warning: exported method VerifBS.Put should have comment or be unexported (golint)
    • Line 48: warning: exported method VerifBS.PutMany should have comment or be unexported (golint)
    • Line 57: warning: exported method VerifBS.Get should have comment or be unexported (golint)
    • go-ipfs/core/mock/mock.go
    • Line 38: warning: exported function MockHostOption should have comment or be unexported (golint)
    • Line 44: warning: exported function MockCmdsCtx should have comment or be unexported (golint)
    • Line 81: warning: exported function MockPublicNode should have comment or be unexported (golint)
    • go-ipfs/core/commands/keyencode/keyencode.go
    • Line 11: warning: exported var OptionIPNSBase should have comment or be unexported (golint)
    • Line 13: warning: exported type KeyEncoder should have comment or be unexported (golint)
    • Line 17: warning: exported function KeyEncoderFromString should have comment or be unexported (golint)
    • Line 24: 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 30: warning: exported method KeyEncoder.FormatID should have comment or be unexported (golint)
    • go-ipfs/thirdparty/assert/assert.go
    • Line 5: warning: exported function Nil should have comment or be unexported (golint)
    • Line 11: warning: exported function True should have comment or be unexported (golint)
    • Line 17: warning: exported function False should have comment or be unexported (golint)
    • Line 21: warning: exported function Err should have comment or be unexported (golint)
    • go-ipfs/thirdparty/unit/unit.go
    • Line 5: warning: exported type Information should have comment or be unexported (golint)
    • Line 9: warning: exported const KB should have comment (or a comment on this block) or be unexported (golint)
    • go-ipfs/core/commands/ping.go
    • Line 22: warning: exported type PingResult should have comment or be unexported (golint)
    • Line 35: warning: exported var PingCmd should have comment or be unexported (golint)
    • Line 206: warning: exported function ParsePeerParam should have comment or be unexported (golint)
    • go-ipfs/repo/mock.go
    • Line 23: warning: exported method Mock.Config should have comment or be unexported (golint)
    • Line 27: warning: exported method Mock.SetConfig should have comment or be unexported (golint)
    • Line 32: warning: exported method Mock.BackupConfig should have comment or be unexported (golint)
    • Line 36: warning: exported method Mock.SetConfigKey should have comment or be unexported (golint)
    • Line 40: warning: exported method Mock.GetConfigKey should have comment or be unexported (golint)
    • Line 44: warning: exported method Mock.Datastore should have comment or be unexported (golint)
    • Line 46: warning: exported method Mock.GetStorageUsage should have comment or be unexported (golint)
    • Line 48: warning: exported method Mock.Close should have comment or be unexported (golint)
    • Line 50: warning: exported method Mock.SetAPIAddr should have comment or be unexported (golint)
    • Line 52: warning: exported method Mock.Keystore should have comment or be unexported (golint)
    • Line 54: warning: exported method Mock.SwarmKey should have comment or be unexported (golint)
    • Line 58: warning: exported method Mock.FileManager should have comment or be unexported (golint)
    • go-ipfs/core/coreapi/pin.go
    • Line 17: warning: exported type PinAPI should have comment or be unexported (golint)
    • Line 19: warning: exported method PinAPI.Add should have comment or be unexported (golint)
    • Line 44: warning: exported method PinAPI.Ls should have comment or be unexported (golint)
    • Line 59: warning: exported method PinAPI.IsPinned should have comment or be unexported (golint)
    • Line 101: warning: exported method PinAPI.Update should have comment or be unexported (golint)
    • Line 155: warning: exported method PinAPI.Verify should have comment or be unexported (golint)
    • go-ipfs/assets/bindata_version_hash.go
    • Line 1: warning: package comment should be of the form "Package assets ..." (golint)
    • Line 5: warning: exported const BindataVersionHash should have comment (or a comment on this block) or be unexported (golint)
    • go-ipfs/core/commands/dht.go
    • Line 23: warning: exported var ErrNotDHT should have comment or be unexported (golint)
    • Line 28: warning: exported var DhtCmd should have comment or be unexported (golint)
    • Line 95: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • go-ipfs/core/commands/pin/remotepin.go
    • Line 67: warning: exported type RemotePinOutput should have comment or be unexported (golint)
    • Line 663: warning: exported type ServiceDetails should have comment or be unexported (golint)
    • Line 669: warning: exported type Stat should have comment or be unexported (golint)
    • Line 674: warning: exported type PinCount should have comment or be unexported (golint)
    • Line 681: warning: comment on exported type PinServicesList should be of the form "PinServicesList ..." (with optional leading article) (golint)
    • go-ipfs/core/coreapi/swarm.go
    • Line 17: warning: exported type SwarmAPI should have comment or be unexported (golint)
    • Line 32: warning: exported method SwarmAPI.Connect should have comment or be unexported (golint)
    • Line 49: warning: exported method SwarmAPI.Disconnect should have comment or be unexported (golint)
    • Line 79: warning: exported method SwarmAPI.KnownAddrs should have comment or be unexported (golint)
    • Line 96: warning: exported method SwarmAPI.LocalAddrs should have comment or be unexported (golint)
    • Line 104: warning: exported method SwarmAPI.ListenAddrs should have comment or be unexported (golint)
    • Line 112: warning: exported method SwarmAPI.Peers should have comment or be unexported (golint)
    • go-ipfs/core/commands/pubsub.go
    • Line 17: warning: exported var PubsubCmd should have comment or be unexported (golint)
    • Line 49: warning: exported var PubsubSubCmd should have comment or be unexported (golint)
    • Line 136: warning: exported var PubsubPubCmd should have comment or be unexported (golint)
    • Line 175: warning: exported var PubsubLsCmd should have comment or be unexported (golint)
    • Line 216: warning: exported var PubsubPeersCmd should have comment or be unexported (golint)
    • go-ipfs/core/commands/root.go
    • Line 19: warning: exported var ErrNotOnline should have comment or be unexported (golint)
    • Line 22: warning: exported const ConfigOption should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported var Root should have comment or be unexported (golint)
    • Line 113: warning: comment on exported var CommandsDaemonCmd should be of the form "CommandsDaemonCmd ..." (golint)
    • Line 159: warning: exported var CommandsDaemonROCmd should have comment or be unexported (golint)
    • Line 225: warning: exported type MessageOutput should have comment or be unexported (golint)
    • go-ipfs/repo/fsrepo/migrations/fetcher.go
    • Line 12: warning: comment on exported const CurrentIpfsDist should be of the form "CurrentIpfsDist ..." (golint)
    • Line 14: warning: comment on exported const LatestIpfsDist should be of the form "LatestIpfsDist ..." (golint)
    • Line 21: warning: exported type Fetcher should have comment or be unexported (golint)
    • Line 64: warning: exported method MultiFetcher.Close should have comment or be unexported (golint)
    • Line 74: warning: exported method MultiFetcher.Len should have comment or be unexported (golint)
    • Line 78: warning: exported method MultiFetcher.Fetchers should have comment or be unexported (golint)
    • go-ipfs/fuse/ipns/link_unix.go
    • Line 13: warning: exported type Link should have comment or be unexported (golint)
    • Line 17: warning: exported method Link.Attr should have comment or be unexported (golint)
    • Line 23: warning: exported method Link.Readlink should have comment or be unexported (golint)
    • go-ipfs/core/corehttp/webui.go
    • Line 3: warning: comment on exported const WebUIPath should be of the form "WebUIPath ..." (golint)
    • Line 6: warning: comment on exported var WebUIPaths should be of the form "WebUIPaths ..." (golint)
    • Line 48: warning: exported var WebUIOption should have comment or be unexported (golint)
    • go-ipfs/core/commands/version.go
    • Line 16: warning: exported type VersionOutput should have comment or be unexported (golint)
    • Line 31: warning: exported var VersionCmd should have comment or be unexported (golint)
    • Line 97: warning: exported type Dependency should have comment or be unexported (golint)
    • go-ipfs/repo/common/common.go
    • Line 8: warning: exported function MapGetKV should have comment or be unexported (golint)
    • Line 30: warning: exported function MapSetKV should have comment or be unexported (golint)
    • go-ipfs/fuse/mount/mount.go
    • Line 1: warning: package comment should be of the form "Package mount ..." (golint)
    • Line 17: warning: exported var MountTimeout should have comment or be unexported (golint)
    • Line 105: warning: exported function Closer should have comment or be unexported (golint)
    • go-ipfs/core/coreapi/dht.go
    • Line 20: warning: exported type DhtAPI should have comment or be unexported (golint)
    • Line 22: warning: exported method DhtAPI.FindPeer should have comment or be unexported (golint)
    • Line 36: warning: exported method DhtAPI.FindProviders should have comment or be unexported (golint)
    • Line 61: warning: exported method DhtAPI.Provide should have comment or be unexported (golint)
    • go-ipfs/core/coreapi/object.go
    • Line 27: warning: exported type ObjectAPI should have comment or be unexported (golint)
    • Line 29: warning: exported type Link should have comment or be unexported (golint)
    • Line 34: warning: exported type Node should have comment or be unexported (golint)
    • Line 39: warning: exported method ObjectAPI.New should have comment or be unexported (golint)
    • Line 62: warning: exported method ObjectAPI.Put should have comment or be unexported (golint)
    • Line 132: warning: exported method ObjectAPI.Get should have comment or be unexported (golint)
    • Line 136: warning: exported method ObjectAPI.Data should have comment or be unexported (golint)
    • Line 150: warning: exported method ObjectAPI.Links should have comment or be unexported (golint)
    • Line 165: warning: exported method ObjectAPI.Stat should have comment or be unexported (golint)
    • Line 188: warning: exported method ObjectAPI.AddLink should have comment or be unexported (golint)
    • Line 229: warning: exported method ObjectAPI.RmLink should have comment or be unexported (golint)
    • Line 255: warning: exported method ObjectAPI.AppendData should have comment or be unexported (golint)
    • Line 259: warning: exported method ObjectAPI.SetData should have comment or be unexported (golint)
    • Line 292: warning: exported method ObjectAPI.Diff should have comment or be unexported (golint)
    • go-ipfs/cmd/ipfs/pinmfs.go
    • Line 138: warning: don't use underscores in Go names; range var svcName_ should be svcName (golint)
    • Line 138: warning: don't use underscores in Go names; range var svcConfig_ should be svcConfig (golint)
    • go-ipfs/core/commands/repo.go
    • Line 24: warning: exported type RepoVersion should have comment or be unexported (golint)
    • Line 28: warning: exported var RepoCmd should have comment or be unexported (golint)
    • Line 233: warning: exported type VerifyProgress should have comment or be unexported (golint)
    • go-ipfs/core/node/libp2p/addrs.go
    • Line 13: warning: exported function AddrFilters should have comment or be unexported (golint)
    • Line 74: warning: exported function AddrsFactory should have comment or be unexported (golint)
    • Line 98: warning: exported function StartListening should have comment or be unexported (golint)
    • go-ipfs/fuse/ipns/ipns_unix.go
    • Line 3: warning: package comment should be of the form "Package ipns ..." (golint)
    • Line 64: warning: exported method FileSystem.Destroy should have comment or be unexported (golint)
    • Line 116: warning: exported function CreateRoot should have comment or be unexported (golint)
    • Line 194: warning: exported method Root.Close should have comment or be unexported (golint)
    • Line 194: warning: receiver name r should be consistent with previous receiver name s for Root (golint)
    • Line 206: warning: receiver name r should be consistent with previous receiver name s for Root (golint)
    • Line 215: warning: receiver name r should be consistent with previous receiver name s for Root (golint)
    • Line 238: warning: exported type FileNode should have comment or be unexported (golint)
    • Line 272: warning: receiver name s should be consistent with previous receiver name d for Directory (golint)
    • Line 292: warning: receiver name dir should be consistent with previous receiver name d for Directory (golint)
    • Line 350: warning: exported method File.Flush should have comment or be unexported (golint)
    • Line 363: warning: exported method File.Setattr should have comment or be unexported (golint)
    • Line 395: warning: exported method File.Forget should have comment or be unexported (golint)
    • Line 403: warning: exported method Directory.Mkdir should have comment or be unexported (golint)
    • Line 403: warning: receiver name dir should be consistent with previous receiver name d for Directory (golint)
    • Line 412: warning: exported method FileNode.Open should have comment or be unexported (golint)
    • Line 449: warning: exported method File.Release should have comment or be unexported (golint)
    • Line 453: warning: exported method Directory.Create should have comment or be unexported (golint)
    • Line 453: warning: receiver name dir should be consistent with previous receiver name d for Directory (golint)
    • Line 485: warning: exported method Directory.Remove should have comment or be unexported (golint)
    • Line 485: warning: receiver name dir should be consistent with previous receiver name d for Directory (golint)
    • Line 494: warning: receiver name dir should be consistent with previous receiver name d for Directory (golint)
    • go-ipfs/core/commands/cid.go
    • Line 18: warning: exported var CidCmd should have comment or be unexported (golint)
    • Line 117: warning: exported type CidFormatRes should have comment or be unexported (golint)
    • Line 244: warning: exported type CodeAndName should have comment or be unexported (golint)
    • go-ipfs/core/commands/extra.go
    • Line 5: warning: exported function CreateCmdExtras should have comment or be unexported (golint)
    • Line 15: warning: exported function SetDoesNotUseRepo should have comment or be unexported (golint)
    • Line 21: warning: exported function GetDoesNotUseRepo should have comment or be unexported (golint)
    • Line 33: warning: exported function SetDoesNotUseConfigAsInput should have comment or be unexported (golint)
    • Line 39: warning: exported function GetDoesNotUseConfigAsInput should have comment or be unexported (golint)
    • Line 47: warning: exported function SetPreemptsAutoUpdate should have comment or be unexported (golint)
    • Line 53: warning: exported function GetPreemptsAutoUpdate should have comment or be unexported (golint)
    • go-ipfs/core/commands/object/object.go
    • Line 22: warning: exported type Node should have comment or be unexported (golint)
    • Line 27: warning: exported type Link should have comment or be unexported (golint)
    • Line 32: warning: exported type Object should have comment or be unexported (golint)
    • Line 37: warning: exported var ErrDataEncoding should have comment or be unexported (golint)
    • Line 49: warning: exported var ObjectCmd should have comment or be unexported (golint)
    • go-ipfs/cmd/ipfs/pinmfs_test.go
    • Line 101: warning: don't use underscores in Go names; var cfg_invalid_interval should be cfgInvalidInterval (golint)
    • Line 122: warning: don't use underscores in Go names; var cfg_valid_unnamed should be cfgValidUnnamed (golint)
    • Line 137: warning: don't use underscores in Go names; var cfg_valid_named should be cfgValidNamed (golint)
    • go-ipfs/core/corerepo/gc.go
    • Line 21: warning: exported var ErrMaxStorageExceeded should have comment or be unexported (golint)
    • Line 23: warning: exported type GC should have comment or be unexported (golint)
    • Line 32: warning: exported function NewGC should have comment or be unexported (golint)
    • Line 77: warning: exported function BestEffortRoots should have comment or be unexported (golint)
    • Line 86: warning: context.Context should be the first parameter of a function (golint)
    • Line 86: warning: exported function GarbageCollect should have comment or be unexported (golint)
    • Line 150: warning: context.Context should be the first parameter of a function (golint)
    • Line 150: warning: exported function GarbageCollectAsync should have comment or be unexported (golint)
    • Line 162: warning: exported function PeriodicGC should have comment or be unexported (golint)
    • Line 199: warning: exported function ConditionalGC should have comment or be unexported (golint)
    • go-ipfs/core/commands/pin/pin.go
    • Line 27: warning: exported var PinCmd should have comment or be unexported (golint)
    • Line 42: warning: exported type PinOutput should have comment or be unexported (golint)
    • Line 46: warning: exported type AddPinOutput should have comment or be unexported (golint)
    • go-ipfs/core/node/libp2p/host.go
    • Line 20: warning: exported type P2PHostIn should have comment or be unexported (golint)
    • Line 33: warning: exported type P2PHostOut should have comment or be unexported (golint)
    • Line 40: warning: exported function Host should have comment or be unexported (golint)
    • go-ipfs/core/coreunix/add.go
    • Line 36: warning: exported type Link should have comment or be unexported (golint)
    • Line 159: warning: comment on exported method Adder.PinRoot should be of the form "PinRoot ..." (golint)
    • go-ipfs/core/commands/refs.go
    • Line 135: warning: exported var RefsLocalCmd should have comment or be unexported (golint)
    • Line 181: warning: exported type RefWrapper should have comment or be unexported (golint)
    • Line 186: warning: exported type RefWriter should have comment or be unexported (golint)
    • Line 317: warning: comment on exported method RefWriter.WriteEdge should be of the form "WriteEdge ..." (golint)
    • go-ipfs/core/coreapi/name.go
    • Line 20: warning: exported type NameAPI should have comment or be unexported (golint)
    • Line 64: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 84: warning: exported method NameAPI.Search should have comment or be unexported (golint)
    • go-ipfs/core/commands/get.go
    • Line 24: warning: exported var ErrInvalidCompressionLevel should have comment or be unexported (golint)
    • Line 33: warning: exported var GetCmd should have comment or be unexported (golint)
    • go-ipfs/core/node/libp2p/pnet.go
    • Line 19: warning: exported type PNetFingerprint should have comment or be unexported (golint)
    • Line 21: warning: exported function PNet should have comment or be unexported (golint)
    • Line 37: warning: exported function PNetChecker should have comment or be unexported (golint)
    • go-ipfs/cmd/ipfs/util/signal.go
    • Line 22: warning: exported function NewIntrHandler should have comment or be unexported (golint)
    • Line 26: warning: exported method IntrHandler.Close should have comment or be unexported (golint)
    • Line 58: warning: exported function SetupInterruptHandler should have comment or be unexported (golint)
    • go-ipfs/core/node/libp2p/routing.go
    • Line 24: warning: exported type BaseIpfsRouting should have comment or be unexported (golint)
    • Line 26: warning: exported type Router should have comment or be unexported (golint)
    • Line 58: warning: exported function BaseRouting should have comment or be unexported (golint)
    • Line 130: warning: exported function Routing should have comment or be unexported (golint)
    • Line 157: warning: exported function PubsubRouter should have comment or be unexported (golint)
    • go-ipfs/repo/fsrepo/fsrepo.go
    • Line 37: warning: comment on exported var RepoVersion should be of the form "RepoVersion ..." (golint)
    • Line 50: warning: exported var ErrNoVersion should have comment or be unexported (golint)
    • Line 55: warning: exported type NoRepoError should have comment or be unexported (golint)
    • Line 351: warning: exported method FSRepo.Keystore should have comment or be unexported (golint)
    • Line 355: warning: exported method FSRepo.Path should have comment or be unexported (golint)
    • Line 514: warning: exported method FSRepo.FileManager should have comment or be unexported (golint)
    • Line 518: warning: exported method FSRepo.BackupConfig should have comment or be unexported (golint)
    • Line 667: warning: exported method FSRepo.SwarmKey should have comment or be unexported (golint)
    • go-ipfs/core/coreapi/block.go
    • Line 20: warning: exported type BlockAPI should have comment or be unexported (golint)
    • Line 22: warning: exported type BlockStat should have comment or be unexported (golint)
    • Line 27: warning: exported method BlockAPI.Put should have comment or be unexported (golint)
    • Line 67: warning: exported method BlockAPI.Get should have comment or be unexported (golint)
    • Line 81: warning: exported method BlockAPI.Rm should have comment or be unexported (golint)
    • Line 119: warning: exported method BlockAPI.Stat should have comment or be unexported (golint)
    • Line 136: warning: exported method BlockStat.Size should have comment or be unexported (golint)
    • Line 140: warning: exported method BlockStat.Path should have comment or be unexported (golint)
    • go-ipfs/core/commands/keystore.go
    • Line 27: warning: exported var KeyCmd should have comment or be unexported (golint)
    • Line 55: warning: exported type KeyOutput should have comment or be unexported (golint)
    • Line 60: warning: exported type KeyOutputList should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words

    • go-ipfs/gc/gc.go
    • Line 63: warning: "keychan" is a misspelling of "keychain" (misspell)
    • Line 78: warning: "keychan" is a misspelling of "keychain" (misspell)