Preparing report...

Report for github.com/tiglabs/containerfs

(v0.0.0-20181012040258-71dd0caa9657)

A+    Excellent!    Found 147 issues across 272 files

Tweet

gofmt97%

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!


gocyclo95%

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.

    • containerfs/fuse/fs/serve_test.go
    • Line 1114: warning: cyclomatic complexity 18 of function TestInterrupt() is high (> 15) (gocyclo)
    • Line 175: warning: cyclomatic complexity 16 of function TestStatfs() is high (> 15) (gocyclo)
    • Line 2537: warning: cyclomatic complexity 16 of function TestInvalidateNodeDataInvalidatesData() is high (> 15) (gocyclo)

golint48%

Golint is a linter for Go source code.

    • containerfs/sdk/data/stream/extent_writer.go
    • Line 33: warning: exported const ContinueReceive should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: error var FlushErr should have name of the form ErrFoo (golint)
    • Line 44: warning: exported var FlushErr should have comment or be unexported (golint)
    • Line 45: warning: error var FullExtentErr should have name of the form ErrFoo (golint)
    • Line 48: warning: exported type ExtentWriter should have comment or be unexported (golint)
    • Line 67: warning: exported function NewExtentWriter should have comment or be unexported (golint)
    • Line 146: warning: exported method ExtentWriter.IsFullCurrentPacket should have comment or be unexported (golint)
    • Line 171: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • containerfs/master/data_partition.go
    • Line 29: warning: exported type DataPartition should have comment or be unexported (golint)
    • Line 60: warning: exported method DataPartition.AddMember should have comment or be unexported (golint)
    • Line 69: warning: exported method DataPartition.GenerateCreateTasks should have comment or be unexported (golint)
    • Line 83: warning: exported method DataPartition.GenerateDeleteTask should have comment or be unexported (golint)
    • Line 130: warning: comment on exported method DataPartition.GetAvailableDataReplicas should be of the form "GetAvailableDataReplicas ..." (golint)
    • Line 164: warning: exported method DataPartition.DeleteReplicaByIndex should have comment or be unexported (golint)
    • Line 286: warning: exported method DataPartition.ReleaseDataPartition should have comment or be unexported (golint)
    • Line 301: warning: exported method DataPartition.IsInReplicas should have comment or be unexported (golint)
    • Line 321: warning: exported method DataPartition.HostsToString should have comment or be unexported (golint)
    • Line 375: warning: exported method DataPartition.LoadFile should have comment or be unexported (golint)
    • Line 437: warning: exported method DataPartition.UpdateMetric should have comment or be unexported (golint)
    • containerfs/util/log/log.go
    • Line 31: warning: exported type Level should have comment or be unexported (golint)
    • Line 34: warning: exported const DebugLevel should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported const FileNameDateFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 170: warning: exported type Log should have comment or be unexported (golint)
    • Line 185: warning: exported var ErrLogFileName should have comment or be unexported (golint)
    • Line 195: warning: exported function InitLog should have comment or be unexported (golint)
    • Line 244: warning: exported method Log.SetPrefix should have comment or be unexported (golint)
    • Line 260: warning: exported method Log.Flush should have comment or be unexported (golint)
    • Line 276: warning: exported function LogWarn should have comment or be unexported (golint)
    • Line 288: warning: exported function LogWarnf should have comment or be unexported (golint)
    • Line 300: warning: exported function LogInfo should have comment or be unexported (golint)
    • Line 312: warning: exported function LogInfof should have comment or be unexported (golint)
    • Line 324: warning: exported function LogError should have comment or be unexported (golint)
    • Line 336: warning: exported function LogErrorf should have comment or be unexported (golint)
    • Line 348: warning: exported function LogDebug should have comment or be unexported (golint)
    • Line 360: warning: exported function LogDebugf should have comment or be unexported (golint)
    • Line 372: warning: exported function LogFatal should have comment or be unexported (golint)
    • Line 385: warning: exported function LogFatalf should have comment or be unexported (golint)
    • Line 398: warning: exported function LogRead should have comment or be unexported (golint)
    • Line 410: warning: exported function LogReadf should have comment or be unexported (golint)
    • Line 422: warning: exported function LogWrite should have comment or be unexported (golint)
    • Line 434: warning: exported function LogWritef should have comment or be unexported (golint)
    • Line 446: warning: exported function LogFlush should have comment or be unexported (golint)
    • containerfs/client/fs/const.go
    • Line 27: warning: exported const RootInode should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported const DIR_NLINK_DEFAULT should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported const DefaultBlksize should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported const LookupValidDuration should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported const DefaultInodeExpiration should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported const DentryValidDuration should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: exported const DeleteExtentsTimeout should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported function ParseError should have comment or be unexported (golint)
    • Line 69: warning: exported function ParseMode should have comment or be unexported (golint)
    • containerfs/client/fs/icache.go
    • Line 24: warning: exported const MinInodeCacheEvictNum should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type InodeCache should have comment or be unexported (golint)
    • Line 38: warning: exported function NewInodeCache should have comment or be unexported (golint)
    • Line 49: warning: exported method InodeCache.Put should have comment or be unexported (golint)
    • Line 69: warning: exported method InodeCache.Get should have comment or be unexported (golint)
    • Line 87: warning: exported method InodeCache.Delete should have comment or be unexported (golint)
    • containerfs/fuse/examples/clockfs/clockfs.go
    • Line 85: warning: exported type FS should have comment or be unexported (golint)
    • Line 91: warning: exported method FS.Root should have comment or be unexported (golint)
    • Line 102: warning: exported method Dir.Attr should have comment or be unexported (golint)
    • Line 110: warning: exported method Dir.Lookup should have comment or be unexported (golint)
    • Line 123: warning: exported method Dir.ReadDirAll should have comment or be unexported (golint)
    • Line 127: warning: exported type File should have comment or be unexported (golint)
    • Line 136: warning: exported method File.Attr should have comment or be unexported (golint)
    • Line 146: warning: exported method File.Open should have comment or be unexported (golint)
    • containerfs/cmd/cmd.go
    • Line 39: warning: exported const Version should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported const ConfigKeyRole should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported const RoleMaster should have comment (or a comment on this block) or be unexported (golint)
    • Line 56: warning: exported const ModuleMaster should have comment (or a comment on this block) or be unexported (golint)
    • Line 65: warning: exported type Server should have comment or be unexported (golint)
    • Line 83: warning: don't use underscores in Go names; func exec_shell should be execShell (golint)
    • containerfs/metanode/partition_item.go
    • Line 26: warning: exported type MetaItem should have comment or be unexported (golint)
    • Line 32: warning: comment on exported method MetaItem.MarshalJson should be of the form "MarshalJson ..." (golint)
    • Line 71: warning: comment on exported method MetaItem.UnmarshalBinary should be of the form "UnmarshalBinary ..." (golint)
    • Line 104: warning: exported function NewMetaItem should have comment or be unexported (golint)
    • Line 112: warning: exported type ItemIterator should have comment or be unexported (golint)
    • Line 123: warning: exported function NewMetaItemIterator should have comment or be unexported (golint)
    • Line 135: warning: exported method ItemIterator.ApplyIndex should have comment or be unexported (golint)
    • Line 139: warning: exported method ItemIterator.Close should have comment or be unexported (golint)
    • Line 144: warning: exported method ItemIterator.Next should have comment or be unexported (golint)
    • containerfs/fuse/block_pool.go
    • Line 8: warning: exported const NumOfBlockPool should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported const BlockSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported const PoolSize4K should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported const PoolSizeWithHeader4K should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported var ReadBlockPool should have comment or be unexported (golint)
    • Line 41: warning: exported function InitReadBlockPool should have comment or be unexported (golint)
    • Line 71: warning: exported function GetBlockBuf should have comment or be unexported (golint)
    • Line 98: warning: exported function PutBlockBuf should have comment or be unexported (golint)
    • containerfs/datanode/blob_repair.go
    • Line 103: warning: exported type RepairBlobFileTask should have comment or be unexported (golint)
    • Line 109: warning: exported method RepairBlobFileTask.ToString should have comment or be unexported (golint)
    • Line 547: warning: exported const PkgRepairCReadRespMaxSize should have comment (or a comment on this block) or be unexported (golint)
    • containerfs/fuse/fs/fstestutil/testfs.go
    • Line 18: warning: exported method SimpleFS.Root should have comment or be unexported (golint)
    • Line 25: warning: exported method File.Attr should have comment or be unexported (golint)
    • Line 33: warning: exported method Dir.Attr should have comment or be unexported (golint)
    • Line 44: warning: exported method ChildMap.Attr should have comment or be unexported (golint)
    • Line 49: warning: exported method ChildMap.Lookup should have comment or be unexported (golint)
    • containerfs/proto/packet.go
    • Line 32: warning: exported var ReqIDGlobal should have comment or be unexported (golint)
    • Line 36: warning: exported function GetReqID should have comment or be unexported (golint)
    • Line 41: warning: exported const AddrSplit should have comment (or a comment on this block) or be unexported (golint)
    • Line 120: warning: exported const WriteDeadlineTime should have comment (or a comment on this block) or be unexported (golint)
    • Line 127: warning: exported const BlobStoreMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 131: warning: exported type Packet should have comment or be unexported (golint)
    • Line 149: warning: exported function NewPacket should have comment or be unexported (golint)
    • Line 157: warning: exported method Packet.GetStoreModeMsg should have comment or be unexported (golint)
    • Line 169: warning: exported method Packet.GetOpMsg should have comment or be unexported (golint)
    • Line 268: warning: exported method Packet.GetResultMesg should have comment or be unexported (golint)
    • Line 302: warning: exported method Packet.GetData should have comment or be unexported (golint)
    • Line 309: warning: exported method Packet.MarshalHeader should have comment or be unexported (golint)
    • Line 325: warning: exported method Packet.UnmarshalHeader should have comment or be unexported (golint)
    • Line 346: warning: exported method Packet.MarshalData should have comment or be unexported (golint)
    • Line 355: warning: exported method Packet.UnmarshalData should have comment or be unexported (golint)
    • Line 359: warning: exported method Packet.WriteToNoDeadLineConn should have comment or be unexported (golint)
    • Line 378: warning: exported method Packet.WriteToConn should have comment or be unexported (golint)
    • Line 398: warning: exported method Packet.WriteHeaderToConn should have comment or be unexported (golint)
    • Line 410: warning: exported function ReadFull should have comment or be unexported (golint)
    • Line 416: warning: exported method Packet.ReadFromConn should have comment or be unexported (golint)
    • Line 448: warning: exported method Packet.PackOkReply should have comment or be unexported (golint)
    • Line 454: warning: exported method Packet.PackOkReadReply should have comment or be unexported (golint)
    • Line 459: warning: exported method Packet.PackOkGetWatermarkReply should have comment or be unexported (golint)
    • Line 466: warning: exported method Packet.IsOkReply should have comment or be unexported (golint)
    • Line 470: warning: exported method Packet.PackOkWithBody should have comment or be unexported (golint)
    • Line 478: warning: exported method Packet.PackErrorWithBody should have comment or be unexported (golint)
    • Line 486: warning: exported method Packet.GetUniqueLogId should have comment or be unexported (golint)
    • Line 493: warning: exported method Packet.IsTransitPkg should have comment or be unexported (golint)
    • Line 497: warning: exported method Packet.ActionMsg should have comment or be unexported (golint)
    • Line 513: warning: exported method Packet.ShallRetry should have comment or be unexported (golint)
    • Line 517: warning: exported function NewPingPacket should have comment or be unexported (golint)
    • containerfs/master/meta_node.go
    • Line 25: warning: exported type MetaNode should have comment or be unexported (golint)
    • Line 44: warning: exported function NewMetaNode should have comment or be unexported (golint)
    • Line 59: warning: exported method MetaNode.SetCarry should have comment or be unexported (golint)
    • Line 65: warning: exported method MetaNode.SelectNodeForWrite should have comment or be unexported (golint)
    • Line 72: warning: exported method MetaNode.IsWriteAble should have comment or be unexported (golint)
    • Line 82: warning: exported method MetaNode.IsAvailCarryNode should have comment or be unexported (golint)
    • containerfs/fuse/protocol.go
    • Line 18: warning: receiver name a should be consistent with previous receiver name p for Protocol (golint)
    • Line 24: warning: receiver name a should be consistent with previous receiver name p for Protocol (golint)
    • Line 29: warning: receiver name a should be consistent with previous receiver name p for Protocol (golint)
    • Line 35: warning: receiver name a should be consistent with previous receiver name p for Protocol (golint)
    • Line 41: warning: receiver name a should be consistent with previous receiver name p for Protocol (golint)
    • Line 47: warning: receiver name a should be consistent with previous receiver name p for Protocol (golint)
    • Line 51: warning: receiver name a should be consistent with previous receiver name p for Protocol (golint)
    • Line 57: warning: receiver name a should be consistent with previous receiver name p for Protocol (golint)
    • Line 61: warning: receiver name a should be consistent with previous receiver name p for Protocol (golint)
    • Line 67: warning: receiver name a should be consistent with previous receiver name p for Protocol (golint)
    • Line 73: warning: receiver name a should be consistent with previous receiver name p for Protocol (golint)
    • containerfs/proto/fs_proto.go
    • Line 24: warning: exported const RootIno should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported function Mode should have comment or be unexported (golint)
    • Line 31: warning: exported function OsMode should have comment or be unexported (golint)
    • Line 35: warning: exported function IsRegular should have comment or be unexported (golint)
    • Line 39: warning: exported function IsDir should have comment or be unexported (golint)
    • Line 43: warning: exported function IsSymlink should have comment or be unexported (golint)
    • Line 47: warning: exported type InodeInfo should have comment or be unexported (golint)
    • Line 65: warning: exported type Dentry should have comment or be unexported (golint)
    • Line 75: warning: exported type CreateInodeRequest should have comment or be unexported (golint)
    • Line 82: warning: exported type CreateInodeResponse should have comment or be unexported (golint)
    • Line 86: warning: exported type LinkInodeRequest should have comment or be unexported (golint)
    • Line 92: warning: exported type LinkInodeResponse should have comment or be unexported (golint)
    • Line 96: warning: comment on exported type DeleteInodeRequest should be of the form "DeleteInodeRequest ..." (with optional leading article) (golint)
    • Line 103: warning: exported type DeleteInodeResponse should have comment or be unexported (golint)
    • Line 107: warning: exported type EvictInodeRequest should have comment or be unexported (golint)
    • Line 113: warning: exported type CreateDentryRequest should have comment or be unexported (golint)
    • Line 122: warning: exported type UpdateDentryRequest should have comment or be unexported (golint)
    • Line 130: warning: exported type UpdateDentryResponse should have comment or be unexported (golint)
    • Line 134: warning: exported type DeleteDentryRequest should have comment or be unexported (golint)
    • Line 141: warning: exported type DeleteDentryResponse should have comment or be unexported (golint)
    • Line 145: warning: exported type OpenRequest should have comment or be unexported (golint)
    • Line 151: warning: exported type LookupRequest should have comment or be unexported (golint)
    • Line 158: warning: exported type LookupResponse should have comment or be unexported (golint)
    • Line 163: warning: exported type InodeGetRequest should have comment or be unexported (golint)
    • Line 169: warning: exported type InodeGetResponse should have comment or be unexported (golint)
    • Line 173: warning: exported type BatchInodeGetRequest should have comment or be unexported (golint)
    • Line 179: warning: exported type BatchInodeGetResponse should have comment or be unexported (golint)
    • Line 183: warning: exported type ReadDirRequest should have comment or be unexported (golint)
    • Line 189: warning: exported type ReadDirResponse should have comment or be unexported (golint)
    • Line 193: warning: exported type AppendExtentKeyRequest should have comment or be unexported (golint)
    • Line 200: warning: exported type GetExtentsRequest should have comment or be unexported (golint)
    • Line 206: warning: exported type GetExtentsResponse should have comment or be unexported (golint)
    • Line 210: warning: exported type TruncateRequest should have comment or be unexported (golint)
    • Line 218: warning: exported type TruncateResponse should have comment or be unexported (golint)
    • Line 222: warning: exported type SetattrRequest should have comment or be unexported (golint)
    • Line 233: warning: exported const AttrMode should have comment (or a comment on this block) or be unexported (golint)
    • containerfs/sdk/data/blob/packet.go
    • Line 31: warning: exported const NumKeySegments should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported function NewBlobWritePacket should have comment or be unexported (golint)
    • Line 51: warning: exported function NewBlobReadPacket should have comment or be unexported (golint)
    • Line 65: warning: exported function NewBlobDeletePacket should have comment or be unexported (golint)
    • Line 80: warning: exported function ParsePacket should have comment or be unexported (golint)
    • Line 84: warning: exported function GenKey should have comment or be unexported (golint)
    • Line 91: warning: exported function ParseKey should have comment or be unexported (golint)
    • containerfs/util/pool/conn_pool.go
    • Line 32: warning: exported type ConnectObject should have comment or be unexported (golint)
    • Line 36: warning: exported type Pool should have comment or be unexported (golint)
    • Line 43: warning: exported function NewPool should have comment or be unexported (golint)
    • Line 84: warning: exported method Pool.AutoRelease should have comment or be unexported (golint)
    • Line 95: warning: exported method Pool.Get should have comment or be unexported (golint)
    • Line 111: warning: exported type ConnectPool should have comment or be unexported (golint)
    • Line 119: warning: exported function NewConnPool should have comment or be unexported (golint)
    • Line 126: warning: exported method ConnectPool.Get should have comment or be unexported (golint)
    • Line 138: warning: exported method ConnectPool.Put should have comment or be unexported (golint)
    • Line 160: warning: exported method ConnectPool.CheckErrorForPutConnect should have comment or be unexported (golint)
    • Line 185: warning: exported method ConnectPool.ReleaseAllConnect should have comment or be unexported (golint)
    • containerfs/sdk/meta/conn.go
    • Line 29: warning: exported const SendRetryLimit should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type MetaConn should have comment or be unexported (golint)
    • containerfs/sdk/data/stream/packet.go
    • Line 28: warning: exported type Packet should have comment or be unexported (golint)
    • Line 36: warning: exported function NewWritePacket should have comment or be unexported (golint)
    • Line 55: warning: exported function NewReadPacket should have comment or be unexported (golint)
    • Line 70: warning: exported function NewStreamReadPacket should have comment or be unexported (golint)
    • Line 85: warning: exported function NewCreateExtentPacket should have comment or be unexported (golint)
    • Line 104: warning: exported function NewDeleteExtentPacket should have comment or be unexported (golint)
    • Line 118: warning: exported function NewReply should have comment or be unexported (golint)
    • Line 129: warning: exported method Packet.IsEqualWriteReply should have comment or be unexported (golint)
    • Line 137: warning: exported method Packet.IsEqualReadReply should have comment or be unexported (golint)
    • Line 145: warning: exported method Packet.IsEqualStreamReadReply should have comment or be unexported (golint)
    • Line 181: warning: exported function ReadFull should have comment or be unexported (golint)
    • Line 189: warning: exported method Packet.ReadFromConnStream should have comment or be unexported (golint)
    • containerfs/datanode/packet.go
    • Line 33: warning: exported var ErrBadNodes should have comment or be unexported (golint)
    • Line 38: warning: exported type Packet should have comment or be unexported (golint)
    • Line 66: warning: exported method Packet.UnmarshalAddrs should have comment or be unexported (golint)
    • Line 85: warning: exported function NewPacket should have comment or be unexported (golint)
    • Line 92: warning: exported method Packet.IsMasterCommand should have comment or be unexported (golint)
    • Line 104: warning: exported method Packet.GetNextAddr should have comment or be unexported (golint)
    • Line 118: warning: exported method Packet.IsTransitPkg should have comment or be unexported (golint)
    • Line 123: warning: exported method Packet.CheckCrc should have comment or be unexported (golint)
    • Line 135: warning: exported function NewExtentStoreGetAllWaterMarker should have comment or be unexported (golint)
    • Line 145: warning: exported function NewBlobStoreGetAllWaterMarker should have comment or be unexported (golint)
    • Line 156: warning: exported function NewStreamReadPacket should have comment or be unexported (golint)
    • Line 170: warning: exported function NewStreamBlobFileRepairReadPacket should have comment or be unexported (golint)
    • Line 182: warning: exported function NewNotifyExtentRepair should have comment or be unexported (golint)
    • Line 192: warning: exported function NewNotifyBlobRepair should have comment or be unexported (golint)
    • Line 202: warning: exported function NewNotifyCompactPkg should have comment or be unexported (golint)
    • Line 214: warning: exported method Packet.IsTailNode should have comment or be unexported (golint)
    • Line 223: warning: exported method Packet.IsWriteOperation should have comment or be unexported (golint)
    • Line 227: warning: exported method Packet.IsCreateFileOperation should have comment or be unexported (golint)
    • Line 231: warning: exported method Packet.IsMarkDeleteOperation should have comment or be unexported (golint)
    • Line 235: warning: exported method Packet.IsExtentWritePacket should have comment or be unexported (golint)
    • Line 239: warning: exported method Packet.IsReadOperation should have comment or be unexported (golint)
    • Line 243: warning: exported method Packet.IsMarkDeleteReq should have comment or be unexported (golint)
    • Line 255: warning: exported method Packet.CopyFrom should have comment or be unexported (golint)
    • Line 262: warning: exported method Packet.IsErrPack should have comment or be unexported (golint)
    • Line 270: warning: exported method Packet.ClassifyErrorOp should have comment or be unexported (golint)
    • Line 298: warning: exported method Packet.PackErrorBody should have comment or be unexported (golint)
    • Line 308: warning: exported method Packet.ReadFull should have comment or be unexported (golint)
    • Line 318: warning: exported method Packet.ReadFromConnFromCli should have comment or be unexported (golint)
    • containerfs/datanode/partition_metrics.go
    • Line 5: warning: exported type DataPartitionMetrics should have comment or be unexported (golint)
    • Line 16: warning: exported function NewDataPartitionMetrics should have comment or be unexported (golint)
    • Line 23: warning: exported method DataPartitionMetrics.AddReadMetrics should have comment or be unexported (golint)
    • Line 28: warning: exported method DataPartitionMetrics.AddWriteMetrics should have comment or be unexported (golint)
    • Line 42: warning: exported method DataPartitionMetrics.GetWriteLatency should have comment or be unexported (golint)
    • Line 46: warning: exported method DataPartitionMetrics.GetReadLatency should have comment or be unexported (golint)
    • containerfs/master/metadata_fsm.go
    • Line 29: warning: exported const Applied should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type RaftLeaderChangeHandler should have comment or be unexported (golint)
    • Line 34: warning: exported type RaftPeerChangeHandler should have comment or be unexported (golint)
    • Line 36: warning: exported type RaftCmdApplyHandler should have comment or be unexported (golint)
    • Line 38: warning: exported type RaftApplySnapshotHandler should have comment or be unexported (golint)
    • Line 40: warning: exported type MetadataFsm should have comment or be unexported (golint)
    • Line 55: warning: exported method MetadataFsm.RegisterLeaderChangeHandler should have comment or be unexported (golint)
    • Line 59: warning: exported method MetadataFsm.RegisterPeerChangeHandler should have comment or be unexported (golint)
    • Line 63: warning: exported method MetadataFsm.RegisterApplyHandler should have comment or be unexported (golint)
    • Line 67: warning: exported method MetadataFsm.RegisterApplySnapshotHandler should have comment or be unexported (golint)
    • Line 93: warning: exported method MetadataFsm.Apply should have comment or be unexported (golint)
    • Line 134: warning: exported method MetadataFsm.ApplyMemberChange should have comment or be unexported (golint)
    • Line 142: warning: exported method MetadataFsm.Snapshot should have comment or be unexported (golint)
    • Line 155: warning: exported method MetadataFsm.ApplySnapshot should have comment or be unexported (golint)
    • Line 185: warning: exported method MetadataFsm.HandleFatalEvent should have comment or be unexported (golint)
    • Line 189: warning: exported method MetadataFsm.HandleLeaderChange should have comment or be unexported (golint)
    • Line 195: warning: exported method MetadataFsm.Put should have comment or be unexported (golint)
    • Line 199: warning: exported method MetadataFsm.BatchPut should have comment or be unexported (golint)
    • Line 203: warning: exported method MetadataFsm.Get should have comment or be unexported (golint)
    • Line 207: warning: exported method MetadataFsm.Del should have comment or be unexported (golint)
    • Line 211: warning: exported method MetadataFsm.DelKeyAndPutIndex should have comment or be unexported (golint)
    • containerfs/util/set.go
    • Line 21: warning: exported type Set should have comment or be unexported (golint)
    • Line 26: warning: exported function NewSet should have comment or be unexported (golint)
    • Line 32: warning: exported method Set.Add should have comment or be unexported (golint)
    • Line 38: warning: exported method Set.Remove should have comment or be unexported (golint)
    • Line 44: warning: exported method Set.Has should have comment or be unexported (golint)
    • Line 51: warning: exported method Set.List should have comment or be unexported (golint)
    • Line 61: warning: exported method Set.RemoveAll should have comment or be unexported (golint)
    • Line 67: warning: exported method Set.Len should have comment or be unexported (golint)
    • containerfs/storage/object_tree.go
    • Line 30: warning: exported const ObjectHeaderSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type Object should have comment or be unexported (golint)
    • Line 42: warning: exported method Object.Less should have comment or be unexported (golint)
    • Line 47: warning: exported method Object.Marshal should have comment or be unexported (golint)
    • Line 54: warning: exported method Object.Unmarshal should have comment or be unexported (golint)
    • Line 69: warning: exported type ObjectTree should have comment or be unexported (golint)
    • Line 76: warning: exported method ObjectTree.FileBytes should have comment or be unexported (golint)
    • Line 80: warning: exported function NewObjectTree should have comment or be unexported (golint)
    • Line 88: warning: comment on exported method ObjectTree.Load should be of the form "Load ..." (golint)
    • Line 118: warning: exported method Object.Check should have comment or be unexported (golint)
    • Line 123: warning: exported function LoopIndexFile should have comment or be unexported (golint)
    • Line 241: warning: exported method Object.IsIdentical should have comment or be unexported (golint)
    • containerfs/metanode/btree.go
    • Line 27: warning: exported type BtreeItem should have comment or be unexported (golint)
    • Line 29: warning: exported type BTree should have comment or be unexported (golint)
    • Line 34: warning: exported function NewBtree should have comment or be unexported (golint)
    • Line 40: warning: exported method BTree.Get should have comment or be unexported (golint)
    • Line 46: warning: exported method BTree.Find should have comment or be unexported (golint)
    • Line 56: warning: exported method BTree.Has should have comment or be unexported (golint)
    • Line 62: warning: exported method BTree.Delete should have comment or be unexported (golint)
    • Line 68: warning: exported method BTree.ReplaceOrInsert should have comment or be unexported (golint)
    • Line 81: warning: exported method BTree.Ascend should have comment or be unexported (golint)
    • Line 88: warning: exported method BTree.AscendRange should have comment or be unexported (golint)
    • Line 95: warning: exported method BTree.AscendGreaterOrEqual should have comment or be unexported (golint)
    • Line 102: warning: exported method BTree.GetTree should have comment or be unexported (golint)
    • Line 111: warning: exported method BTree.Reset should have comment or be unexported (golint)
    • Line 117: warning: exported method BTree.Len should have comment or be unexported (golint)
    • containerfs/master/data_replica.go
    • Line 22: warning: exported type DataReplica should have comment or be unexported (golint)
    • Line 34: warning: exported function NewDataReplica should have comment or be unexported (golint)
    • Line 42: warning: exported method DataReplica.SetAlive should have comment or be unexported (golint)
    • Line 46: warning: exported method DataReplica.CheckMiss should have comment or be unexported (golint)
    • Line 53: warning: exported method DataReplica.IsLive should have comment or be unexported (golint)
    • Line 62: warning: exported method DataReplica.IsActive should have comment or be unexported (golint)
    • Line 66: warning: exported method DataReplica.GetReplicaNode should have comment or be unexported (golint)
    • Line 70: warning: comment on exported method DataReplica.CheckLocIsAvailContainsDiskError should be of the form "CheckLocIsAvailContainsDiskError ..." (golint)
    • containerfs/master/node_select.go
    • Line 26: warning: exported type NodeTab should have comment or be unexported (golint)
    • Line 33: warning: exported type Node should have comment or be unexported (golint)
    • Line 38: warning: exported type NodeTabArrSorterByCarry should have comment or be unexported (golint)
    • Line 52: warning: exported method NodeTabArrSorterByCarry.SetNodeTabCarry should have comment or be unexported (golint)
    • Line 72: warning: exported method Cluster.GetMetaNodeMaxTotal should have comment or be unexported (golint)
    • Line 117: warning: exported method Cluster.GetAvailCarryMetaNodeTab should have comment or be unexported (golint)
    • Line 146: warning: exported method Cluster.DisOrderArray should have comment or be unexported (golint)
    • containerfs/datanode/disk.go
    • Line 35: warning: exported type CompactTask should have comment or be unexported (golint)
    • Line 46: warning: exported const CompactThreadNum should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported var ErrDiskCompactChanFull should have comment or be unexported (golint)
    • Line 54: warning: comment on exported var RegexpDataPartitionDir should be of the form "RegexpDataPartitionDir ..." (golint)
    • Line 58: warning: exported type DiskUsage should have comment or be unexported (golint)
    • Line 66: warning: exported type Disk should have comment or be unexported (golint)
    • Line 86: warning: exported type PartitionVisitor should have comment or be unexported (golint)
    • Line 88: warning: exported function NewDisk should have comment or be unexported (golint)
    • Line 108: warning: exported method Disk.PartitionCount should have comment or be unexported (golint)
    • Line 229: warning: exported method Disk.AttachDataPartition should have comment or be unexported (golint)
    • Line 262: warning: exported method Disk.DetachDataPartition should have comment or be unexported (golint)
    • Line 269: warning: exported method Disk.DataPartitionList should have comment or be unexported (golint)
    • Line 303: warning: exported method Disk.RestorePartition should have comment or be unexported (golint)
    • containerfs/storage/store_blob.go
    • Line 31: warning: exported const BlobFileFileCount should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported function NewBlobStore should have comment or be unexported (golint)
    • Line 76: warning: exported method BlobStore.DeleteStore should have comment or be unexported (golint)
    • Line 85: warning: exported method BlobStore.UseSize should have comment or be unexported (golint)
    • Line 111: warning: exported method BlobStore.WriteDeleteDentry should have comment or be unexported (golint)
    • Line 213: warning: exported method BlobStore.Sync should have comment or be unexported (golint)
    • Line 228: warning: exported method BlobStore.GetAllWatermark should have comment or be unexported (golint)
    • Line 238: warning: exported method BlobStore.GetWatermark should have comment or be unexported (golint)
    • Line 249: warning: exported method BlobStore.GetAvailBlobFile should have comment or be unexported (golint)
    • Line 259: warning: exported method BlobStore.GetBlobFileForWrite should have comment or be unexported (golint)
    • Line 270: warning: exported method BlobStore.SyncAll should have comment or be unexported (golint)
    • Line 276: warning: exported method BlobStore.CloseAll should have comment or be unexported (golint)
    • Line 283: warning: exported method BlobStore.PutAvailBlobFile should have comment or be unexported (golint)
    • Line 287: warning: exported method BlobStore.GetUnAvailBlobFile should have comment or be unexported (golint)
    • Line 297: warning: exported method BlobStore.PutUnAvailBlobFile should have comment or be unexported (golint)
    • Line 301: warning: exported method BlobStore.GetStoreBlobFileCount should have comment or be unexported (golint)
    • Line 305: warning: exported method BlobStore.MarkDelete should have comment or be unexported (golint)
    • Line 317: warning: exported method BlobStore.GetUnAvailChanLen should have comment or be unexported (golint)
    • Line 321: warning: exported method BlobStore.GetAvailChanLen should have comment or be unexported (golint)
    • Line 325: warning: exported method BlobStore.AllocObjectId should have comment or be unexported (golint)
    • Line 334: warning: exported method BlobStore.GetLastOid should have comment or be unexported (golint)
    • Line 343: warning: exported method BlobStore.GetObject should have comment or be unexported (golint)
    • Line 357: warning: exported method BlobStore.GetDelObjects should have comment or be unexported (golint)
    • Line 382: warning: exported method BlobStore.ApplyDelObjects should have comment or be unexported (golint)
    • Line 391: warning: comment on exported method BlobStore.IsReadyToCompact should be of the form "IsReadyToCompact ..." (golint)
    • Line 413: warning: error should be the last type when returning multiple items (golint)
    • Line 413: warning: exported method BlobStore.DoCompactWork should have comment or be unexported (golint)
    • Line 431: warning: exported method BlobStore.MoveBlobFileToUnavailChan should have comment or be unexported (golint)
    • Line 445: warning: error should be the last type when returning multiple items (golint)
    • Line 471: warning: exported function CheckAndCreateSubdir should have comment or be unexported (golint)
    • Line 475: warning: exported method BlobStore.GetBlobFileInCore should have comment or be unexported (golint)
    • Line 484: warning: exported method BlobStore.Snapshot should have comment or be unexported (golint)
    • containerfs/client/fs/dir.go
    • Line 30: warning: exported type Dir should have comment or be unexported (golint)
    • Line 55: warning: exported function NewDir should have comment or be unexported (golint)
    • Line 62: warning: exported method Dir.Attr should have comment or be unexported (golint)
    • Line 74: warning: exported method Dir.Create should have comment or be unexported (golint)
    • Line 92: warning: exported method Dir.Forget should have comment or be unexported (golint)
    • Line 95: warning: exported method Dir.Mkdir should have comment or be unexported (golint)
    • Line 112: warning: exported method Dir.Remove should have comment or be unexported (golint)
    • Line 131: warning: exported method Dir.Fsync should have comment or be unexported (golint)
    • Line 135: warning: exported method Dir.Lookup should have comment or be unexported (golint)
    • Line 172: warning: exported method Dir.ReadDirAll should have comment or be unexported (golint)
    • Line 206: warning: exported method Dir.Rename should have comment or be unexported (golint)
    • Line 225: warning: exported method Dir.Setattr should have comment or be unexported (golint)
    • Line 249: warning: exported method Dir.Symlink should have comment or be unexported (golint)
    • Line 267: warning: exported method Dir.Link should have comment or be unexported (golint)
    • Line 298: warning: exported method Dir.Getxattr should have comment or be unexported (golint)
    • Line 302: warning: exported method Dir.Listxattr should have comment or be unexported (golint)
    • Line 306: warning: exported method Dir.Setxattr should have comment or be unexported (golint)
    • Line 310: warning: exported method Dir.Removexattr should have comment or be unexported (golint)
    • containerfs/sdk/data/stream/extent_reader.go
    • Line 34: warning: exported const ForceCloseConnect should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported var ReadConnectPool should have comment or be unexported (golint)
    • Line 42: warning: exported type ExtentReader should have comment or be unexported (golint)
    • Line 51: warning: exported function NewExtentReader should have comment or be unexported (golint)
    • containerfs/sdk/data/stream/stream_reader.go
    • Line 28: warning: exported type ReadRequest should have comment or be unexported (golint)
    • Line 38: warning: exported type StreamReader should have comment or be unexported (golint)
    • Line 46: warning: exported function NewStreamReader should have comment or be unexported (golint)
    • Line 186: warning: exported method StreamReader.GetReader should have comment or be unexported (golint)
    • containerfs/util/gorocksdb/checkpoint.go
    • Line 36: warning: don't use underscores in Go names; method parameter checkpoint_dir should be checkpointDir (golint)
    • Line 36: warning: don't use underscores in Go names; method parameter log_size_for_flush should be logSizeForFlush (golint)
    • containerfs/metanode/datapartition.go
    • Line 24: warning: exported const DataPartitionViewUrl should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported type DataPartition should have comment or be unexported (golint)
    • Line 35: warning: exported method DataPartition.GetAllAddrs should have comment or be unexported (golint)
    • Line 39: warning: exported type DataPartitionsView should have comment or be unexported (golint)
    • Line 43: warning: exported type Vol should have comment or be unexported (golint)
    • Line 48: warning: exported function NewVol should have comment or be unexported (golint)
    • Line 54: warning: exported method Vol.GetPartition should have comment or be unexported (golint)
    • Line 60: warning: exported method Vol.UpdatePartitions should have comment or be unexported (golint)
    • containerfs/metanode/manager.go
    • Line 22: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 50: warning: exported type MetaManagerConfig should have comment or be unexported (golint)
    • Line 324: warning: exported function NewMetaManager should have comment or be unexported (golint)
    • containerfs/client/fs/super.go
    • Line 30: warning: exported type Super should have comment or be unexported (golint)
    • Line 45: warning: exported function NewSuper should have comment or be unexported (golint)
    • Line 71: warning: exported method Super.Root should have comment or be unexported (golint)
    • Line 80: warning: exported method Super.Statfs should have comment or be unexported (golint)
    • containerfs/util/ump/ump.go
    • Line 24: warning: exported type TpObject should have comment or be unexported (golint)
    • Line 30: warning: exported function NewTpObject should have comment or be unexported (golint)
    • Line 37: warning: exported const TpMethod should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported var HostName should have comment or be unexported (golint)
    • Line 59: warning: exported function InitUmp should have comment or be unexported (golint)
    • Line 68: warning: exported function BeforeTP should have comment or be unexported (golint)
    • Line 81: warning: exported function AfterTP should have comment or be unexported (golint)
    • Line 97: warning: exported function Alive should have comment or be unexported (golint)
    • Line 109: warning: exported function Alarm should have comment or be unexported (golint)
    • containerfs/metanode/packet.go
    • Line 19: warning: exported type Packet should have comment or be unexported (golint)
    • Line 23: warning: comment on exported function NewExtentDeletePacket should be of the form "NewExtentDeletePacket ..." (golint)
    • containerfs/master/metadata_fsm_op.go
    • Line 29: warning: exported const OpSyncAddMetaNode should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported const KeySeparator should have comment (or a comment on this block) or be unexported (golint)
    • Line 64: warning: exported type MetaPartitionValue should have comment or be unexported (golint)
    • Line 85: warning: exported type DataPartitionValue should have comment or be unexported (golint)
    • Line 102: warning: exported type VolValue should have comment or be unexported (golint)
    • Line 117: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 123: warning: exported method Metadata.Marshal should have comment or be unexported (golint)
    • Line 127: warning: exported method Metadata.Unmarshal should have comment or be unexported (golint)
    • containerfs/client/fs/orphan.go
    • Line 22: warning: exported type OrphanInodeList should have comment or be unexported (golint)
    • Line 28: warning: exported function NewOrphanInodeList should have comment or be unexported (golint)
    • Line 35: warning: exported method OrphanInodeList.Put should have comment or be unexported (golint)
    • Line 45: warning: exported method OrphanInodeList.Evict should have comment or be unexported (golint)
    • containerfs/datanode/extent_repair.go
    • Line 31: warning: comment on exported type MembersFileMetas should be of the form "MembersFileMetas ..." (with optional leading article) (golint)
    • Line 41: warning: exported function NewMemberFileMetas should have comment or be unexported (golint)
    • containerfs/datanode/message_handler.go
    • Line 28: warning: exported type MessageHandler should have comment or be unexported (golint)
    • Line 43: warning: exported function NewMsgHandler should have comment or be unexported (golint)
    • Line 56: warning: exported method MessageHandler.RenewList should have comment or be unexported (golint)
    • Line 62: warning: exported method MessageHandler.Stop should have comment or be unexported (golint)
    • Line 74: warning: exported method MessageHandler.ExitSign should have comment or be unexported (golint)
    • Line 85: warning: exported method MessageHandler.AllocateNextConn should have comment or be unexported (golint)
    • Line 130: warning: exported method MessageHandler.GetListElement should have comment or be unexported (golint)
    • Line 138: warning: exported method MessageHandler.PushListElement should have comment or be unexported (golint)
    • Line 144: warning: exported method MessageHandler.ClearReqs should have comment or be unexported (golint)
    • Line 168: warning: exported method MessageHandler.ClearReplys should have comment or be unexported (golint)
    • Line 179: warning: exported method MessageHandler.DelListElement should have comment or be unexported (golint)
    • containerfs/sdk/data/blob/blob.go
    • Line 31: warning: exported const MaxRetryCnt should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type BlobClient should have comment or be unexported (golint)
    • Line 41: warning: exported function NewBlobClient should have comment or be unexported (golint)
    • Line 207: warning: exported method BlobClient.Delete should have comment or be unexported (golint)
    • containerfs/sdk/meta/api.go
    • Line 31: warning: exported const BatchIgetRespBuf should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported method MetaWrapper.Statfs should have comment or be unexported (golint)
    • Line 40: warning: exported method MetaWrapper.Open_ll should have comment or be unexported (golint)
    • Line 40: warning: don't use underscores in Go names; method Open_ll should be OpenLl (golint)
    • Line 54: warning: exported method MetaWrapper.Create_ll should have comment or be unexported (golint)
    • Line 54: warning: don't use underscores in Go names; method Create_ll should be CreateLl (golint)
    • Line 97: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 106: warning: exported method MetaWrapper.Lookup_ll should have comment or be unexported (golint)
    • Line 106: warning: don't use underscores in Go names; method Lookup_ll should be LookupLl (golint)
    • Line 120: warning: exported method MetaWrapper.InodeGet_ll should have comment or be unexported (golint)
    • Line 120: warning: don't use underscores in Go names; method InodeGet_ll should be InodeGetLl (golint)
    • Line 135: warning: exported method MetaWrapper.BatchInodeGet should have comment or be unexported (golint)
    • Line 159: warning: exported method MetaWrapper.Delete_ll should have comment or be unexported (golint)
    • Line 159: warning: don't use underscores in Go names; method Delete_ll should be DeleteLl (golint)
    • Line 185: warning: exported method MetaWrapper.Rename_ll should have comment or be unexported (golint)
    • Line 185: warning: don't use underscores in Go names; method Rename_ll should be RenameLl (golint)
    • Line 240: warning: exported method MetaWrapper.ReadDir_ll should have comment or be unexported (golint)
    • Line 240: warning: don't use underscores in Go names; method ReadDir_ll should be ReadDirLl (golint)
    • Line 253: warning: comment on exported method MetaWrapper.AppendExtentKey should be of the form "AppendExtentKey ..." (golint)
    • Line 268: warning: exported method MetaWrapper.GetExtents should have comment or be unexported (golint)
    • Line 282: warning: exported method MetaWrapper.Truncate should have comment or be unexported (golint)
    • Line 297: warning: exported method MetaWrapper.Link should have comment or be unexported (golint)
    • Line 321: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 329: warning: exported method MetaWrapper.Evict should have comment or be unexported (golint)
    • Line 344: warning: exported method MetaWrapper.Setattr should have comment or be unexported (golint)
    • containerfs/client/fs/dcache.go
    • Line 22: warning: exported type DentryCache should have comment or be unexported (golint)
    • Line 28: warning: exported function NewDentryCache should have comment or be unexported (golint)
    • Line 35: warning: exported method DentryCache.Put should have comment or be unexported (golint)
    • Line 45: warning: exported method DentryCache.Get should have comment or be unexported (golint)
    • Line 60: warning: exported method DentryCache.Delete should have comment or be unexported (golint)
    • containerfs/proto/extent_key.go
    • Line 26: warning: error var InvalidKey should have name of the form ErrFoo (golint)
    • Line 26: warning: exported var InvalidKey should have comment or be unexported (golint)
    • Line 28: warning: exported type ExtentKey should have comment or be unexported (golint)
    • Line 39: warning: exported method ExtentKey.Equal should have comment or be unexported (golint)
    • Line 43: warning: exported method ExtentKey.FullEqual should have comment or be unexported (golint)
    • Line 47: warning: exported method ExtentKey.Marshal should have comment or be unexported (golint)
    • Line 47: warning: receiver name k should be consistent with previous receiver name ek for ExtentKey (golint)
    • Line 51: warning: exported method ExtentKey.MarshalBinary should have comment or be unexported (golint)
    • Line 51: warning: receiver name k should be consistent with previous receiver name ek for ExtentKey (golint)
    • Line 68: warning: exported method ExtentKey.UnmarshalBinary should have comment or be unexported (golint)
    • Line 68: warning: receiver name k should be consistent with previous receiver name ek for ExtentKey (golint)
    • Line 84: warning: exported method ExtentKey.GetExtentKey should have comment or be unexported (golint)
    • Line 84: warning: receiver name k should be consistent with previous receiver name ek for ExtentKey (golint)
    • Line 88: warning: exported method ExtentKey.UnMarshal should have comment or be unexported (golint)
    • Line 88: warning: receiver name k should be consistent with previous receiver name ek for ExtentKey (golint)
    • containerfs/storage/blob_verify.go
    • Line 11: warning: exported type ObjectInfo should have comment or be unexported (golint)
    • Line 17: warning: exported type BlobFileInfo should have comment or be unexported (golint)
    • Line 30: warning: exported method BlobStore.VerfiyObjects should have comment or be unexported (golint)
    • Line 62: warning: exported function WalkIndexFileAndVerify should have comment or be unexported (golint)
    • containerfs/master/filecrc.go
    • Line 24: warning: comment on exported type FileCrc should be of the form "FileCrc ..." (with optional leading article) (golint)
    • Line 31: warning: exported function NewFileCrc should have comment or be unexported (golint)
    • Line 39: warning: exported type FileCrcSorterByCount should have comment or be unexported (golint)
    • containerfs/util/unit.go
    • Line 21: warning: exported const KB should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported const BlockHeaderInoSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported function Min should have comment or be unexported (golint)
    • Line 56: warning: exported function Max should have comment or be unexported (golint)
    • Line 63: warning: exported function IP should have comment or be unexported (golint)
    • containerfs/sdk/meta/view.go
    • Line 29: warning: exported const MaxSendToMaster should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: error var NotLeader should have name of the form ErrFoo (golint)
    • Line 33: warning: exported var NotLeader should have comment or be unexported (golint)
    • Line 36: warning: exported type VolumeView should have comment or be unexported (golint)
    • Line 41: warning: exported type ClusterInfo should have comment or be unexported (golint)
    • Line 45: warning: exported type VolStatInfo should have comment or be unexported (golint)
    • Line 51: warning: comment on exported method MetaWrapper.PullVolumeView should be of the form "PullVolumeView ..." (golint)
    • Line 70: warning: exported method MetaWrapper.UpdateClusterInfo should have comment or be unexported (golint)
    • Line 87: warning: exported method MetaWrapper.UpdateVolStatInfo should have comment or be unexported (golint)
    • Line 107: warning: exported method MetaWrapper.UpdateMetaPartitions should have comment or be unexported (golint)
    • containerfs/raftstore/store_rocksdb.go
    • Line 26: warning: exported type RocksDBStore should have comment or be unexported (golint)
    • Line 31: warning: exported function NewRocksDBStore should have comment or be unexported (golint)
    • Line 40: warning: exported method RocksDBStore.Open should have comment or be unexported (golint)
    • Line 57: warning: exported method RocksDBStore.Del should have comment or be unexported (golint)
    • Line 71: warning: exported method RocksDBStore.Put should have comment or be unexported (golint)
    • Line 82: warning: exported method RocksDBStore.Get should have comment or be unexported (golint)
    • Line 88: warning: exported method RocksDBStore.DeleteKeyAndPutIndex should have comment or be unexported (golint)
    • Line 107: warning: exported method RocksDBStore.BatchPut should have comment or be unexported (golint)
    • Line 120: warning: exported method RocksDBStore.RocksDBSnapshot should have comment or be unexported (golint)
    • Line 124: warning: exported method RocksDBStore.ReleaseSnapshot should have comment or be unexported (golint)
    • Line 128: warning: exported method RocksDBStore.Iterator should have comment or be unexported (golint)
    • containerfs/storage/store_extent.go
    • Line 38: warning: exported const ExtMetaFileName should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported var RegexpExtentFile should have comment or be unexported (golint)
    • Line 53: warning: exported type ExtentFilter should have comment or be unexported (golint)
    • Line 71: warning: exported type ExtentStore should have comment or be unexported (golint)
    • Line 85: warning: exported function NewExtentStore should have comment or be unexported (golint)
    • Line 119: warning: exported method ExtentStore.DeleteStore should have comment or be unexported (golint)
    • Line 125: warning: exported method ExtentStore.SnapShot should have comment or be unexported (golint)
    • Line 146: warning: exported method ExtentStore.NextExtentId should have comment or be unexported (golint)
    • Line 150: warning: exported method ExtentStore.Create should have comment or be unexported (golint)
    • Line 180: warning: exported method ExtentStore.UpdateBaseExtentId should have comment or be unexported (golint)
    • Line 204: warning: exported method ExtentStore.IsExistExtent should have comment or be unexported (golint)
    • Line 323: warning: exported method ExtentStore.MarkDelete should have comment or be unexported (golint)
    • Line 385: warning: exported method ExtentStore.FlushDelete should have comment or be unexported (golint)
    • Line 442: warning: exported method ExtentStore.Sync should have comment or be unexported (golint)
    • Line 450: warning: exported method ExtentStore.Close should have comment or be unexported (golint)
    • Line 473: warning: exported method ExtentStore.GetWatermark should have comment or be unexported (golint)
    • Line 494: warning: exported method ExtentStore.GetAllWatermark should have comment or be unexported (golint)
    • Line 527: warning: exported method ExtentStore.UsedSize should have comment or be unexported (golint)
    • Line 542: warning: exported method ExtentStore.GetDelObjects should have comment or be unexported (golint)
    • containerfs/sdk/data/stream/extent_client.go
    • Line 30: warning: exported type AppendExtentKeyFunc should have comment or be unexported (golint)
    • Line 31: warning: exported type GetExtentsFunc should have comment or be unexported (golint)
    • Line 40: warning: exported type ExtentClient should have comment or be unexported (golint)
    • Line 49: warning: exported function NewExtentClient should have comment or be unexported (golint)
    • Line 118: warning: exported method ExtentClient.OpenForRead should have comment or be unexported (golint)
    • Line 122: warning: exported method ExtentClient.OpenForWrite should have comment or be unexported (golint)
    • Line 151: warning: exported method ExtentClient.GetWriteSize should have comment or be unexported (golint)
    • Line 161: warning: exported method ExtentClient.SetWriteSize should have comment or be unexported (golint)
    • Line 176: warning: exported method ExtentClient.Flush should have comment or be unexported (golint)
    • Line 190: warning: exported method ExtentClient.CloseForWrite should have comment or be unexported (golint)
    • containerfs/metanode/partition.go
    • Line 33: warning: exported var ErrIllegalHeartbeatAddress should have comment or be unexported (golint)
    • Line 55: warning: comment on exported type MetaPartitionConfig should be of the form "MetaPartitionConfig ..." (with optional leading article) (golint)
    • Line 79: warning: exported method MetaPartitionConfig.Dump should have comment or be unexported (golint)
    • Line 83: warning: exported method MetaPartitionConfig.Load should have comment or be unexported (golint)
    • Line 114: warning: exported type OpInode should have comment or be unexported (golint)
    • Line 125: warning: exported type OpDentry should have comment or be unexported (golint)
    • Line 133: warning: exported type OpExtent should have comment or be unexported (golint)
    • Line 139: warning: exported type OpMeta should have comment or be unexported (golint)
    • Line 146: warning: exported type OpPartition should have comment or be unexported (golint)
    • Line 157: warning: exported type MetaPartition should have comment or be unexported (golint)
    • containerfs/datanode/stat.go
    • Line 23: warning: exported type DiskMetrics should have comment or be unexported (golint)
    • Line 35: warning: comment on exported type Stats should be of the form "Stats ..." (with optional leading article) (golint)
    • Line 58: warning: exported function NewStats should have comment or be unexported (golint)
    • Line 64: warning: exported method Stats.AddConnection should have comment or be unexported (golint)
    • Line 68: warning: exported method Stats.RemoveConnection should have comment or be unexported (golint)
    • Line 72: warning: exported method Stats.GetConnectionNum should have comment or be unexported (golint)
    • Line 76: warning: exported method Stats.AddInDataSize should have comment or be unexported (golint)
    • Line 80: warning: exported method Stats.AddOutDataSize should have comment or be unexported (golint)
    • containerfs/proto/stream_key.go
    • Line 24: warning: exported type StreamKey should have comment or be unexported (golint)
    • Line 39: warning: exported function NewStreamKey should have comment or be unexported (golint)
    • Line 45: warning: exported method StreamKey.Marshal should have comment or be unexported (golint)
    • Line 49: warning: exported method StreamKey.ToString should have comment or be unexported (golint)
    • Line 54: warning: exported method StreamKey.UnMarshal should have comment or be unexported (golint)
    • Line 58: warning: exported method StreamKey.Put should have comment or be unexported (golint)
    • Line 90: warning: exported method StreamKey.Size should have comment or be unexported (golint)
    • Line 99: warning: exported method StreamKey.GetExtentLen should have comment or be unexported (golint)
    • Line 117: warning: exported method StreamKey.MarshalBinary should have comment or be unexported (golint)
    • Line 133: warning: exported method StreamKey.UnmarshalBinary should have comment or be unexported (golint)
    • containerfs/util/mem.go
    • Line 24: warning: exported const MEMINFO should have comment or be unexported (golint)
    • Line 26: warning: exported function GetMemInfo should have comment or be unexported (golint)
    • containerfs/client/fs/file.go
    • Line 31: warning: exported type File should have comment or be unexported (golint)
    • Line 69: warning: exported function NewFile should have comment or be unexported (golint)
    • Line 73: warning: exported method File.Attr should have comment or be unexported (golint)
    • Line 90: warning: exported method File.Forget should have comment or be unexported (golint)
    • Line 102: warning: exported method File.Open should have comment or be unexported (golint)
    • Line 127: warning: exported method File.Release should have comment or be unexported (golint)
    • Line 206: warning: exported method File.Flush should have comment or be unexported (golint)
    • Line 210: warning: exported method File.Fsync should have comment or be unexported (golint)
    • Line 223: warning: exported method File.Setattr should have comment or be unexported (golint)
    • Line 263: warning: exported method File.Readlink should have comment or be unexported (golint)
    • Line 274: warning: exported method File.Getxattr should have comment or be unexported (golint)
    • Line 278: warning: exported method File.Listxattr should have comment or be unexported (golint)
    • Line 282: warning: exported method File.Setxattr should have comment or be unexported (golint)
    • Line 286: warning: exported method File.Removexattr should have comment or be unexported (golint)
    • containerfs/util/gorocksdb/options_transactiondb.go
    • Line 17: warning: comment on exported function NewNativeTransactionDBOptions should be of the form "NewNativeTransactionDBOptions ..." (golint)
    • Line 27: warning: don't use underscores in Go names; method parameter max_num_locks should be maxNumLocks (golint)
    • Line 36: warning: don't use underscores in Go names; method parameter num_stripes should be numStripes (golint)
    • Line 48: warning: don't use underscores in Go names; method parameter txn_lock_timeout should be txnLockTimeout (golint)
    • Line 64: warning: don't use underscores in Go names; method parameter default_lock_timeout should be defaultLockTimeout (golint)
    • containerfs/metanode/const.go
    • Line 24: warning: exported const StateStandby should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: comment on exported type CreateMetaRangeReq should be of the form "CreateMetaRangeReq ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported type CreateMetaRangeResp should be of the form "CreateMetaRangeResp ..." (with optional leading article) (golint)
    • Line 37: warning: comment on exported type CreateInoReq should be of the form "CreateInoReq ..." (with optional leading article) (golint)
    • Line 39: warning: comment on exported type CreateInoResp should be of the form "CreateInoResp ..." (with optional leading article) (golint)
    • Line 41: warning: comment on exported type LinkInodeReq should be of the form "LinkInodeReq ..." (with optional leading article) (golint)
    • Line 43: warning: comment on exported type LinkInodeResp should be of the form "LinkInodeResp ..." (with optional leading article) (golint)
    • Line 45: warning: comment on exported type DeleteInoReq should be of the form "DeleteInoReq ..." (with optional leading article) (golint)
    • Line 47: warning: comment on exported type DeleteInoResp should be of the form "DeleteInoResp ..." (with optional leading article) (golint)
    • Line 49: warning: comment on exported type CreateDentryReq should be of the form "CreateDentryReq ..." (with optional leading article) (golint)
    • Line 51: warning: comment on exported type DeleteDentryReq should be of the form "DeleteDentryReq ..." (with optional leading article) (golint)
    • Line 53: warning: comment on exported type DeleteDentryResp should be of the form "DeleteDentryResp ..." (with optional leading article) (golint)
    • Line 55: warning: comment on exported type UpdateDentryReq should be of the form "UpdateDentryReq ..." (with optional leading article) (golint)
    • Line 57: warning: comment on exported type UpdateDentryResp should be of the form "UpdateDentryResp ..." (with optional leading article) (golint)
    • Line 59: warning: comment on exported type ReadDirReq should be of the form "ReadDirReq ..." (with optional leading article) (golint)
    • Line 61: warning: comment on exported type ReadDirResp should be of the form "ReadDirResp ..." (with optional leading article) (golint)
    • Line 63: warning: comment on exported type LookupReq should be of the form "LookupReq ..." (with optional leading article) (golint)
    • Line 65: warning: comment on exported type LookupResp should be of the form "LookupResp ..." (with optional leading article) (golint)
    • Line 67: warning: comment on exported type OpenReq should be of the form "OpenReq ..." (with optional leading article) (golint)
    • Line 69: warning: comment on exported type InodeGetReq should be of the form "InodeGetReq ..." (with optional leading article) (golint)
    • Line 71: warning: comment on exported type InodeGetReqBatch should be of the form "InodeGetReqBatch ..." (with optional leading article) (golint)
    • Line 73: warning: comment on exported type UpdatePartitionReq should be of the form "UpdatePartitionReq ..." (with optional leading article) (golint)
    • Line 75: warning: comment on exported type UpdatePartitionResp should be of the form "UpdatePartitionResp ..." (with optional leading article) (golint)
    • Line 77: warning: comment on exported type ExtentsTruncateReq should be of the form "ExtentsTruncateReq ..." (with optional leading article) (golint)
    • Line 79: warning: comment on exported type ExtentsTruncateResp should be of the form "ExtentsTruncateResp ..." (with optional leading article) (golint)
    • Line 82: warning: comment on exported type EvictInodeReq should be of the form "EvictInodeReq ..." (with optional leading article) (golint)
    • Line 84: warning: comment on exported type SetattrRequest should be of the form "SetattrRequest ..." (with optional leading article) (golint)
    • Line 113: warning: exported var UMPKey should have comment or be unexported (golint)
    • Line 117: warning: exported var ErrNonLeader should have comment or be unexported (golint)
    • containerfs/storage/extent.go
    • Line 35: warning: exported const ExtentOpenOpt should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: error var BrokenExtentFileErr should have name of the form ErrFoo (golint)
    • Line 40: warning: exported var BrokenExtentFileErr should have comment or be unexported (golint)
    • Line 43: warning: exported type FileInfo should have comment or be unexported (golint)
    • Line 54: warning: exported method FileInfo.FromExtent should have comment or be unexported (golint)
    • containerfs/util/gorocksdb/ratelimiter.go
    • Line 7: warning: comment on exported type RateLimiter should be of the form "RateLimiter ..." (with optional leading article) (golint)
    • Line 13: warning: comment on exported function NewRateLimiter should be of the form "NewRateLimiter ..." (golint)
    • Line 14: warning: don't use underscores in Go names; func parameter rate_bytes_per_sec should be rateBytesPerSec (golint)
    • Line 14: warning: don't use underscores in Go names; func parameter refill_period_us should be refillPeriodUs (golint)
    • Line 28: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • containerfs/sdk/data/wrapper/data_partition.go
    • Line 9: warning: exported type DataPartition should have comment or be unexported (golint)
    • Line 18: warning: exported type DataPartitionMetrics should have comment or be unexported (golint)
    • Line 27: warning: exported type DataPartitionSlice should have comment or be unexported (golint)
    • Line 39: warning: exported function NewDataPartitionMetrics should have comment or be unexported (golint)
    • Line 51: warning: exported method DataPartition.GetAllAddrs should have comment or be unexported (golint)
    • Line 64: warning: exported function NewGetDataPartitionMetricsPacket should have comment or be unexported (golint)
    • containerfs/sdk/data/wrapper/wrapper.go
    • Line 32: warning: exported const DataPartitionViewUrl should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported var MasterHelper should have comment or be unexported (golint)
    • Line 43: warning: exported type DataPartitionView should have comment or be unexported (golint)
    • Line 47: warning: exported type ClusterInfo should have comment or be unexported (golint)
    • Line 51: warning: exported type Wrapper should have comment or be unexported (golint)
    • Line 61: warning: exported function NewDataPartitionWrapper should have comment or be unexported (golint)
    • Line 81: warning: exported method Wrapper.GetClusterName should have comment or be unexported (golint)
    • Line 208: warning: exported method Wrapper.GetWriteDataPartition should have comment or be unexported (golint)
    • Line 237: warning: exported method Wrapper.GetDataPartition should have comment or be unexported (golint)
    • Line 247: warning: exported method Wrapper.UmpWarningKey should have comment or be unexported (golint)
    • containerfs/fuse/fs/serve.go
    • Line 45: warning: exported type FSStatfser should have comment or be unexported (golint)
    • Line 51: warning: exported type FSDestroyer should have comment or be unexported (golint)
    • Line 60: warning: exported type FSInodeGenerator should have comment or be unexported (golint)
    • Line 106: warning: exported type NodeGetattrer should have comment or be unexported (golint)
    • Line 115: warning: exported type NodeSetattrer should have comment or be unexported (golint)
    • Line 127: warning: exported type NodeSymlinker should have comment or be unexported (golint)
    • Line 134: warning: comment on exported type NodeReadlinker should be of the form "NodeReadlinker ..." (with optional leading article) (golint)
    • Line 140: warning: exported type NodeLinker should have comment or be unexported (golint)
    • Line 146: warning: exported type NodeRemover should have comment or be unexported (golint)
    • Line 153: warning: exported type NodeAccesser should have comment or be unexported (golint)
    • Line 165: warning: exported type NodeStringLookuper should have comment or be unexported (golint)
    • Line 175: warning: exported type NodeRequestLookuper should have comment or be unexported (golint)
    • Line 181: warning: exported type NodeMkdirer should have comment or be unexported (golint)
    • Line 185: warning: exported type NodeOpener should have comment or be unexported (golint)
    • Line 199: warning: exported type NodeCreater should have comment or be unexported (golint)
    • Line 205: warning: exported type NodeForgetter should have comment or be unexported (golint)
    • Line 214: warning: exported type NodeRenamer should have comment or be unexported (golint)
    • Line 218: warning: exported type NodeMknoder should have comment or be unexported (golint)
    • Line 222: warning: comment on exported type NodeFsyncer should be of the form "NodeFsyncer ..." (with optional leading article) (golint)
    • Line 227: warning: exported type NodeGetxattrer should have comment or be unexported (golint)
    • Line 235: warning: exported type NodeListxattrer should have comment or be unexported (golint)
    • Line 240: warning: exported type NodeSetxattrer should have comment or be unexported (golint)
    • Line 246: warning: exported type NodeRemovexattrer should have comment or be unexported (golint)
    • Line 280: warning: exported type HandleFlusher should have comment or be unexported (golint)
    • Line 287: warning: exported type HandleReadAller should have comment or be unexported (golint)
    • Line 291: warning: exported type HandleReadDirAller should have comment or be unexported (golint)
    • Line 295: warning: exported type HandleReader should have comment or be unexported (golint)
    • Line 308: warning: exported type HandleWriter should have comment or be unexported (golint)
    • Line 323: warning: exported type HandleReleaser should have comment or be unexported (golint)
    • Line 327: warning: exported type Config should have comment or be unexported (golint)
    • Line 365: warning: exported type Server should have comment or be unexported (golint)
    • Line 484: warning: receiver name c should be consistent with previous receiver name s for Server (golint)
    • Line 509: warning: receiver name c should be consistent with previous receiver name s for Server (golint)
    • Line 534: warning: receiver name c should be consistent with previous receiver name s for Server (golint)
    • Line 566: warning: receiver name c should be consistent with previous receiver name s for Server (golint)
    • Line 583: warning: receiver name c should be consistent with previous receiver name s for Server (golint)
    • Line 771: warning: receiver name c should be consistent with previous receiver name s for Server (golint)
    • Line 913: warning: receiver name c should be consistent with previous receiver name s for Server (golint)
    • Line 1411: warning: receiver name c should be consistent with previous receiver name s for Server (golint)
    • containerfs/master/handle_client.go
    • Line 26: warning: exported type VolStatInfo should have comment or be unexported (golint)
    • Line 32: warning: exported type DataPartitionResponse should have comment or be unexported (golint)
    • Line 40: warning: exported type DataPartitionsView should have comment or be unexported (golint)
    • Line 44: warning: exported function NewDataPartitionsView should have comment or be unexported (golint)
    • Line 50: warning: exported type MetaPartitionView should have comment or be unexported (golint)
    • Line 59: warning: exported type VolView should have comment or be unexported (golint)
    • Line 66: warning: exported function NewVolView should have comment or be unexported (golint)
    • Line 75: warning: exported function NewMetaPartitionView should have comment or be unexported (golint)
    • containerfs/util/btree/btree.go
    • Line 70: warning: exported const DefaultFreeListSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 671: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 693: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • containerfs/master/handle_admin.go
    • Line 31: warning: exported type ClusterView should have comment or be unexported (golint)
    • Line 44: warning: exported type DataNodeView should have comment or be unexported (golint)
    • Line 49: warning: exported type MetaNodeView should have comment or be unexported (golint)
    • containerfs/fuse/fuse.go
    • Line 193: warning: exported type OldVersionError should have comment or be unexported (golint)
    • Line 203: warning: exported var ErrClosedWithoutInit should have comment or be unexported (golint)
    • Line 283: warning: comment on exported const RootID should be of the form "RootID ..." (golint)
    • Line 303: warning: exported method Header.Hdr should have comment or be unexported (golint)
    • Line 334: warning: exported const ENOENT should have comment (or a comment on this block) or be unexported (golint)
    • Line 367: warning: exported method Errno.Errno should have comment or be unexported (golint)
    • Line 389: warning: exported method Errno.MarshalText should have comment or be unexported (golint)
    • Line 394: warning: exported method Header.RespondError should have comment or be unexported (golint)
    • Line 541: warning: exported method Conn.Protocol should have comment or be unexported (golint)
    • Line 1134: warning: exported var ErrNotCached should have comment or be unexported (golint)
    • Line 1787: warning: exported method ReadResponse.MarshalJSON should have comment or be unexported (golint)
    • Line 1871: warning: comment on exported type DirentType should be of the form "DirentType ..." (with optional leading article) (golint)
    • Line 1884: warning: don't use underscores in Go names; const DT_Unknown should be DTUnknown (golint)
    • Line 1884: warning: exported const DT_Unknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 1885: warning: don't use underscores in Go names; const DT_Socket should be DTSocket (golint)
    • Line 1886: warning: don't use underscores in Go names; const DT_Link should be DTLink (golint)
    • Line 1887: warning: don't use underscores in Go names; const DT_File should be DTFile (golint)
    • Line 1888: warning: don't use underscores in Go names; const DT_Block should be DTBlock (golint)
    • Line 1889: warning: don't use underscores in Go names; const DT_Dir should be DTDir (golint)
    • Line 1890: warning: don't use underscores in Go names; const DT_Char should be DTChar (golint)
    • Line 1959: warning: exported method WriteRequest.MarshalJSON should have comment or be unexported (golint)
    • Line 2168: warning: exported method ReadlinkRequest.Respond should have comment or be unexported (golint)
    • Line 2187: warning: exported method LinkRequest.Respond should have comment or be unexported (golint)
    • Line 2214: warning: exported method RenameRequest.Respond should have comment or be unexported (golint)
    • Line 2219: warning: exported type MknodRequest should have comment or be unexported (golint)
    • Line 2234: warning: exported method MknodRequest.Respond should have comment or be unexported (golint)
    • Line 2248: warning: exported type FsyncRequest should have comment or be unexported (golint)
    • Line 2262: warning: exported method FsyncRequest.Respond should have comment or be unexported (golint)
    • Line 2276: warning: exported method InterruptRequest.Respond should have comment or be unexported (golint)
    • Line 2307: warning: exported method ExchangeDataRequest.Respond should have comment or be unexported (golint)
    • containerfs/raftstore/raftkvtest/raftkvstore.go
    • Line 22: warning: should not use dot imports (golint)
    • Line 37: warning: exported const RaftApplyId should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type RaftKvData should have comment or be unexported (golint)
    • Line 46: warning: exported type RaftKvFsm should have comment or be unexported (golint)
    • Line 54: warning: exported type RaftLeaderChangeHandler should have comment or be unexported (golint)
    • Line 55: warning: exported type RaftPeerChangeHandler should have comment or be unexported (golint)
    • Line 56: warning: exported type RaftKvApplyHandler should have comment or be unexported (golint)
    • Line 58: warning: comment on exported type MasterConfig should be of the form "MasterConfig ..." (with optional leading article) (golint)
    • Line 64: warning: exported type Master should have comment or be unexported (golint)
    • Line 367: warning: exported method Master.CreateKvRaft should have comment or be unexported (golint)
    • Line 410: warning: comment on exported method RaftKvFsm.RegisterLeaderChangeHandler should be of the form "RegisterLeaderChangeHandler ..." (golint)
    • Line 415: warning: exported method RaftKvFsm.RegisterPeerChangeHandler should have comment or be unexported (golint)
    • Line 419: warning: exported method RaftKvFsm.RegisterApplyHandler should have comment or be unexported (golint)
    • Line 445: warning: comment on exported method RaftKvFsm.Apply should be of the form "Apply ..." (golint)
    • Line 458: warning: exported method RaftKvFsm.ApplyMemberChange should have comment or be unexported (golint)
    • Line 465: warning: exported method RaftKvFsm.Snapshot should have comment or be unexported (golint)
    • Line 478: warning: exported method RaftKvFsm.ApplySnapshot should have comment or be unexported (golint)
    • Line 505: warning: exported method RaftKvFsm.HandleFatalEvent should have comment or be unexported (golint)
    • Line 509: warning: exported method RaftKvFsm.HandleLeaderChange should have comment or be unexported (golint)
    • Line 515: warning: comment on exported type RaftKvSnapshot should be of the form "RaftKvSnapshot ..." (with optional leading article) (golint)
    • Line 523: warning: exported method RaftKvSnapshot.ApplyIndex should have comment or be unexported (golint)
    • Line 527: warning: exported method RaftKvSnapshot.Close should have comment or be unexported (golint)
    • Line 531: warning: exported method RaftKvSnapshot.Next should have comment or be unexported (golint)
    • Line 540: warning: comment on exported method RaftKvFsm.Put should be of the form "Put ..." (golint)
    • Line 545: warning: exported method RaftKvFsm.BatchPut should have comment or be unexported (golint)
    • Line 549: warning: exported method RaftKvFsm.Get should have comment or be unexported (golint)
    • Line 553: warning: exported method RaftKvFsm.Del should have comment or be unexported (golint)
    • containerfs/util/gorocksdb/options.go
    • Line 249: warning: don't use underscores in Go names; method parameter total_threads should be totalThreads (golint)
    • Line 260: warning: don't use underscores in Go names; method parameter block_cache_size_mb should be blockCacheSizeMb (golint)
    • Line 264: warning: comment on exported method Options.SetAllowConcurrentMemtableWrites should be of the form "SetAllowConcurrentMemtableWrites ..." (golint)
    • Line 288: warning: don't use underscores in Go names; method parameter memtable_memory_budget should be memtableMemoryBudget (golint)
    • Line 294: warning: don't use underscores in Go names; method parameter memtable_memory_budget should be memtableMemoryBudget (golint)
    • containerfs/util/gorocksdb/options_block_based_table.go
    • Line 11: warning: comment on exported const KBinarySearchIndexType should be of the form "KBinarySearchIndexType ..." (golint)
    • Line 14: warning: comment on exported const KHashSearchIndexType should be of the form "KHashSearchIndexType ..." (golint)
    • Line 17: warning: comment on exported const KTwoLevelIndexSearchIndexType should be of the form "KTwoLevelIndexSearchIndexType ..." (golint)
    • containerfs/master/http_server.go
    • Line 26: warning: comment on exported const AdminGetCluster should be of the form "AdminGetCluster ..." (golint)
    • Line 28: warning: exported const AdminGetDataPartition should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: comment on exported const ClientDataPartitions should be of the form "ClientDataPartitions ..." (golint)
    • Line 46: warning: comment on exported const RaftNodeAdd should be of the form "RaftNodeAdd ..." (golint)
    • Line 50: warning: comment on exported const AddDataNode should be of the form "AddDataNode ..." (golint)
    • Line 60: warning: comment on exported const MetaNodeResponse should be of the form "MetaNodeResponse ..." (golint)
    • Line 183: warning: exported function HandleError should have comment or be unexported (golint)
    • containerfs/master/metadata_snapshot.go
    • Line 23: warning: exported type MetadataSnapshot should have comment or be unexported (golint)
    • Line 30: warning: exported method MetadataSnapshot.ApplyIndex should have comment or be unexported (golint)
    • Line 34: warning: exported method MetadataSnapshot.Close should have comment or be unexported (golint)
    • Line 38: warning: exported method MetadataSnapshot.Next should have comment or be unexported (golint)
    • containerfs/master/operate_util.go
    • Line 51: warning: exported function UnmarshalTaskResponse should have comment or be unexported (golint)
    • Line 109: warning: exported function Warn should have comment or be unexported (golint)
    • Line 114: warning: exported function WarnBySpecialUmpKey should have comment or be unexported (golint)
    • containerfs/fuse/fs/fstestutil/record/record.go
    • Line 28: warning: exported method Writes.RecordedWriteData should have comment or be unexported (golint)
    • Line 37: warning: exported method Counter.Inc should have comment or be unexported (golint)
    • Line 41: warning: exported method Counter.Count should have comment or be unexported (golint)
    • Line 50: warning: exported method MarkRecorder.Mark should have comment or be unexported (golint)
    • Line 54: warning: exported method MarkRecorder.Recorded should have comment or be unexported (golint)
    • Line 65: warning: exported method Flushes.Flush should have comment or be unexported (golint)
    • Line 70: warning: exported method Flushes.RecordedFlush should have comment or be unexported (golint)
    • Line 74: warning: exported type Recorder should have comment or be unexported (golint)
    • Line 87: warning: exported method Recorder.Recorded should have comment or be unexported (golint)
    • Line 94: warning: exported type RequestRecorder should have comment or be unexported (golint)
    • Line 98: warning: comment on exported method RequestRecorder.RecordRequest should be of the form "RecordRequest ..." (golint)
    • Line 108: warning: exported method RequestRecorder.Recorded should have comment or be unexported (golint)
    • Line 123: warning: exported method Setattrs.Setattr should have comment or be unexported (golint)
    • Line 129: warning: exported method Setattrs.RecordedSetattr should have comment or be unexported (golint)
    • Line 144: warning: exported method Fsyncs.Fsync should have comment or be unexported (golint)
    • Line 150: warning: exported method Fsyncs.RecordedFsync should have comment or be unexported (golint)
    • containerfs/util/buf/buffer_pool.go
    • Line 24: warning: exported var Buffers should have comment or be unexported (golint)
    • Line 27: warning: exported type BufferPool should have comment or be unexported (golint)
    • Line 31: warning: exported function NewBufferPool should have comment or be unexported (golint)
    • Line 46: warning: exported method BufferPool.Get should have comment or be unexported (golint)
    • Line 57: warning: exported method BufferPool.Put should have comment or be unexported (golint)
    • containerfs/sdk/data/stream/stream_writer.go
    • Line 32: warning: exported const MaxSelectDataPartionForWrite should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type WriteRequest should have comment or be unexported (golint)
    • Line 47: warning: exported type FlushRequest should have comment or be unexported (golint)
    • Line 52: warning: exported type CloseRequest should have comment or be unexported (golint)
    • Line 57: warning: exported type StreamWriter should have comment or be unexported (golint)
    • Line 73: warning: exported function NewStreamWriter should have comment or be unexported (golint)
    • Line 212: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 358: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • containerfs/master/admin_task_sender.go
    • Line 31: warning: exported const MinTaskLen should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported type AdminTaskSender should have comment or be unexported (golint)
    • Line 54: warning: exported function NewAdminTaskSender should have comment or be unexported (golint)
    • Line 180: warning: exported method AdminTaskSender.DelTask should have comment or be unexported (golint)
    • Line 193: warning: exported method AdminTaskSender.PutTask should have comment or be unexported (golint)
    • Line 202: warning: exported method AdminTaskSender.IsExist should have comment or be unexported (golint)
    • containerfs/master/data_node.go
    • Line 28: warning: exported const ReservedVolCount should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type DataNode should have comment or be unexported (golint)
    • Line 51: warning: exported function NewDataNode should have comment or be unexported (golint)
    • Line 79: warning: exported method DataNode.UpdateNodeMetric should have comment or be unexported (golint)
    • Line 95: warning: exported method DataNode.IsWriteAble should have comment or be unexported (golint)
    • Line 107: warning: exported method DataNode.IsAvailCarryNode should have comment or be unexported (golint)
    • Line 114: warning: exported method DataNode.SetCarry should have comment or be unexported (golint)
    • Line 120: warning: exported method DataNode.SelectNodeForWrite should have comment or be unexported (golint)
    • containerfs/fuse/syscallx/syscallx_std.go
    • Line 12: warning: exported function Getxattr should have comment or be unexported (golint)
    • Line 16: warning: exported function Listxattr should have comment or be unexported (golint)
    • Line 20: warning: exported function Setxattr should have comment or be unexported (golint)
    • Line 24: warning: exported function Removexattr should have comment or be unexported (golint)
    • containerfs/proto/admin_proto.go
    • Line 22: warning: exported type RegisterMetaNodeResp should have comment or be unexported (golint)
    • Line 26: warning: exported type ClusterInfo should have comment or be unexported (golint)
    • Line 31: warning: exported type CreateDataPartitionRequest should have comment or be unexported (golint)
    • Line 38: warning: exported type CreateDataPartitionResponse should have comment or be unexported (golint)
    • Line 44: warning: exported type DeleteDataPartitionRequest should have comment or be unexported (golint)
    • Line 50: warning: exported type DeleteDataPartitionResponse should have comment or be unexported (golint)
    • Line 56: warning: exported type LoadDataPartitionRequest should have comment or be unexported (golint)
    • Line 61: warning: exported type LoadDataPartitionResponse should have comment or be unexported (golint)
    • Line 71: warning: exported type File should have comment or be unexported (golint)
    • Line 82: warning: exported type LoadMetaPartitionMetricRequest should have comment or be unexported (golint)
    • Line 88: warning: exported type LoadMetaPartitionMetricResponse should have comment or be unexported (golint)
    • Line 96: warning: exported type HeartBeatRequest should have comment or be unexported (golint)
    • Line 101: warning: exported type PartitionReport should have comment or be unexported (golint)
    • Line 108: warning: exported type DataNodeHeartBeatResponse should have comment or be unexported (golint)
    • Line 122: warning: exported type MetaPartitionReport should have comment or be unexported (golint)
    • Line 131: warning: exported type MetaNodeHeartbeatResponse should have comment or be unexported (golint)
    • Line 140: warning: exported type DeleteFileRequest should have comment or be unexported (golint)
    • Line 145: warning: exported type DeleteFileResponse should have comment or be unexported (golint)
    • Line 152: warning: exported type DeleteMetaPartitionRequest should have comment or be unexported (golint)
    • Line 156: warning: exported type DeleteMetaPartitionResponse should have comment or be unexported (golint)
    • Line 162: warning: exported type UpdateMetaPartitionRequest should have comment or be unexported (golint)
    • Line 169: warning: exported type UpdateMetaPartitionResponse should have comment or be unexported (golint)
    • Line 177: warning: exported type MetaPartitionOfflineRequest should have comment or be unexported (golint)
    • Line 184: warning: exported type MetaPartitionOfflineResponse should have comment or be unexported (golint)
    • containerfs/datanode/const.go
    • Line 18: warning: exported const Standby should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported const RequestChanSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported const ActionSendToNext should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported const InFlow should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported const MaxRepairBlobFileCount should have comment (or a comment on this block) or be unexported (golint)
    • Line 62: warning: exported const NetType should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported const ObjectIDSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 69: warning: exported const CanCompact should have comment (or a comment on this block) or be unexported (golint)
    • Line 82: warning: exported const ConnIsNullErr should have comment (or a comment on this block) or be unexported (golint)
    • Line 86: warning: exported const LogHeartbeat should have comment (or a comment on this block) or be unexported (golint)
    • containerfs/client/fuse.go
    • Line 46: warning: exported const MaxReadAhead should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported const LoggerDir should have comment (or a comment on this block) or be unexported (golint)
    • Line 74: warning: exported function Mount should have comment or be unexported (golint)
    • Line 136: warning: exported function ParseLogLevel should have comment or be unexported (golint)
    • containerfs/master/cluster.go
    • Line 28: warning: exported type Cluster should have comment or be unexported (golint)
    • Line 407: warning: exported method Cluster.ChooseTargetDataHosts should have comment or be unexported (golint)
    • Line 638: warning: exported method Cluster.CreateMetaPartitionForManual should have comment or be unexported (golint)
    • Line 666: warning: exported method Cluster.CreateMetaPartition should have comment or be unexported (golint)
    • Line 706: warning: exported method Cluster.ChooseTargetMetaHosts should have comment or be unexported (golint)
    • Line 734: warning: exported method Cluster.DataNodeCount should have comment or be unexported (golint)
    • containerfs/master/data_partition_map.go
    • Line 27: warning: exported type DataPartitionMap should have comment or be unexported (golint)
    • Line 39: warning: exported function NewDataPartitionMap should have comment or be unexported (golint)
    • Line 114: warning: exported method DataPartitionMap.GetDataPartitionsView should have comment or be unexported (golint)
    • containerfs/datanode/server.go
    • Line 23: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 44: warning: exported var ErrStoreTypeMismatch should have comment or be unexported (golint)
    • Line 56: warning: exported const GetIpFromMaster should have comment (or a comment on this block) or be unexported (golint)
    • Line 61: warning: exported const UmpModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 65: warning: exported const ConfigKeyPort should have comment (or a comment on this block) or be unexported (golint)
    • Line 72: warning: exported type DataNode should have comment or be unexported (golint)
    • Line 85: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 89: warning: exported method DataNode.Start should have comment or be unexported (golint)
    • Line 108: warning: exported method DataNode.Shutdown should have comment or be unexported (golint)
    • Line 116: warning: exported method DataNode.Sync should have comment or be unexported (golint)
    • Line 341: warning: exported method DataNode.AddCompactTask should have comment or be unexported (golint)
    • containerfs/util/config/config.go
    • Line 23: warning: exported type Config should have comment or be unexported (golint)
    • Line 34: warning: comment on exported function LoadConfigFile should be of the form "LoadConfigFile ..." (golint)
    • Line 44: warning: comment on exported function LoadConfigString should be of the form "LoadConfigString ..." (golint)
    • Line 63: warning: comment on exported method Config.GetString should be of the form "GetString ..." (golint)
    • Line 75: warning: comment on exported method Config.GetFloat should be of the form "GetFloat ..." (golint)
    • Line 87: warning: comment on exported method Config.GetBool should be of the form "GetBool ..." (golint)
    • Line 99: warning: exported method Config.GetInt should have comment or be unexported (golint)
    • Line 110: warning: comment on exported method Config.GetArray should be of the form "GetArray ..." (golint)
    • containerfs/proto/meta_proto.go
    • Line 17: warning: exported type CreateNameSpaceRequest should have comment or be unexported (golint)
    • Line 21: warning: exported type CreateNameSpaceResponse should have comment or be unexported (golint)
    • Line 26: warning: exported type Peer should have comment or be unexported (golint)
    • Line 30: warning: exported type CreateMetaPartitionRequest should have comment or be unexported (golint)
    • Line 39: warning: exported type CreateMetaPartitionResponse should have comment or be unexported (golint)
    • containerfs/client/fs/inode.go
    • Line 29: warning: exported const LogTimeFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type Inode should have comment or be unexported (golint)
    • Line 48: warning: exported function NewInode should have comment or be unexported (golint)
    • Line 54: warning: exported method Super.InodeGet should have comment or be unexported (golint)
    • Line 66: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • containerfs/proto/admin_task.go
    • Line 23: warning: exported const TaskFail should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: comment on exported type AdminTask should be of the form "AdminTask ..." (with optional leading article) (golint)
    • Line 45: warning: exported method AdminTask.ToString should have comment or be unexported (golint)
    • Line 52: warning: comment on exported method AdminTask.CheckTaskNeedSend should be of the form "CheckTaskNeedSend ..." (golint)
    • Line 61: warning: comment on exported method AdminTask.CheckTaskTimeOut should be of the form "CheckTaskTimeOut ..." (golint)
    • Line 75: warning: exported method AdminTask.SetStatus should have comment or be unexported (golint)
    • Line 79: warning: exported method AdminTask.CheckTaskIsSuccess should have comment or be unexported (golint)
    • Line 87: warning: exported method AdminTask.CheckTaskIsFail should have comment or be unexported (golint)
    • Line 95: warning: exported method AdminTask.IsUrgentTask should have comment or be unexported (golint)
    • Line 111: warning: exported method AdminTask.IsHeartbeatTask should have comment or be unexported (golint)
    • Line 115: warning: exported function NewAdminTask should have comment or be unexported (golint)
    • containerfs/master/filemeta.go
    • Line 21: warning: comment on exported type FileMetaOnNode should be of the form "FileMetaOnNode ..." (with optional leading article) (golint)
    • Line 31: warning: exported type FileInCore should have comment or be unexported (golint)
    • Line 38: warning: exported function NewFileMetaOnNode should have comment or be unexported (golint)
    • Line 57: warning: exported function NewFileInCore should have comment or be unexported (golint)
    • containerfs/master/cluster_task.go
    • Line 520: warning: comment on exported method Cluster.UpdateDataNode should be of the form "UpdateDataNode ..." (golint)
    • Line 532: warning: exported method Cluster.UpdateMetaNode should have comment or be unexported (golint)
    • containerfs/master/vol.go
    • Line 24: warning: exported type Vol should have comment or be unexported (golint)
    • Line 37: warning: exported function NewVol should have comment or be unexported (golint)
    • Line 50: warning: exported method Vol.AddMetaPartition should have comment or be unexported (golint)
    • Line 58: warning: exported method Vol.AddMetaPartitionByRaft should have comment or be unexported (golint)
    • Line 120: warning: exported method Vol.LoadDataPartition should have comment or be unexported (golint)
    • Line 131: warning: exported method Vol.ReleaseDataPartitionsAfterLoad should have comment or be unexported (golint)
    • containerfs/master/config.go
    • Line 26: warning: exported const ColonSplit should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported const DefaultEveryReleaseDataPartitionCount should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: comment on exported const DefaultMetaPartitionWarnInterval should be of the form "DefaultMetaPartitionWarnInterval ..." (golint)
    • Line 62: warning: exported type ClusterConfig should have comment or be unexported (golint)
    • Line 81: warning: exported function NewClusterConfig should have comment or be unexported (golint)
    • containerfs/master/errors.go
    • Line 24: warning: error var NoAvailDataPartition should have name of the form ErrFoo (golint)
    • Line 24: warning: exported var NoAvailDataPartition should have comment or be unexported (golint)
    • Line 25: warning: error var DataPartitionNotFound should have name of the form ErrFoo (golint)
    • Line 26: warning: error var RackNotFound should have name of the form ErrFoo (golint)
    • Line 27: warning: error var DataNodeNotFound should have name of the form ErrFoo (golint)
    • Line 28: warning: error var MetaNodeNotFound should have name of the form ErrFoo (golint)
    • Line 29: warning: error var VolNotFound should have name of the form ErrFoo (golint)
    • Line 30: warning: error var MetaPartitionNotFound should have name of the form ErrFoo (golint)
    • Line 31: warning: error var DataReplicaNotFound should have name of the form ErrFoo (golint)
    • Line 32: warning: error var UnMatchPara should have name of the form ErrFoo (golint)
    • Line 34: warning: error var DisOrderArrayErr should have name of the form ErrFoo (golint)
    • Line 35: warning: error var DataReplicaExcessError should have name of the form ErrFoo (golint)
    • Line 36: warning: error var DataReplicaLackError should have name of the form ErrFoo (golint)
    • Line 37: warning: error var DataReplicaHasMissOneError should have name of the form ErrFoo (golint)
    • Line 38: warning: error var NoHaveAnyDataNodeToWrite should have name of the form ErrFoo (golint)
    • Line 39: warning: error var NoHaveAnyMetaNodeToWrite should have name of the form ErrFoo (golint)
    • Line 40: warning: error var CannotOffLineErr should have name of the form ErrFoo (golint)
    • Line 41: warning: error var NoAnyDataNodeForCreateDataPartition should have name of the form ErrFoo (golint)
    • Line 42: warning: error var NoRackForCreateDataPartition should have name of the form ErrFoo (golint)
    • Line 43: warning: error var NoAnyMetaNodeForCreateMetaPartition should have name of the form ErrFoo (golint)
    • Line 44: warning: error var MetaReplicaExcessError should have name of the form ErrFoo (golint)
    • Line 45: warning: error var NoHaveMajorityReplica should have name of the form ErrFoo (golint)
    • Line 46: warning: error var NoLeader should have name of the form ErrFoo (golint)
    • Line 48: warning: error var InvalidDataPartitionType should have name of the form ErrFoo (golint)
    • Line 49: warning: error var ParaEnableNotFound should have name of the form ErrFoo (golint)
    • containerfs/master/server.go
    • Line 43: warning: exported type Master should have comment or be unexported (golint)
    • Line 60: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 64: warning: exported method Master.Start should have comment or be unexported (golint)
    • Line 85: warning: exported method Master.Shutdown should have comment or be unexported (golint)
    • Line 89: warning: exported method Master.Sync should have comment or be unexported (golint)
    • containerfs/util/master_helper.go
    • Line 31: warning: exported var ErrNoValidMaster should have comment or be unexported (golint)
    • Line 34: warning: exported type MasterHelper should have comment or be unexported (golint)
    • Line 178: warning: exported function NewMasterHelper should have comment or be unexported (golint)
    • containerfs/util/gorocksdb/dbpath.go
    • Line 15: warning: don't use underscores in Go names; func parameter target_size should be targetSize (golint)
    • Line 33: warning: don't use underscores in Go names; func parameter target_sizes should be targetSizes (golint)
    • containerfs/util/try_mutex/try_mutexlock.go
    • Line 44: warning: exported type TryMutexLock should have comment or be unexported (golint)
    • Line 54: warning: exported method TryMutexLock.Lock should have comment or be unexported (golint)
    • Line 60: warning: exported method TryMutexLock.TryLock should have comment or be unexported (golint)
    • Line 70: warning: exported method TryMutexLock.TryLockTimed should have comment or be unexported (golint)
    • Line 81: warning: exported method TryMutexLock.Unlock should have comment or be unexported (golint)
    • containerfs/fuse/examples/hellofs/hello.go
    • Line 59: warning: exported method FS.Root should have comment or be unexported (golint)
    • Line 66: warning: exported method Dir.Attr should have comment or be unexported (golint)
    • Line 72: warning: exported method Dir.Lookup should have comment or be unexported (golint)
    • Line 83: warning: exported method Dir.ReadDirAll should have comment or be unexported (golint)
    • Line 92: warning: exported method File.Attr should have comment or be unexported (golint)
    • Line 99: warning: exported method File.ReadAll should have comment or be unexported (golint)
    • containerfs/metanode/inode.go
    • Line 110: warning: exported method Inode.Marshal should have comment or be unexported (golint)
    • Line 133: warning: exported method Inode.Unmarshal should have comment or be unexported (golint)
    • Line 292: warning: exported method Inode.AppendExtents should have comment or be unexported (golint)
    • containerfs/master/const.go
    • Line 18: warning: exported const ParaNodeAddr should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported const DeleteExcessReplicationErr should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported const UnderlineSeparator should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported const DefaultMaxMetaPartitionInodeID should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: exported const OK should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: exported const VolNormal should have comment (or a comment on this block) or be unexported (golint)
    • containerfs/master/topology.go
    • Line 27: warning: exported type Topology should have comment or be unexported (golint)
    • Line 34: warning: exported function NewTopology should have comment or be unexported (golint)
    • Line 41: warning: exported type Rack should have comment or be unexported (golint)
    • Line 47: warning: exported function NewRack should have comment or be unexported (golint)
    • Line 177: warning: exported method Rack.PutDataNode should have comment or be unexported (golint)
    • Line 181: warning: exported method Rack.GetDataNode should have comment or be unexported (golint)
    • Line 190: warning: exported method Rack.RemoveDataNode should have comment or be unexported (golint)
    • Line 194: warning: exported method Rack.GetDataNodeMaxTotal should have comment or be unexported (golint)
    • Line 237: warning: exported method Rack.GetAvailCarryDataNodeTab should have comment or be unexported (golint)
    • Line 268: warning: exported method Rack.DataNodeCount should have comment or be unexported (golint)
    • Line 277: warning: exported method Rack.DisOrderArray should have comment or be unexported (golint)
    • containerfs/sdk/meta/partition.go
    • Line 25: warning: exported type MetaPartition should have comment or be unexported (golint)
    • Line 34: warning: exported method MetaPartition.Less should have comment or be unexported (golint)
    • Line 34: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • containerfs/util/ump/ump_async_log.go
    • Line 24: warning: exported type FunctionTp should have comment or be unexported (golint)
    • Line 32: warning: exported type SystemAlive should have comment or be unexported (golint)
    • Line 38: warning: exported type BusinessAlarm should have comment or be unexported (golint)
    • Line 48: warning: exported const LogDir should have comment (or a comment on this block) or be unexported (golint)
    • Line 62: warning: exported var FunctionTpLogWrite should have comment or be unexported (golint)
    • Line 67: warning: exported type LogWrite should have comment or be unexported (golint)
    • Line 177: warning: exported function GetLocalIpAddr should have comment or be unexported (golint)
    • containerfs/fuse/fuse_kernel.go
    • Line 80: warning: comment on exported const GetattrFh should be of the form "GetattrFh ..." (golint)
    • Line 97: warning: exported const SetattrMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 105: warning: comment on exported const SetattrAtimeNow should be of the form "SetattrAtimeNow ..." (golint)
    • Line 110: warning: comment on exported const SetattrCrtime should be of the form "SetattrCrtime ..." (golint)
    • Line 117: warning: exported method SetattrValid.Mode should have comment or be unexported (golint)
    • Line 118: warning: exported method SetattrValid.Uid should have comment or be unexported (golint)
    • Line 119: warning: exported method SetattrValid.Gid should have comment or be unexported (golint)
    • Line 120: warning: exported method SetattrValid.Size should have comment or be unexported (golint)
    • Line 121: warning: exported method SetattrValid.Atime should have comment or be unexported (golint)
    • Line 122: warning: exported method SetattrValid.Mtime should have comment or be unexported (golint)
    • Line 123: warning: exported method SetattrValid.Handle should have comment or be unexported (golint)
    • Line 124: warning: exported method SetattrValid.AtimeNow should have comment or be unexported (golint)
    • Line 125: warning: exported method SetattrValid.MtimeNow should have comment or be unexported (golint)
    • Line 126: warning: exported method SetattrValid.LockOwner should have comment or be unexported (golint)
    • Line 127: warning: exported method SetattrValid.Crtime should have comment or be unexported (golint)
    • Line 128: warning: exported method SetattrValid.Chgtime should have comment or be unexported (golint)
    • Line 129: warning: exported method SetattrValid.Bkuptime should have comment or be unexported (golint)
    • Line 130: warning: exported method SetattrValid.Flags should have comment or be unexported (golint)
    • Line 191: warning: comment on exported method OpenFlags.IsReadOnly should be of the form "IsReadOnly ..." (golint)
    • Line 196: warning: comment on exported method OpenFlags.IsWriteOnly should be of the form "IsWriteOnly ..." (golint)
    • Line 201: warning: comment on exported method OpenFlags.IsReadWrite should be of the form "IsReadWrite ..." (golint)
    • Line 233: warning: exported const OpenDirectIO should have comment (or a comment on this block) or be unexported (golint)
    • Line 257: warning: exported const InitAsyncRead should have comment (or a comment on this block) or be unexported (golint)
    • Line 263: warning: comment on exported const InitDontMask should be of the form "InitDontMask ..." (golint)
    • Line 339: warning: exported const ReleaseFlush should have comment (or a comment on this block) or be unexported (golint)
    • Line 582: warning: comment on exported const ReadLockOwner should be of the form "ReadLockOwner ..." (golint)
    • Line 622: warning: exported const WriteCache should have comment (or a comment on this block) or be unexported (golint)
    • Line 623: warning: comment on exported const WriteLockOwner should be of the form "WriteLockOwner ..." (golint)
    • Line 748: warning: exported const OutHeaderSize should have comment or be unexported (golint)
    • containerfs/master/id_allocator.go
    • Line 26: warning: exported const MaxDataPartitionIDKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type IDAllocator should have comment or be unexported (golint)
    • containerfs/master/meta_partition.go
    • Line 29: warning: exported type MetaReplica should have comment or be unexported (golint)
    • Line 40: warning: exported type MetaPartition should have comment or be unexported (golint)
    • Line 55: warning: exported function NewMetaReplica should have comment or be unexported (golint)
    • Line 62: warning: exported function NewMetaPartition should have comment or be unexported (golint)
    • Line 131: warning: exported method MetaPartition.UpdateEnd should have comment or be unexported (golint)
    • Line 290: warning: exported method MetaPartition.UpdateMetaPartition should have comment or be unexported (golint)
    • Line 419: warning: exported method MetaPartition.GenerateReplicaTask should have comment or be unexported (golint)
    • containerfs/sdk/meta/meta.go
    • Line 32: warning: exported const HostsSeparator should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported type MetaWrapper should have comment or be unexported (golint)
    • Line 72: warning: exported function NewMetaWrapper should have comment or be unexported (golint)
    • Line 92: warning: exported method MetaWrapper.Cluster should have comment or be unexported (golint)
    • containerfs/datanode/partition.go
    • Line 38: warning: exported const DataPartitionPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported var AdminGetDataPartition should have comment or be unexported (golint)
    • Line 47: warning: exported type DataPartition should have comment or be unexported (golint)
    • Line 116: warning: exported function CreateDataPartition 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!


misspell97%

Misspell Finds commonly misspelled English words