Preparing report...

Report for github.com/chubaofs/chubaofs

A    Great!    Found 213 issues across 323 files

Tweet

gofmt85%

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!


golint39%

Golint is a linter for Go source code.

    • chubaofs/util/btree/btree.go
    • Line 70: warning: exported const DefaultFreeListSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 685: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 707: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 840: warning: exported method BTree.CopyGet should have comment or be unexported (golint)
    • Line 917: warning: exported method Int.Copy should have comment or be unexported (golint)
    • chubaofs/objectnode/util.go
    • Line 76: warning: exported method PathIterator.HasNext should have comment or be unexported (golint)
    • Line 81: warning: exported method PathIterator.Reset should have comment or be unexported (golint)
    • Line 85: warning: exported method PathIterator.ToSlice should have comment or be unexported (golint)
    • Line 94: warning: exported method PathIterator.Next should have comment or be unexported (golint)
    • Line 117: warning: exported function NewPathIterator should have comment or be unexported (golint)
    • Line 191: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 253: warning: exported function SplitFileRange should have comment or be unexported (golint)
    • Line 276: warning: comment on exported function ParseUserDefinedMetadata should be of the form "ParseUserDefinedMetadata ..." (golint)
    • Line 304: warning: exported function ValidateCacheControl should have comment or be unexported (golint)
    • Line 315: warning: exported function ValidateCacheExpires should have comment or be unexported (golint)
    • chubaofs/objectnode/wildcard.go
    • Line 22: warning: exported type Wildcard should have comment or be unexported (golint)
    • Line 27: warning: exported method Wildcard.Parse should have comment or be unexported (golint)
    • Line 40: warning: exported function NewWildcard should have comment or be unexported (golint)
    • Line 53: warning: exported type Wildcards should have comment or be unexported (golint)
    • Line 55: warning: exported method Wildcards.Parse should have comment or be unexported (golint)
    • Line 64: warning: exported function NewWildcards should have comment or be unexported (golint)
    • chubaofs/cli/api/metaapi.go
    • Line 38: warning: exported type Inode should have comment or be unexported (golint)
    • Line 81: warning: exported type MetaHttpClient should have comment or be unexported (golint)
    • Line 87: warning: comment on exported function NewMetaHttpClient should be of the form "NewMetaHttpClient ..." (golint)
    • Line 122: warning: exported type RespBody should have comment or be unexported (golint)
    • Line 211: warning: exported method MetaHttpClient.GetMetaPartition should have comment or be unexported (golint)
    • Line 211: warning: receiver name mc should be consistent with previous receiver name c for MetaHttpClient (golint)
    • Line 234: warning: exported method MetaHttpClient.GetAllDentry should have comment or be unexported (golint)
    • Line 234: warning: receiver name mc should be consistent with previous receiver name c for MetaHttpClient (golint)
    • Line 284: warning: exported method MetaHttpClient.GetAllInodes should have comment or be unexported (golint)
    • Line 284: warning: receiver name mc should be consistent with previous receiver name c for MetaHttpClient (golint)
    • chubaofs/sdk/auth/api_admin.go
    • Line 8: warning: exported method API.AdminCreateKey should have comment or be unexported (golint)
    • Line 22: warning: exported method API.AdminDeleteKey should have comment or be unexported (golint)
    • Line 34: warning: exported method API.AdminGetKey should have comment or be unexported (golint)
    • Line 46: warning: exported method API.AdminAddCaps should have comment or be unexported (golint)
    • Line 59: warning: exported method API.AdminDeleteCaps should have comment or be unexported (golint)
    • Line 72: warning: exported method API.AdminGetCaps should have comment or be unexported (golint)
    • chubaofs/datanode/partition_raft.go
    • Line 132: warning: exported method DataPartition.CanRemoveRaftMember should have comment or be unexported (golint)
    • Line 434: warning: exported method DataPartition.SetMinAppliedID should have comment or be unexported (golint)
    • Line 438: warning: exported method DataPartition.GetAppliedID should have comment or be unexported (golint)
    • Line 550: warning: comment on exported function NewPacketToGetMaxExtentIDAndPartitionSIze should be of the form "NewPacketToGetMaxExtentIDAndPartitionSIze ..." (golint)
    • chubaofs/sdk/data/stream/stream_reader.go
    • Line 27: warning: comment on exported type Streamer should be of the form "Streamer ..." (with optional leading article) (golint)
    • Line 71: warning: comment on exported method Streamer.GetExtents should be of the form "GetExtents ..." (golint)
    • chubaofs/sdk/data/wrapper/data_partition_selector.go
    • Line 24: warning: comment on exported type DataPartitionSelectorConstructor should be of the form "DataPartitionSelectorConstructor ..." (with optional leading article) (golint)
    • Line 46: warning: exported var ErrDuplicatedDataPartitionSelectorConstructor should have comment or be unexported (golint)
    • Line 117: warning: comment on exported method Wrapper.GetDataPartitionForWrite should be of the form "GetDataPartitionForWrite ..." (golint)
    • Line 126: warning: exported method Wrapper.RemoveDataPartitionForWrite should have comment or be unexported (golint)
    • chubaofs/master/mocktest/data_server.go
    • Line 33: warning: exported type MockDataServer should have comment or be unexported (golint)
    • Line 50: warning: exported function NewMockDataServer should have comment or be unexported (golint)
    • Line 61: warning: exported method MockDataServer.Start should have comment or be unexported (golint)
    • chubaofs/sdk/meta/view.go
    • Line 37: warning: exported const MaxSendToMaster should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type VolumeView should have comment or be unexported (golint)
    • Line 48: warning: exported type OSSSecure should have comment or be unexported (golint)
    • Line 53: warning: exported type VolStatInfo should have comment or be unexported (golint)
    • chubaofs/util/mem.go
    • Line 26: warning: exported const MEMINFO should have comment (or a comment on this block) or be unexported (golint)
    • Line 73: warning: exported function GetProcessMemory should have comment or be unexported (golint)
    • chubaofs/metanode/dentry.go
    • Line 48: warning: exported type DentryBatch should have comment or be unexported (golint)
    • Line 123: warning: comment on exported function DentryBatchUnmarshal should be of the form "DentryBatchUnmarshal ..." (golint)
    • Line 160: warning: exported method Dentry.Copy should have comment or be unexported (golint)
    • chubaofs/util/buf/buffer_pool.go
    • Line 14: warning: exported const HeaderBufferPoolSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported function NewTinyBufferPool should have comment or be unexported (golint)
    • chubaofs/cli/cmd/root.go
    • Line 32: warning: exported type ChubaoFSCmd should have comment or be unexported (golint)
    • Line 36: warning: exported function NewRootCmd should have comment or be unexported (golint)
    • Line 79: warning: exported function OsExitWithLogFlush should have comment or be unexported (golint)
    • chubaofs/objectnode/fs_store_user.go
    • Line 38: warning: exported type UserInfoStore should have comment or be unexported (golint)
    • Line 42: warning: exported type StrictUserInfoStore should have comment or be unexported (golint)
    • Line 46: warning: exported method StrictUserInfoStore.LoadUser should have comment or be unexported (golint)
    • Line 56: warning: exported type CacheUserInfoStore should have comment or be unexported (golint)
    • Line 66: warning: exported method CacheUserInfoStore.Close should have comment or be unexported (golint)
    • Line 72: warning: exported method CacheUserInfoStore.LoadUser should have comment or be unexported (golint)
    • Line 76: warning: exported function NewUserInfoStore should have comment or be unexported (golint)
    • Line 92: warning: exported function ReleaseUserInfoStore should have comment or be unexported (golint)
    • Line 99: warning: exported type CacheUserInfoLoader should have comment or be unexported (golint)
    • Line 109: warning: exported function NewUserInfoLoader should have comment or be unexported (golint)
    • Line 193: warning: exported method CacheUserInfoLoader.LoadUser should have comment or be unexported (golint)
    • Line 239: warning: exported method CacheUserInfoLoader.Close should have comment or be unexported (golint)
    • chubaofs/sdk/meta/partition.go
    • Line 22: warning: exported type MetaPartition should have comment or be unexported (golint)
    • Line 31: warning: exported method MetaPartition.Less should have comment or be unexported (golint)
    • Line 31: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 36: warning: exported method MetaPartition.Copy should have comment or be unexported (golint)
    • chubaofs/util/log/log.go
    • Line 37: warning: exported type Level should have comment or be unexported (golint)
    • Line 40: warning: exported const DebugLevel should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported const FileNameDateFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 71: warning: exported type RolledFile should have comment or be unexported (golint)
    • Line 221: warning: exported method LogObject.SetRotation should have comment or be unexported (golint)
    • Line 249: warning: exported var ErrLogFileName should have comment or be unexported (golint)
    • Line 260: warning: exported var LogDir should have comment or be unexported (golint)
    • Line 370: warning: exported const SetLogLevelPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 373: warning: exported function SetLogLevel should have comment or be unexported (golint)
    • Line 477: warning: comment on exported function LogInfof should be of the form "LogInfof ..." (golint)
    • Line 568: warning: comment on exported function LogCritical should be of the form "LogCritical ..." (golint)
    • Line 578: warning: comment on exported function LogCriticalf should be of the form "LogCriticalf ..." (golint)
    • Line 588: warning: comment on exported function LogRead should be of the form "LogRead ..." (golint)
    • Line 601: warning: comment on exported function LogReadf should be of the form "LogReadf ..." (golint)
    • Line 614: warning: comment on exported function LogWrite should be of the form "LogWrite ..." (golint)
    • Line 684: warning: exported function DeleteFileFilter should have comment or be unexported (golint)
    • chubaofs/util/log/rotate.go
    • Line 21: warning: exported const DefaultMinRollingSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: comment on exported type LogRotate should be of the form "LogRotate ..." (with optional leading article) (golint)
    • chubaofs/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 DefaultBlksize should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported const DefaultInodeExpiration should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: comment on exported const DentryValidDuration should be of the form "DentryValidDuration ..." (golint)
    • Line 46: warning: exported const DeleteExtentsTimeout should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: comment on exported var LookupValidDuration should be of the form "LookupValidDuration ..." (golint)
    • Line 53: warning: comment on exported var AttrValidDuration should be of the form "AttrValidDuration ..." (golint)
    • chubaofs/console/server.go
    • Line 22: warning: exported type ConsoleNode should have comment or be unexported (golint)
    • Line 29: warning: exported method ConsoleNode.Start should have comment or be unexported (golint)
    • Line 101: warning: exported method ConsoleNode.Shutdown should have comment or be unexported (golint)
    • Line 104: warning: exported method ConsoleNode.Sync should have comment or be unexported (golint)
    • Line 110: warning: exported function NewServer should have comment or be unexported (golint)
    • chubaofs/metanode/btree.go
    • Line 50: warning: exported method BTree.CopyGet should have comment or be unexported (golint)
    • Line 68: warning: exported method BTree.CopyFind should have comment or be unexported (golint)
    • Line 91: warning: exported method BTree.Execute should have comment or be unexported (golint)
    • chubaofs/metanode/const.go
    • Line 26: warning: comment on exported type CreateMetaRangeReq should be of the form "CreateMetaRangeReq ..." (with optional leading article) (golint)
    • Line 28: warning: comment on exported type CreateMetaRangeResp should be of the form "CreateMetaRangeResp ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported type CreateInoReq should be of the form "CreateInoReq ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported type CreateInoResp should be of the form "CreateInoResp ..." (with optional leading article) (golint)
    • Line 34: warning: comment on exported type LinkInodeReq should be of the form "LinkInodeReq ..." (with optional leading article) (golint)
    • Line 36: warning: comment on exported type LinkInodeResp should be of the form "LinkInodeResp ..." (with optional leading article) (golint)
    • Line 38: warning: comment on exported type UnlinkInoReq should be of the form "UnlinkInoReq ..." (with optional leading article) (golint)
    • Line 40: warning: comment on exported type BatchUnlinkInoReq should be of the form "BatchUnlinkInoReq ..." (with optional leading article) (golint)
    • Line 42: warning: comment on exported type UnlinkInoResp should be of the form "UnlinkInoResp ..." (with optional leading article) (golint)
    • Line 44: warning: comment on exported type BatchUnlinkInoResp should be of the form "BatchUnlinkInoResp ..." (with optional leading article) (golint)
    • Line 46: warning: comment on exported type CreateDentryReq should be of the form "CreateDentryReq ..." (with optional leading article) (golint)
    • Line 48: warning: comment on exported type DeleteDentryReq should be of the form "DeleteDentryReq ..." (with optional leading article) (golint)
    • Line 50: warning: comment on exported type BatchDeleteDentryReq should be of the form "BatchDeleteDentryReq ..." (with optional leading article) (golint)
    • Line 52: warning: comment on exported type DeleteDentryResp should be of the form "DeleteDentryResp ..." (with optional leading article) (golint)
    • Line 54: warning: comment on exported type BatchDeleteDentryResp should be of the form "BatchDeleteDentryResp ..." (with optional leading article) (golint)
    • Line 56: warning: comment on exported type UpdateDentryReq should be of the form "UpdateDentryReq ..." (with optional leading article) (golint)
    • Line 58: warning: comment on exported type UpdateDentryResp should be of the form "UpdateDentryResp ..." (with optional leading article) (golint)
    • Line 60: warning: comment on exported type ReadDirReq should be of the form "ReadDirReq ..." (with optional leading article) (golint)
    • Line 62: warning: comment on exported type ReadDirResp should be of the form "ReadDirResp ..." (with optional leading article) (golint)
    • Line 64: warning: comment on exported type LookupReq should be of the form "LookupReq ..." (with optional leading article) (golint)
    • Line 66: warning: comment on exported type LookupResp should be of the form "LookupResp ..." (with optional leading article) (golint)
    • Line 68: warning: comment on exported type InodeGetReq should be of the form "InodeGetReq ..." (with optional leading article) (golint)
    • Line 70: warning: comment on exported type InodeGetReqBatch should be of the form "InodeGetReqBatch ..." (with optional leading article) (golint)
    • Line 72: warning: comment on exported type UpdatePartitionReq should be of the form "UpdatePartitionReq ..." (with optional leading article) (golint)
    • Line 74: warning: comment on exported type UpdatePartitionResp should be of the form "UpdatePartitionResp ..." (with optional leading article) (golint)
    • Line 76: warning: comment on exported type ExtentsTruncateReq should be of the form "ExtentsTruncateReq ..." (with optional leading article) (golint)
    • Line 79: warning: comment on exported type EvictInodeReq should be of the form "EvictInodeReq ..." (with optional leading article) (golint)
    • Line 81: warning: comment on exported type BatchEvictInodeReq should be of the form "BatchEvictInodeReq ..." (with optional leading article) (golint)
    • Line 83: warning: comment on exported type SetattrRequest should be of the form "SetattrRequest ..." (with optional leading article) (golint)
    • Line 129: warning: exported var ErrNoLeader should have comment or be unexported (golint)
    • Line 170: warning: exported const KB should have comment (or a comment on this block) or be unexported (golint)
    • chubaofs/metanode/manager.go
    • Line 23: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 41: warning: exported const ExpiredPartitionPrefix should have comment or be unexported (golint)
    • chubaofs/master/topology.go
    • Line 594: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 1094: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • chubaofs/sdk/graphql/client/cluster/client.go
    • Line 8: warning: exported type ClusterClient should have comment or be unexported (golint)
    • Line 12: warning: exported function NewClusterClient should have comment or be unexported (golint)
    • Line 16: warning: comment on exported type GeneralResp should be of the form "GeneralResp ..." (with optional leading article) (golint)
    • Line 22: warning: exported type NodeView should have comment or be unexported (golint)
    • Line 31: warning: exported type PartitionReport should have comment or be unexported (golint)
    • Line 62: warning: exported type ClusterView should have comment or be unexported (golint)
    • Line 87: warning: exported type DataNode should have comment or be unexported (golint)
    • Line 106: warning: exported type MasterInfo should have comment or be unexported (golint)
    • Line 112: warning: exported type MetaPartitionReport should have comment or be unexported (golint)
    • Line 122: warning: exported type NodeStatInfo should have comment or be unexported (golint)
    • Line 129: warning: exported type RWMutex should have comment or be unexported (golint)
    • Line 132: warning: exported type Vol should have comment or be unexported (golint)
    • Line 145: warning: exported type VolStatInfo should have comment or be unexported (golint)
    • Line 154: warning: exported type BadPartitionView should have comment or be unexported (golint)
    • Line 159: warning: comment on exported method ClusterClient.DecommissionDataNode should be of the form "DecommissionDataNode ..." (golint)
    • Line 186: warning: exported method ClusterClient.ClusterView should have comment or be unexported (golint)
    • Line 385: warning: exported method ClusterClient.DataNodeList should have comment or be unexported (golint)
    • Line 435: warning: exported method ClusterClient.DataNodeListTest should have comment or be unexported (golint)
    • Line 485: warning: exported method ClusterClient.MasterList should have comment or be unexported (golint)
    • Line 512: warning: exported method ClusterClient.AddMetaNode should have comment or be unexported (golint)
    • Line 539: warning: exported method ClusterClient.AddRaftNode should have comment or be unexported (golint)
    • Line 566: warning: exported method ClusterClient.DecommissionMetaPartition should have comment or be unexported (golint)
    • Line 593: warning: exported method ClusterClient.RemoveRaftNode should have comment or be unexported (golint)
    • Line 620: warning: exported method ClusterClient.DataNodeGet should have comment or be unexported (golint)
    • Line 670: warning: exported method ClusterClient.GetTopology should have comment or be unexported (golint)
    • Line 696: warning: exported method ClusterClient.MetaNodeGet should have comment or be unexported (golint)
    • Line 744: warning: exported method ClusterClient.DecommissionDisk should have comment or be unexported (golint)
    • Line 771: warning: exported method ClusterClient.DecommissionMetaNode should have comment or be unexported (golint)
    • Line 797: warning: exported method ClusterClient.LoadMetaPartition should have comment or be unexported (golint)
    • Line 823: warning: exported method ClusterClient.ClusterFreeze should have comment or be unexported (golint)
    • Line 849: warning: exported method ClusterClient.MetaNodeList should have comment or be unexported (golint)
    • chubaofs/proto/auth_proto.go
    • Line 43: warning: exported const APIRsc should have comment (or a comment on this block) or be unexported (golint)
    • Line 94: warning: exported const MasterNode should have comment (or a comment on this block) or be unexported (golint)
    • Line 199: warning: comment on exported const MsgMasterFetchVolViewReq should be of the form "MsgMasterFetchVolViewReq ..." (golint)
    • Line 298: warning: comment on exported type AuthOSAccessKeyReq should be of the form "AuthOSAccessKeyReq ..." (with optional leading article) (golint)
    • Line 304: warning: comment on exported type AuthOSAccessKeyResp should be of the form "AuthOSAccessKeyResp ..." (with optional leading article) (golint)
    • Line 425: warning: exported function ParseAuthOSAKResp should have comment or be unexported (golint)
    • Line 441: warning: exported function ExtractTicket should have comment or be unexported (golint)
    • Line 544: warning: exported function CheckVOLAccessCaps should have comment or be unexported (golint)
    • chubaofs/sdk/data/stream/stream_writer.go
    • Line 34: warning: exported const MaxSelectDataPartitionForWrite should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported const StreamerNormal should have comment (or a comment on this block) or be unexported (golint)
    • Line 91: warning: comment on exported method Streamer.IssueOpenRequest should be of the form "IssueOpenRequest ..." (golint)
    • Line 102: warning: exported method Streamer.IssueWriteRequest should have comment or be unexported (golint)
    • Line 124: warning: exported method Streamer.IssueFlushRequest should have comment or be unexported (golint)
    • Line 134: warning: exported method Streamer.IssueReleaseRequest should have comment or be unexported (golint)
    • Line 145: warning: exported method Streamer.IssueTruncRequest should have comment or be unexported (golint)
    • Line 156: warning: exported method Streamer.IssueEvictRequest should have comment or be unexported (golint)
    • chubaofs/objectnode/fs.go
    • Line 23: warning: exported type FSFileInfo should have comment or be unexported (golint)
    • Line 38: warning: exported type Prefixes should have comment or be unexported (golint)
    • Line 40: warning: exported type PrefixMap should have comment or be unexported (golint)
    • Line 42: warning: exported method PrefixMap.AddPrefix should have comment or be unexported (golint)
    • Line 46: warning: exported method PrefixMap.Prefixes should have comment or be unexported (golint)
    • Line 62: warning: exported type FSUpload should have comment or be unexported (golint)
    • Line 69: warning: exported type FSPart should have comment or be unexported (golint)
    • chubaofs/cli/cmd/gen_config.go
    • Line 33: warning: exported const RoleMaster should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: comment on exported type RootConfig should be of the form "RootConfig ..." (with optional leading article) (golint)
    • Line 53: warning: comment on exported type ClusterConfig should be of the form "ClusterConfig ..." (with optional leading article) (golint)
    • Line 71: warning: comment on exported type NodeConfig should be of the form "NodeConfig ..." (with optional leading article) (golint)
    • Line 82: warning: comment on exported type MasterConfig should be of the form "MasterConfig ..." (with optional leading article) (golint)
    • Line 102: warning: exported var GenClusterCfgCmd should have comment or be unexported (golint)
    • chubaofs/sdk/meta/api.go
    • Line 36: warning: exported const BatchIgetRespBuf should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported const OpenRetryInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported method MetaWrapper.GetRootIno should have comment or be unexported (golint)
    • Line 60: warning: comment on exported method MetaWrapper.LookupPath should be of the form "LookupPath ..." (golint)
    • Line 81: warning: exported method MetaWrapper.Statfs should have comment or be unexported (golint)
    • Line 87: warning: exported method MetaWrapper.Create_ll should have comment or be unexported (golint)
    • Line 87: warning: don't use underscores in Go names; method Create_ll should be CreateLl (golint)
    • Line 151: warning: exported method MetaWrapper.Lookup_ll should have comment or be unexported (golint)
    • Line 151: warning: don't use underscores in Go names; method Lookup_ll should be LookupLl (golint)
    • Line 165: warning: exported method MetaWrapper.InodeGet_ll should have comment or be unexported (golint)
    • Line 165: warning: don't use underscores in Go names; method InodeGet_ll should be InodeGetLl (golint)
    • Line 202: warning: exported method MetaWrapper.BatchInodeGet should have comment or be unexported (golint)
    • Line 243: warning: don't use underscores in Go names; method InodeDelete_ll should be InodeDeleteLl (golint)
    • Line 257: warning: exported method MetaWrapper.BatchGetXAttr should have comment or be unexported (golint)
    • Line 313: warning: comment on exported method MetaWrapper.Delete_ll should be of the form "Delete_ll ..." (golint)
    • Line 317: warning: don't use underscores in Go names; method Delete_ll should be DeleteLl (golint)
    • Line 377: warning: exported method MetaWrapper.Rename_ll should have comment or be unexported (golint)
    • Line 377: warning: don't use underscores in Go names; method Rename_ll should be RenameLl (golint)
    • Line 457: warning: exported method MetaWrapper.ReadDir_ll should have comment or be unexported (golint)
    • Line 457: warning: don't use underscores in Go names; method ReadDir_ll should be ReadDirLl (golint)
    • Line 470: warning: exported method MetaWrapper.DentryCreate_ll should have comment or be unexported (golint)
    • Line 470: warning: don't use underscores in Go names; method DentryCreate_ll should be DentryCreateLl (golint)
    • Line 483: warning: exported method MetaWrapper.DentryUpdate_ll should have comment or be unexported (golint)
    • Line 483: warning: don't use underscores in Go names; method DentryUpdate_ll should be DentryUpdateLl (golint)
    • Line 498: warning: comment on exported method MetaWrapper.AppendExtentKey should be of the form "AppendExtentKey ..." (golint)
    • Line 530: warning: exported method MetaWrapper.GetExtents should have comment or be unexported (golint)
    • Line 545: warning: exported method MetaWrapper.Truncate should have comment or be unexported (golint)
    • Line 560: warning: exported method MetaWrapper.Link should have comment or be unexported (golint)
    • Line 592: warning: exported method MetaWrapper.Evict should have comment or be unexported (golint)
    • Line 607: warning: exported method MetaWrapper.Setattr should have comment or be unexported (golint)
    • Line 623: warning: exported method MetaWrapper.InodeCreate_ll should have comment or be unexported (golint)
    • Line 623: warning: don't use underscores in Go names; method InodeCreate_ll should be InodeCreateLl (golint)
    • Line 646: warning: comment on exported method MetaWrapper.InodeLink_ll should be of the form "InodeLink_ll ..." (golint)
    • Line 647: warning: don't use underscores in Go names; method InodeLink_ll should be InodeLinkLl (golint)
    • Line 662: warning: don't use underscores in Go names; method InodeUnlink_ll should be InodeUnlinkLl (golint)
    • Line 676: warning: exported method MetaWrapper.InitMultipart_ll should have comment or be unexported (golint)
    • Line 676: warning: don't use underscores in Go names; method InitMultipart_ll should be InitMultipartLl (golint)
    • Line 696: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 704: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 709: warning: exported method MetaWrapper.GetMultipart_ll should have comment or be unexported (golint)
    • Line 709: warning: don't use underscores in Go names; method GetMultipart_ll should be GetMultipartLl (golint)
    • Line 730: warning: exported method MetaWrapper.AddMultipartPart_ll should have comment or be unexported (golint)
    • Line 730: warning: don't use underscores in Go names; method AddMultipartPart_ll should be AddMultipartPartLl (golint)
    • Line 752: warning: exported method MetaWrapper.RemoveMultipart_ll should have comment or be unexported (golint)
    • Line 752: warning: don't use underscores in Go names; method RemoveMultipart_ll should be RemoveMultipartLl (golint)
    • Line 812: warning: exported method MetaWrapper.ListMultipart_ll should have comment or be unexported (golint)
    • Line 812: warning: don't use underscores in Go names; method ListMultipart_ll should be ListMultipartLl (golint)
    • Line 845: warning: exported method MetaWrapper.XAttrSet_ll should have comment or be unexported (golint)
    • Line 845: warning: don't use underscores in Go names; method XAttrSet_ll should be XAttrSetLl (golint)
    • Line 862: warning: exported method MetaWrapper.XAttrGet_ll should have comment or be unexported (golint)
    • Line 862: warning: don't use underscores in Go names; method XAttrGet_ll should be XAttrGetLl (golint)
    • Line 888: warning: don't use underscores in Go names; method XAttrDel_ll should be XAttrDelLl (golint)
    • Line 904: warning: exported method MetaWrapper.XAttrsList_ll should have comment or be unexported (golint)
    • Line 904: warning: don't use underscores in Go names; method XAttrsList_ll should be XAttrsListLl (golint)
    • chubaofs/util/multipart.go
    • Line 31: warning: exported type MultipartID should have comment or be unexported (golint)
    • Line 37: warning: exported method MultipartID.PartitionID should have comment or be unexported (golint)
    • Line 69: warning: exported function MultipartIDFromString should have comment or be unexported (golint)
    • Line 73: warning: exported function CreateMultipartID should have comment or be unexported (golint)
    • chubaofs/datanode/space_manager.go
    • Line 64: warning: exported method SpaceManager.Stop should have comment or be unexported (golint)
    • Line 99: warning: exported method SpaceManager.SetNodeID should have comment or be unexported (golint)
    • Line 103: warning: exported method SpaceManager.GetNodeID should have comment or be unexported (golint)
    • Line 107: warning: exported method SpaceManager.SetClusterID should have comment or be unexported (golint)
    • Line 111: warning: exported method SpaceManager.GetClusterID should have comment or be unexported (golint)
    • Line 115: warning: exported method SpaceManager.SetRaftStore should have comment or be unexported (golint)
    • Line 118: warning: exported method SpaceManager.GetRaftStore should have comment or be unexported (golint)
    • Line 122: warning: exported method SpaceManager.RangePartitions should have comment or be unexported (golint)
    • Line 140: warning: exported method SpaceManager.GetDisks should have comment or be unexported (golint)
    • Line 150: warning: exported method SpaceManager.Stats should have comment or be unexported (golint)
    • Line 154: warning: exported method SpaceManager.LoadDisk should have comment or be unexported (golint)
    • Line 178: warning: exported method SpaceManager.GetDisk should have comment or be unexported (golint)
    • Line 265: warning: exported method SpaceManager.Partition should have comment or be unexported (golint)
    • Line 273: warning: exported method SpaceManager.AttachPartition should have comment or be unexported (golint)
    • Line 286: warning: exported method SpaceManager.CreatePartition should have comment or be unexported (golint)
    • chubaofs/objectnode/etag.go
    • Line 40: warning: exported type ETagValue should have comment or be unexported (golint)
    • Line 46: warning: exported method ETagValue.ETag should have comment or be unexported (golint)
    • Line 55: warning: exported method ETagValue.TSUnix should have comment or be unexported (golint)
    • Line 66: warning: exported method ETagValue.Encode should have comment or be unexported (golint)
    • Line 75: warning: exported method ETagValue.Valid should have comment or be unexported (golint)
    • Line 79: warning: exported function DirectoryETagValue should have comment or be unexported (golint)
    • Line 83: warning: exported function EmptyContentETagValue should have comment or be unexported (golint)
    • Line 91: warning: exported function NewRandomBytesETagValue should have comment or be unexported (golint)
    • Line 106: warning: exported function NewRandomUUIDETagValue should have comment or be unexported (golint)
    • Line 119: warning: exported function ParseETagValue should have comment or be unexported (golint)
    • chubaofs/objectnode/fs_manager.go
    • Line 34: warning: exported type VolumeLoader should have comment or be unexported (golint)
    • Line 66: warning: exported method VolumeLoader.Release should have comment or be unexported (golint)
    • Line 81: warning: exported method VolumeLoader.Volume should have comment or be unexported (golint)
    • Line 162: warning: comment on exported method VolumeLoader.Close should be of the form "Close ..." (golint)
    • Line 176: warning: exported function NewVolumeLoader should have comment or be unexported (golint)
    • Line 188: warning: exported type VolumeManager should have comment or be unexported (golint)
    • Line 203: warning: exported method VolumeManager.Volume should have comment or be unexported (golint)
    • Line 207: warning: comment on exported method VolumeManager.Close should be of the form "Close ..." (golint)
    • Line 216: warning: exported method VolumeManager.Release should have comment or be unexported (golint)
    • Line 229: warning: exported function NewVolumeManager should have comment or be unexported (golint)
    • chubaofs/util/keystore/akstore.go
    • Line 11: warning: exported type AccessKeyInfo should have comment or be unexported (golint)
    • Line 16: warning: exported type AccessKeyCaps should have comment or be unexported (golint)
    • Line 23: warning: exported method AccessKeyCaps.IsValidCaps should have comment or be unexported (golint)
    • Line 31: warning: exported method AccessKeyCaps.IsValidAK should have comment or be unexported (golint)
    • Line 40: warning: exported method AccessKeyCaps.DumpJSONStr should have comment or be unexported (golint)
    • chubaofs/console/service/file.go
    • Line 17: warning: should not use dot imports (golint)
    • Line 26: warning: exported type FileService should have comment or be unexported (golint)
    • Line 32: warning: exported function NewFileService should have comment or be unexported (golint)
    • Line 49: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 66: warning: exported type ListFileInfo should have comment or be unexported (golint)
    • Line 285: warning: comment on exported method FileService.DownFile should be of the form "DownFile ..." (golint)
    • Line 343: warning: comment on exported method FileService.UpLoadFile should be of the form "UpLoadFile ..." (golint)
    • Line 415: warning: exported type KeyValue should have comment or be unexported (golint)
    • Line 420: warning: exported method FileService.Schema should have comment or be unexported (golint)
    • chubaofs/util/log/log_get.go
    • Line 27: warning: exported const InvalidLogLevel should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: exported function GetLog should have comment or be unexported (golint)
    • chubaofs/objectnode/fs_volume.go
    • Line 44: warning: exported const OSSMetaUpdateDuration should have comment (or a comment on this block) or be unexported (golint)
    • Line 81: warning: exported type PutFileOption should have comment or be unexported (golint)
    • Line 90: warning: exported type ListFilesV1Option should have comment or be unexported (golint)
    • Line 97: warning: exported type ListFilesV1Result should have comment or be unexported (golint)
    • Line 104: warning: exported type ListFilesV2Option should have comment or be unexported (golint)
    • Line 113: warning: exported type ListFilesV2Result should have comment or be unexported (golint)
    • Line 179: warning: exported method Volume.Name should have comment or be unexported (golint)
    • Line 183: warning: exported method Volume.Owner should have comment or be unexported (golint)
    • Line 187: warning: exported method Volume.CreateTime should have comment or be unexported (golint)
    • Line 248: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 270: warning: exported method Volume.SetXAttr should have comment or be unexported (golint)
    • Line 294: warning: exported method Volume.GetXAttr should have comment or be unexported (golint)
    • Line 307: warning: exported method Volume.DeleteXAttr should have comment or be unexported (golint)
    • Line 320: warning: exported method Volume.ListXAttrs should have comment or be unexported (golint)
    • Line 333: warning: exported method Volume.OSSSecure should have comment or be unexported (golint)
    • Line 405: warning: comment on exported method Volume.PutObject should be of the form "PutObject ..." (golint)
    • Line 711: warning: exported method Volume.InitMultipart should have comment or be unexported (golint)
    • Line 754: warning: exported method Volume.WritePart should have comment or be unexported (golint)
    • Line 843: warning: exported method Volume.AbortMultipart should have comment or be unexported (golint)
    • Line 884: warning: exported method Volume.CompleteMultipart should have comment or be unexported (golint)
    • Line 1183: warning: exported method Volume.ReadFile should have comment or be unexported (golint)
    • Line 1248: warning: exported method Volume.ObjectMeta should have comment or be unexported (golint)
    • Line 1351: warning: exported method Volume.Close should have comment or be unexported (golint)
    • Line 1847: warning: exported method Volume.ListMultipartUploads should have comment or be unexported (golint)
    • Line 1915: warning: exported method Volume.ListParts should have comment or be unexported (golint)
    • Line 1947: warning: exported method Volume.CopyFile should have comment or be unexported (golint)
    • Line 2301: warning: exported function NewVolume should have comment or be unexported (golint)
    • chubaofs/datanode/data_partition_repair.go
    • Line 46: warning: exported function NewDataPartitionRepairTask should have comment or be unexported (golint)
    • Line 317: warning: should omit 2nd value from range; this loop is equivalent to `for extentID := range ...` (golint)
    • Line 609: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • chubaofs/metanode/inode.go
    • Line 30: warning: exported const DeleteMarkFlag should have comment (or a comment on this block) or be unexported (golint)
    • Line 71: warning: exported type InodeBatch should have comment or be unexported (golint)
    • Line 227: warning: comment on exported function InodeBatchUnmarshal should be of the form "InodeBatchUnmarshal ..." (golint)
    • Line 409: warning: exported method Inode.AppendExtentWithCheck should have comment or be unexported (golint)
    • Line 425: warning: exported method Inode.ExtentsTruncate should have comment or be unexported (golint)
    • Line 461: warning: exported method Inode.IsTempFile should have comment or be unexported (golint)
    • Line 468: warning: exported method Inode.IsEmptyDir should have comment or be unexported (golint)
    • Line 490: warning: comment on exported method Inode.ShouldDelayDelete should be of the form "ShouldDelayDelete ..." (golint)
    • Line 524: warning: exported method Inode.DoWriteFunc should have comment or be unexported (golint)
    • Line 530: warning: comment on exported method Inode.DoReadFunc should be of the form "DoReadFunc ..." (golint)
    • chubaofs/client/fs/dir.go
    • Line 188: warning: exported method Dir.Fsync should have comment or be unexported (golint)
    • Line 339: warning: exported method Dir.Mknod should have comment or be unexported (golint)
    • chubaofs/util/errors/errors.go
    • Line 24: warning: exported type ErrorTrace should have comment or be unexported (golint)
    • Line 28: warning: exported function New should have comment or be unexported (golint)
    • Line 32: warning: exported function NewError should have comment or be unexported (golint)
    • Line 45: warning: exported function NewErrorf should have comment or be unexported (golint)
    • Line 59: warning: exported function Trace should have comment or be unexported (golint)
    • Line 75: warning: exported function Stack should have comment or be unexported (golint)
    • chubaofs/util/iputil/ip.go
    • Line 105: warning: comment on exported const DEFAULT_MAX_DISTANCE should be of the form "DEFAULT_MAX_DISTANCE ..." (golint)
    • Line 108: warning: exported function GetDistance should have comment or be unexported (golint)
    • chubaofs/util/exporter/alarm.go
    • Line 26: warning: exported var AlarmPool should have comment or be unexported (golint)
    • Line 29: warning: comment on exported var AlarmCh should be of the form "AlarmCh ..." (golint)
    • Line 41: warning: exported type Alarm should have comment or be unexported (golint)
    • Line 45: warning: exported function Warning should have comment or be unexported (golint)
    • chubaofs/console/cutil/handler.go
    • Line 36: warning: exported function NewProxyHandler should have comment or be unexported (golint)
    • Line 40: warning: exported function Token should have comment or be unexported (golint)
    • Line 163: warning: exported function HTTPHandler should have comment or be unexported (golint)
    • Line 167: warning: exported function HTTPHandlerWithExecutor should have comment or be unexported (golint)
    • Line 301: warning: exported function IQLFun should have comment or be unexported (golint)
    • chubaofs/metanode/multipart.go
    • Line 36: warning: exported method Part.Equal should have comment or be unexported (golint)
    • Line 43: warning: exported method Part.Bytes should have comment or be unexported (golint)
    • Line 79: warning: exported function PartFromBytes should have comment or be unexported (golint)
    • Line 113: warning: exported type Parts should have comment or be unexported (golint)
    • Line 115: warning: exported method Parts.Len should have comment or be unexported (golint)
    • Line 125: warning: exported method Parts.Hash should have comment or be unexported (golint)
    • Line 133: warning: exported method Parts.LoadOrStore should have comment or be unexported (golint)
    • Line 149: warning: comment on exported method Parts.Insert should be of the form "Insert ..." (golint)
    • Line 166: warning: exported method Parts.Remove should have comment or be unexported (golint)
    • Line 179: warning: exported method Parts.Search should have comment or be unexported (golint)
    • Line 189: warning: exported method Parts.Bytes should have comment or be unexported (golint)
    • Line 217: warning: exported function PartsFromBytes should have comment or be unexported (golint)
    • Line 234: warning: exported type MultipartExtend should have comment or be unexported (golint)
    • Line 236: warning: exported function NewMultipartExtend should have comment or be unexported (golint)
    • Line 240: warning: exported method MultipartExtend.Bytes should have comment or be unexported (golint)
    • Line 270: warning: exported function MultipartExtendFromBytes should have comment or be unexported (golint)
    • Line 308: warning: exported method Multipart.Less should have comment or be unexported (golint)
    • Line 313: warning: exported method Multipart.Copy should have comment or be unexported (golint)
    • Line 323: warning: exported method Multipart.ID should have comment or be unexported (golint)
    • Line 327: warning: exported method Multipart.LoadOrStorePart should have comment or be unexported (golint)
    • Line 337: warning: comment on exported method Multipart.InsertPart should be of the form "InsertPart ..." (golint)
    • Line 348: warning: exported method Multipart.Parts should have comment or be unexported (golint)
    • Line 354: warning: exported method Multipart.Bytes should have comment or be unexported (golint)
    • Line 410: warning: exported function MultipartFromBytes should have comment or be unexported (golint)
    • chubaofs/objectnode/result_error.go
    • Line 23: warning: exported type ErrorCode should have comment or be unexported (golint)
    • Line 29: warning: exported method ErrorCode.ServeResponse should have comment or be unexported (golint)
    • Line 60: warning: exported function ServeInternalStaticErrorResponse should have comment or be unexported (golint)
    • Line 109: warning: exported function HttpStatusErrorCode should have comment or be unexported (golint)
    • Line 119: warning: exported function InternalErrorCode should have comment or be unexported (golint)
    • chubaofs/objectnode/const.go
    • Line 20: warning: exported const MaxRetry should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported const HeaderNameServer should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: comment on exported const Origin should be of the form "Origin ..." (golint)
    • Line 77: warning: exported const HeaderValueServer should have comment (or a comment on this block) or be unexported (golint)
    • Line 85: warning: exported const SubObjectDelete should have comment (or a comment on this block) or be unexported (golint)
    • Line 90: warning: exported const ParamUploadId should have comment (or a comment on this block) or be unexported (golint)
    • Line 115: warning: exported const MaxKeys should have comment (or a comment on this block) or be unexported (golint)
    • Line 121: warning: exported const StorageClassStandard should have comment (or a comment on this block) or be unexported (golint)
    • Line 141: warning: exported const AMZTimeFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 148: warning: exported const EmptyContentMD5String should have comment (or a comment on this block) or be unexported (golint)
    • Line 152: warning: exported const DefaultFileMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 157: warning: exported const SplitFileRangeBlockSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 163: warning: exported const MaxCopyObjectSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 167: warning: exported const MetadataDirectiveCopy should have comment (or a comment on this block) or be unexported (golint)
    • Line 172: warning: exported const TaggingCounts should have comment (or a comment on this block) or be unexported (golint)
    • chubaofs/objectnode/policy_statement.go
    • Line 25: warning: exported type Effect should have comment or be unexported (golint)
    • Line 26: warning: exported type Principal should have comment or be unexported (golint)
    • Line 27: warning: exported type Resource should have comment or be unexported (golint)
    • Line 30: warning: exported const Allow should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type Statement should have comment or be unexported (golint)
    • Line 45: warning: exported method Statement.Validate should have comment or be unexported (golint)
    • Line 55: warning: exported method Statement.IsAllowed should have comment or be unexported (golint)
    • Line 65: warning: exported type CheckFuncs should have comment or be unexported (golint)
    • chubaofs/fsck/cmd/check.go
    • Line 32: warning: exported const InodeCheckOpt should have comment (or a comment on this block) or be unexported (golint)
    • Line 94: warning: exported function Check should have comment or be unexported (golint)
    • chubaofs/util/config/config.go
    • Line 28: warning: exported const DefaultConstConfigFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 96: warning: comment on exported method Config.GetBoolWithDefault should be of the form "GetBoolWithDefault ..." (golint)
    • Line 122: warning: comment on exported method Config.GetInt should be of the form "GetInt ..." (golint)
    • Line 134: warning: comment on exported method Config.GetInt64 should be of the form "GetInt64 ..." (golint)
    • Line 164: warning: exported method Config.GetStringSlice should have comment or be unexported (golint)
    • Line 173: warning: comment on exported method Config.CheckAndGetString should be of the form "CheckAndGetString ..." (golint)
    • Line 185: warning: comment on exported method Config.CheckAndGetBool should be of the form "CheckAndGetBool ..." (golint)
    • Line 206: warning: exported function NewIllegalConfigError should have comment or be unexported (golint)
    • Line 210: warning: exported type ConstConfig should have comment or be unexported (golint)
    • Line 216: warning: exported method ConstConfig.Equals should have comment or be unexported (golint)
    • Line 222: warning: comment on exported function CheckOrStoreConstCfg should be of the form "CheckOrStoreConstCfg ..." (golint)
    • chubaofs/repl/repl_protocol.go
    • Line 64: warning: exported type FollowerTransport should have comment or be unexported (golint)
    • Line 74: warning: exported function NewFollowersTransport should have comment or be unexported (golint)
    • Line 173: warning: exported method FollowerTransport.Destory should have comment or be unexported (golint)
    • Line 192: warning: exported function NewReplProtocol should have comment or be unexported (golint)
    • Line 242: warning: comment on exported method ReplProtocol.ReceiveResponseFromFollowersGoRoutine should be of the form "ReceiveResponseFromFollowersGoRoutine ..." (golint)
    • chubaofs/objectnode/acl.go
    • Line 34: warning: comment on exported const ReadPermission should be of the form "ReadPermission ..." (golint)
    • Line 36: warning: exported const WritePermission should have comment (or a comment on this block) or be unexported (golint)
    • Line 93: warning: exported type StandardACL should have comment or be unexported (golint)
    • Line 96: warning: exported const PrivateACL should have comment (or a comment on this block) or be unexported (golint)
    • Line 106: warning: exported type ResourceType should have comment or be unexported (golint)
    • Line 113: warning: exported type AclRole should have comment or be unexported (golint)
    • Line 119: warning: exported const LogDeliveryRole should have comment (or a comment on this block) or be unexported (golint)
    • Line 135: warning: comment on exported type Permission should be of the form "Permission ..." (with optional leading article) (golint)
    • Line 138: warning: comment on exported type Grantee should be of the form "Grantee ..." (with optional leading article) (golint)
    • Line 150: warning: comment on exported type Grant should be of the form "Grant ..." (with optional leading article) (golint)
    • Line 156: warning: comment on exported type AccessControlList should be of the form "AccessControlList ..." (with optional leading article) (golint)
    • Line 161: warning: exported method AccessControlList.IsEmpty should have comment or be unexported (golint)
    • Line 165: warning: comment on exported type Owner should be of the form "Owner ..." (with optional leading article) (golint)
    • Line 171: warning: comment on exported type AccessControlPolicy should be of the form "AccessControlPolicy ..." (with optional leading article) (golint)
    • Line 178: warning: exported method AccessControlPolicy.IsAclEmpty should have comment or be unexported (golint)
    • Line 182: warning: exported method AccessControlPolicy.Validate should have comment or be unexported (golint)
    • Line 192: warning: exported method AccessControlPolicy.IsAllowed should have comment or be unexported (golint)
    • Line 222: warning: comment on exported method AccessControlPolicy.SetBucketStandardACL should be of the form "SetBucketStandardACL ..." (golint)
    • Line 251: warning: exported method AccessControlPolicy.SetBucketGrantACL should have comment or be unexported (golint)
    • Line 263: warning: exported method AccessControlPolicy.Marshal should have comment or be unexported (golint)
    • Line 271: warning: exported function ParseACL should have comment or be unexported (golint)
    • Line 305: warning: exported method Grant.Validate should have comment or be unexported (golint)
    • Line 309: warning: exported method Grant.IsAllowed should have comment or be unexported (golint)
    • chubaofs/objectnode/policy.go
    • Line 35: warning: exported type ActionType should have comment or be unexported (golint)
    • Line 46: warning: exported type Policy should have comment or be unexported (golint)
    • Line 52: warning: exported method Policy.IsEmpty should have comment or be unexported (golint)
    • Line 56: warning: comment on exported type Arn should be of the form "Arn ..." (with optional leading article) (golint)
    • Line 129: warning: exported function ParsePolicy should have comment or be unexported (golint)
    • Line 152: warning: exported method Policy.Validate should have comment or be unexported (golint)
    • Line 166: warning: comment on exported method Policy.IsAllowed should be of the form "IsAllowed ..." (golint)
    • chubaofs/objectnode/result.go
    • Line 23: warning: exported function MarshalXMLEntity should have comment or be unexported (golint)
    • Line 32: warning: exported function UnmarshalXMLEntity should have comment or be unexported (golint)
    • Line 40: warning: exported type CopyObjectResult should have comment or be unexported (golint)
    • Line 46: warning: exported type Deleted should have comment or be unexported (golint)
    • Line 54: warning: exported type Error should have comment or be unexported (golint)
    • Line 62: warning: exported type DeleteResult should have comment or be unexported (golint)
    • Line 68: warning: exported type InitMultipartResult should have comment or be unexported (golint)
    • Line 75: warning: exported type CompleteMultipartResult should have comment or be unexported (golint)
    • Line 83: warning: exported type BucketOwner should have comment or be unexported (golint)
    • Line 89: warning: exported type Upload should have comment or be unexported (golint)
    • Line 98: warning: exported type Part should have comment or be unexported (golint)
    • Line 106: warning: exported type ListPartsResult should have comment or be unexported (golint)
    • Line 120: warning: exported type CommonPrefix should have comment or be unexported (golint)
    • Line 125: warning: exported type ListUploadsResult should have comment or be unexported (golint)
    • Line 140: warning: exported type Content should have comment or be unexported (golint)
    • Line 149: warning: exported type ListBucketResult should have comment or be unexported (golint)
    • Line 162: warning: exported function NewParts should have comment or be unexported (golint)
    • Line 176: warning: exported function NewUploads should have comment or be unexported (golint)
    • Line 195: warning: exported function NewBucketOwner should have comment or be unexported (golint)
    • Line 202: warning: exported type Object should have comment or be unexported (golint)
    • Line 207: warning: exported type DeleteRequest should have comment or be unexported (golint)
    • Line 212: warning: exported type CopyResult should have comment or be unexported (golint)
    • Line 218: warning: exported type ListBucketResultV2 should have comment or be unexported (golint)
    • Line 232: warning: exported type Tag should have comment or be unexported (golint)
    • Line 237: warning: exported type Tagging should have comment or be unexported (golint)
    • Line 242: warning: exported method Tagging.Encode should have comment or be unexported (golint)
    • Line 250: warning: exported method Tagging.Validate should have comment or be unexported (golint)
    • Line 267: warning: exported function NewTagging should have comment or be unexported (golint)
    • Line 273: warning: exported function ParseTagging should have comment or be unexported (golint)
    • Line 291: warning: exported type XAttr should have comment or be unexported (golint)
    • Line 296: warning: exported type PutXAttrRequest should have comment or be unexported (golint)
    • Line 301: warning: exported type GetXAttrOutput should have comment or be unexported (golint)
    • Line 306: warning: exported type ListXAttrsOutput should have comment or be unexported (golint)
    • Line 311: warning: exported type PartRequest should have comment or be unexported (golint)
    • Line 317: warning: exported type CompleteMultipartUploadRequest should have comment or be unexported (golint)
    • chubaofs/repl/const.go
    • Line 18: warning: exported const RequestChanSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported const ReplProtocolError should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported const ActionSendToFollowers should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported const ConnIsNullErr should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported const ReplRuning should have comment (or a comment on this block) or be unexported (golint)
    • chubaofs/util/string.go
    • Line 23: warning: exported function SubString should have comment or be unexported (golint)
    • Line 36: warning: exported type RandomSeed should have comment or be unexported (golint)
    • Line 38: warning: exported method RandomSeed.Runes should have comment or be unexported (golint)
    • Line 53: warning: exported const Numeric should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported function RandomString should have comment or be unexported (golint)
    • chubaofs/console/service/monitor.go
    • Line 16: warning: exported type MonitorService should have comment or be unexported (golint)
    • Line 23: warning: exported function NewMonitorService should have comment or be unexported (golint)
    • Line 38: warning: exported method MonitorService.Dashboard should have comment or be unexported (golint)
    • Line 42: warning: exported method MonitorService.RangeQuery should have comment or be unexported (golint)
    • Line 42: warning: receiver name ms should be consistent with previous receiver name fs for MonitorService (golint)
    • Line 69: warning: exported method MonitorService.RangeQueryURL should have comment or be unexported (golint)
    • Line 69: warning: receiver name ms should be consistent with previous receiver name fs for MonitorService (golint)
    • Line 93: warning: exported method MonitorService.Query should have comment or be unexported (golint)
    • Line 93: warning: receiver name ms should be consistent with previous receiver name fs for MonitorService (golint)
    • Line 119: warning: exported type FuseClient should have comment or be unexported (golint)
    • Line 131: warning: exported type FuseRecord should have comment or be unexported (golint)
    • Line 136: warning: exported method MonitorService.FuseClientList should have comment or be unexported (golint)
    • Line 136: warning: receiver name ms should be consistent with previous receiver name fs for MonitorService (golint)
    • Line 182: warning: exported method MonitorService.Schema should have comment or be unexported (golint)
    • Line 182: warning: receiver name ms should be consistent with previous receiver name fs for MonitorService (golint)
    • chubaofs/master/data_node.go
    • Line 133: warning: exported method DataNode.GetID should have comment or be unexported (golint)
    • Line 139: warning: exported method DataNode.GetAddr should have comment or be unexported (golint)
    • chubaofs/cli/cmd/const.go
    • Line 18: warning: comment on exported const CliOpGet should be of the form "CliOpGet ..." (golint)
    • Line 20: warning: exported const CliOpList should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: comment on exported const CliOpDecommissionShortHand should be of the form "CliOpDecommissionShortHand ..." (golint)
    • Line 43: warning: comment on exported const CliResourceDataNode should be of the form "CliResourceDataNode ..." (golint)
    • Line 53: warning: comment on exported const CliFlagName should be of the form "CliFlagName ..." (golint)
    • Line 79: warning: comment on exported const ResourceDataNodeShortHand should be of the form "ResourceDataNodeShortHand ..." (golint)
    • Line 86: warning: exported type MasterOp should have comment or be unexported (golint)
    • Line 89: warning: exported const OpExpandVol should have comment (or a comment on this block) or be unexported (golint)
    • chubaofs/util/synclist/synclist.go
    • Line 22: warning: exported type SyncList should have comment or be unexported (golint)
    • Line 27: warning: exported function New should have comment or be unexported (golint)
    • Line 33: warning: exported method SyncList.Init should have comment or be unexported (golint)
    • Line 40: warning: exported method SyncList.Remove should have comment or be unexported (golint)
    • Line 46: warning: exported method SyncList.PushFront should have comment or be unexported (golint)
    • Line 52: warning: exported method SyncList.Back should have comment or be unexported (golint)
    • Line 58: warning: exported method SyncList.PushBack should have comment or be unexported (golint)
    • Line 64: warning: exported method SyncList.InsertBefore should have comment or be unexported (golint)
    • Line 70: warning: exported method SyncList.InsertAfter should have comment or be unexported (golint)
    • Line 76: warning: exported method SyncList.Len should have comment or be unexported (golint)
    • Line 82: warning: exported method SyncList.Front should have comment or be unexported (golint)
    • Line 88: warning: exported method SyncList.MoveToFront should have comment or be unexported (golint)
    • Line 94: warning: exported method SyncList.MoveToBack should have comment or be unexported (golint)
    • Line 100: warning: exported method SyncList.MoveBefore should have comment or be unexported (golint)
    • Line 106: warning: exported method SyncList.MoveAfter should have comment or be unexported (golint)
    • Line 112: warning: exported method SyncList.PushBackList should have comment or be unexported (golint)
    • Line 118: warning: exported method SyncList.PushFrontList should have comment or be unexported (golint)
    • chubaofs/sdk/meta/conn.go
    • Line 30: warning: exported const SendRetryLimit should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type MetaConn should have comment or be unexported (golint)
    • chubaofs/sdk/auth/api_object.go
    • Line 8: warning: exported type API should have comment or be unexported (golint)
    • Line 12: warning: exported method API.OSSAddCaps should have comment or be unexported (golint)
    • Line 25: warning: exported method API.OSSDeleteCaps should have comment or be unexported (golint)
    • Line 38: warning: exported method API.OSSGetCaps should have comment or be unexported (golint)
    • chubaofs/util/exporter/consul_register.go
    • Line 33: warning: exported const RegisterPeriod should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: comment on exported type ConsulRegisterInfo should be of the form "ConsulRegisterInfo ..." (with optional leading article) (golint)
    • Line 50: warning: comment on exported function GetConsulId should be of the form "GetConsulId ..." (golint)
    • Line 55: warning: comment on exported function DoConsulRegisterProc should be of the form "DoConsulRegisterProc ..." (golint)
    • chubaofs/sdk/master/client.go
    • Line 38: warning: exported var ErrNoValidMaster should have comment or be unexported (golint)
    • Line 41: warning: exported type MasterClient should have comment or be unexported (golint)
    • Line 69: warning: exported method MasterClient.AdminAPI should have comment or be unexported (golint)
    • Line 73: warning: exported method MasterClient.ClientAPI should have comment or be unexported (golint)
    • Line 77: warning: exported method MasterClient.NodeAPI should have comment or be unexported (golint)
    • Line 81: warning: exported method MasterClient.UserAPI should have comment or be unexported (golint)
    • Line 92: warning: comment on exported method MasterClient.SetTimeout should be of the form "SetTimeout ..." (golint)
    • Line 253: warning: comment on exported function NewMasterClient should be of the form "NewMasterClient ..." (golint)
    • chubaofs/storage/persistence_crc.go
    • Line 26: warning: exported type BlockCrc should have comment or be unexported (golint)
    • Line 30: warning: exported type BlockCrcArr should have comment or be unexported (golint)
    • Line 33: warning: exported const BaseExtentIDOffset should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type UpdateCrcFunc should have comment or be unexported (golint)
    • Line 41: warning: exported type GetExtentCrcFunc should have comment or be unexported (golint)
    • Line 43: warning: exported method ExtentStore.PersistenceBlockCrc should have comment or be unexported (golint)
    • Line 55: warning: exported method ExtentStore.DeleteBlockCrc should have comment or be unexported (golint)
    • Line 62: warning: exported method ExtentStore.PersistenceBaseExtentID should have comment or be unexported (golint)
    • Line 69: warning: exported method ExtentStore.GetPreAllocSpaceExtentIDOnVerfiyFile should have comment or be unexported (golint)
    • Line 79: warning: exported method ExtentStore.PreAllocSpaceOnVerfiyFile should have comment or be unexported (golint)
    • Line 103: warning: exported method ExtentStore.GetPersistenceBaseExtentID should have comment or be unexported (golint)
    • Line 113: warning: exported method ExtentStore.PersistenceHasDeleteExtent should have comment or be unexported (golint)
    • Line 122: warning: exported method ExtentStore.GetHasDeleteExtent should have comment or be unexported (golint)
    • chubaofs/datanode/partition.go
    • Line 46: warning: exported const DataPartitionPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: exported const RaftStatusStopped should have comment (or a comment on this block) or be unexported (golint)
    • Line 59: warning: exported type DataPartitionMetadata should have comment or be unexported (golint)
    • Line 84: warning: exported method DataPartitionMetadata.Validate should have comment or be unexported (golint)
    • Line 93: warning: exported type DataPartition should have comment or be unexported (golint)
    • Line 131: warning: exported function CreateDataPartition should have comment or be unexported (golint)
    • Line 154: warning: exported method DataPartition.IsEquareCreateDataPartitionRequst should have comment or be unexported (golint)
    • Line 177: warning: exported method DataPartition.ForceSetDataPartitionToLoadding should have comment or be unexported (golint)
    • Line 181: warning: exported method DataPartition.ForceSetDataPartitionToFininshLoad should have comment or be unexported (golint)
    • Line 185: warning: exported method DataPartition.ForceSetRaftRunning should have comment or be unexported (golint)
    • Line 295: warning: exported method DataPartition.GetExtentCount should have comment or be unexported (golint)
    • Line 299: warning: exported method DataPartition.Path should have comment or be unexported (golint)
    • Line 322: warning: exported method DataPartition.Replicas should have comment or be unexported (golint)
    • Line 351: warning: exported method DataPartition.IsExsitReplica should have comment or be unexported (golint)
    • Line 362: warning: exported method DataPartition.ReloadSnapshot should have comment or be unexported (golint)
    • Line 375: warning: comment on exported method DataPartition.SnapShot should be of the form "SnapShot ..." (golint)
    • Line 402: warning: exported method DataPartition.IsRejectWrite should have comment or be unexported (golint)
    • Line 426: warning: exported method DataPartition.ForceLoadHeader should have comment or be unexported (golint)
    • Line 554: warning: exported method DataPartition.ExtentStore should have comment or be unexported (golint)
    • Line 668: warning: exported method DataPartition.Load should have comment or be unexported (golint)
    • chubaofs/proto/user_proto.go
    • Line 24: warning: exported var AKRegexp should have comment or be unexported (golint)
    • Line 28: warning: exported type UserType should have comment or be unexported (golint)
    • Line 31: warning: exported const UserTypeInvalid should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported method UserType.Valid should have comment or be unexported (golint)
    • Line 61: warning: exported function UserTypeFromString should have comment or be unexported (golint)
    • Line 74: warning: exported function IsValidAK should have comment or be unexported (golint)
    • Line 77: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 82: warning: exported function IsValidSK should have comment or be unexported (golint)
    • Line 85: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 90: warning: exported type AKUser should have comment or be unexported (golint)
    • Line 96: warning: exported type UserInfo should have comment or be unexported (golint)
    • Line 116: warning: exported function NewUserInfo should have comment or be unexported (golint)
    • Line 120: warning: exported type VolUser should have comment or be unexported (golint)
    • Line 126: warning: exported type UserPolicy should have comment or be unexported (golint)
    • Line 132: warning: exported function NewUserPolicy should have comment or be unexported (golint)
    • Line 139: warning: exported method UserPolicy.IsOwn should have comment or be unexported (golint)
    • Line 150: warning: exported method UserPolicy.IsAuthorized should have comment or be unexported (golint)
    • Line 175: warning: exported method UserPolicy.AddOwnVol should have comment or be unexported (golint)
    • Line 186: warning: exported method UserPolicy.RemoveOwnVol should have comment or be unexported (golint)
    • Line 201: warning: exported method UserPolicy.AddAuthorizedVol should have comment or be unexported (golint)
    • Line 216: warning: exported method UserPolicy.RemoveAuthorizedVol should have comment or be unexported (golint)
    • Line 222: warning: exported method UserPolicy.SetPerm should have comment or be unexported (golint)
    • Line 228: warning: exported method UserPolicy.SetActions should have comment or be unexported (golint)
    • Line 238: warning: exported method UserPolicy.Add should have comment or be unexported (golint)
    • Line 251: warning: exported method UserPolicy.Delete should have comment or be unexported (golint)
    • Line 277: warning: exported function CleanPolicy should have comment or be unexported (golint)
    • Line 302: warning: exported type UserCreateParam should have comment or be unexported (golint)
    • Line 311: warning: exported type UserPermUpdateParam should have comment or be unexported (golint)
    • Line 318: warning: exported function NewUserPermUpdateParam should have comment or be unexported (golint)
    • Line 322: warning: exported method UserPermUpdateParam.SetPolicy should have comment or be unexported (golint)
    • Line 326: warning: exported type UserPermRemoveParam should have comment or be unexported (golint)
    • Line 331: warning: exported function NewUserPermRemoveParam should have comment or be unexported (golint)
    • Line 335: warning: exported type UserTransferVolParam should have comment or be unexported (golint)
    • Line 342: warning: exported type UserUpdateParam should have comment or be unexported (golint)
    • chubaofs/metanode/partition_fsmop_dentry.go
    • Line 25: warning: exported type DentryResponse should have comment or be unexported (golint)
    • Line 30: warning: exported function NewDentryResponse should have comment or be unexported (golint)
    • Line 118: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • chubaofs/sdk/master/api_admin.go
    • Line 25: warning: exported type AdminAPI should have comment or be unexported (golint)
    • Line 29: warning: exported method AdminAPI.GetCluster should have comment or be unexported (golint)
    • Line 41: warning: exported method AdminAPI.GetClusterStat should have comment or be unexported (golint)
    • Line 54: warning: exported method AdminAPI.ListZones should have comment or be unexported (golint)
    • Line 66: warning: exported method AdminAPI.Topo should have comment or be unexported (golint)
    • Line 79: warning: exported method AdminAPI.GetDataPartition should have comment or be unexported (golint)
    • Line 94: warning: exported method AdminAPI.DiagnoseDataPartition should have comment or be unexported (golint)
    • Line 107: warning: exported method AdminAPI.DiagnoseMetaPartition should have comment or be unexported (golint)
    • Line 120: warning: exported method AdminAPI.LoadDataPartition should have comment or be unexported (golint)
    • Line 130: warning: exported method AdminAPI.CreateDataPartition should have comment or be unexported (golint)
    • Line 140: warning: exported method AdminAPI.DecommissionDataPartition should have comment or be unexported (golint)
    • Line 150: warning: exported method AdminAPI.DecommissionMetaPartition should have comment or be unexported (golint)
    • Line 160: warning: exported method AdminAPI.DeleteDataReplica should have comment or be unexported (golint)
    • Line 170: warning: exported method AdminAPI.AddDataReplica should have comment or be unexported (golint)
    • Line 180: warning: exported method AdminAPI.DeleteMetaReplica should have comment or be unexported (golint)
    • Line 190: warning: exported method AdminAPI.AddMetaReplica should have comment or be unexported (golint)
    • Line 200: warning: exported method AdminAPI.DeleteVolume should have comment or be unexported (golint)
    • Line 210: warning: exported method AdminAPI.UpdateVolume should have comment or be unexported (golint)
    • Line 226: warning: exported method AdminAPI.VolShrink should have comment or be unexported (golint)
    • Line 237: warning: exported method AdminAPI.VolExpand should have comment or be unexported (golint)
    • Line 248: warning: exported method AdminAPI.CreateVolume should have comment or be unexported (golint)
    • Line 265: warning: exported method AdminAPI.CreateDefaultVolume should have comment or be unexported (golint)
    • Line 276: warning: exported method AdminAPI.GetVolumeSimpleInfo should have comment or be unexported (golint)
    • Line 290: warning: exported method AdminAPI.GetClusterInfo should have comment or be unexported (golint)
    • Line 303: warning: exported method AdminAPI.CreateMetaPartition should have comment or be unexported (golint)
    • Line 313: warning: exported method AdminAPI.ListVols should have comment or be unexported (golint)
    • Line 327: warning: exported method AdminAPI.IsFreezeCluster should have comment or be unexported (golint)
    • Line 336: warning: exported method AdminAPI.SetMetaNodeThreshold should have comment or be unexported (golint)
    • Line 345: warning: exported method AdminAPI.SetDeleteParas should have comment or be unexported (golint)
    • Line 358: warning: exported method AdminAPI.GetDeleteParas should have comment or be unexported (golint)
    • chubaofs/util/exporter/exporter.go
    • Line 35: warning: exported const PromHandlerPattern should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: comment on exported const Vol should be of the form "Vol ..." (golint)
    • Line 61: warning: exported var EnablePid should have comment or be unexported (golint)
    • Line 113: warning: comment on exported function InitWithRouter should be of the form "InitWithRouter ..." (golint)
    • Line 138: warning: exported function RegistConsul should have comment or be unexported (golint)
    • chubaofs/sdk/data/stream/extent_cache.go
    • Line 157: warning: exported method ExtentCache.RemoveDiscard should have comment or be unexported (golint)
    • Line 279: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 351: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • chubaofs/objectnode/api_context.go
    • Line 27: warning: exported const ContextKeyRequestID should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported function SetRequestID should have comment or be unexported (golint)
    • Line 37: warning: exported function GetRequestID should have comment or be unexported (golint)
    • Line 41: warning: exported function SetRequestAction should have comment or be unexported (golint)
    • Line 45: warning: exported function GetActionFromContext should have comment or be unexported (golint)
    • Line 49: warning: exported function SetResponseStatusCode should have comment or be unexported (golint)
    • Line 53: warning: exported function GetStatusCodeFromContext should have comment or be unexported (golint)
    • Line 61: warning: exported function SetResponseErrorMessage should have comment or be unexported (golint)
    • chubaofs/objectnode/signer.go
    • Line 27: warning: exported var SERVICE should have comment or be unexported (golint)
    • Line 28: warning: exported var SCHEME should have comment or be unexported (golint)
    • Line 29: warning: exported var ALGORITHM should have comment or be unexported (golint)
    • Line 30: warning: exported var TERMINATOR should have comment or be unexported (golint)
    • chubaofs/sdk/data/wrapper/default_random_selector.go
    • Line 28: warning: exported const DefaultRandomSelectorName should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported type DefaultRandomSelector should have comment or be unexported (golint)
    • Line 49: warning: exported method DefaultRandomSelector.Name should have comment or be unexported (golint)
    • Line 53: warning: exported method DefaultRandomSelector.Refresh should have comment or be unexported (golint)
    • Line 69: warning: exported method DefaultRandomSelector.Select should have comment or be unexported (golint)
    • Line 88: warning: exported method DefaultRandomSelector.RemoveDP should have comment or be unexported (golint)
    • chubaofs/client/fuse.go
    • Line 56: warning: exported const MaxReadAhead should have comment (or a comment on this block) or be unexported (golint)
    • Line 62: warning: exported const LoggerDir should have comment (or a comment on this block) or be unexported (golint)
    • Line 81: warning: exported var GlobalMountOptions should have comment or be unexported (golint)
    • chubaofs/proto/errors.go
    • Line 213: warning: exported function ParseErrorCode should have comment or be unexported (golint)
    • Line 282: warning: exported type GeneralResp should have comment or be unexported (golint)
    • Line 287: warning: exported function Success should have comment or be unexported (golint)
    • chubaofs/util/auth/auth.go
    • Line 3: warning: exported type TicketMess should have comment or be unexported (golint)
    • Line 10: warning: comment on exported type Ticket should be of the form "Ticket ..." (with optional leading article) (golint)
    • chubaofs/authnode/keystore_cache_op.go
    • Line 36: warning: exported method KeystoreFsm.PutAKInfo should have comment or be unexported (golint)
    • Line 44: warning: exported method KeystoreFsm.GetAKInfo should have comment or be unexported (golint)
    • Line 54: warning: exported method KeystoreFsm.DeleteAKInfo should have comment or be unexported (golint)
    • chubaofs/datanode/limit.go
    • Line 11: warning: exported var MaxExtentRepairLimit should have comment or be unexported (golint)
    • Line 69: warning: exported function DeleteLimiterWait should have comment or be unexported (golint)
    • chubaofs/proto/model.go
    • Line 22: warning: exported const DefaultZoneName should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: comment on exported type MetaNodeInfo should be of the form "MetaNodeInfo ..." (with optional leading article) (golint)
    • Line 45: warning: comment on exported type DataNodeInfo should be of the form "DataNodeInfo ..." (with optional leading article) (golint)
    • Line 66: warning: comment on exported type MetaPartitionInfo should be of the form "MetaPartitionInfo ..." (with optional leading article) (golint)
    • Line 87: warning: comment on exported type MetaReplicaInfo should be of the form "MetaReplicaInfo ..." (with optional leading article) (golint)
    • Line 122: warning: exported type BadPartitionView should have comment or be unexported (golint)
    • Line 127: warning: exported type ClusterStatInfo should have comment or be unexported (golint)
    • Line 133: warning: exported type ZoneStat should have comment or be unexported (golint)
    • Line 137: warning: exported type ZoneNodesStat should have comment or be unexported (golint)
    • Line 146: warning: exported type NodeStatInfo should have comment or be unexported (golint)
    • Line 153: warning: exported type VolStatInfo should have comment or be unexported (golint)
    • Line 161: warning: comment on exported type DataPartitionInfo should be of the form "DataPartitionInfo ..." (with optional leading article) (golint)
    • Line 207: warning: comment on exported type DataPartitionDiagnosis should be of the form "DataPartitionDiagnosis ..." (with optional leading article) (golint)
    • Line 215: warning: comment on exported type MetaPartitionDiagnosis should be of the form "MetaPartitionDiagnosis ..." (with optional leading article) (golint)
    • chubaofs/metanode/partition.go
    • Line 40: warning: exported var ErrIllegalHeartbeatAddress should have comment or be unexported (golint)
    • Line 124: warning: exported type OpExtend should have comment or be unexported (golint)
    • Line 152: warning: exported type OpMultipart should have comment or be unexported (golint)
    • chubaofs/util/exporter/timepoint.go
    • Line 24: warning: exported type TimePoint should have comment or be unexported (golint)
    • Line 29: warning: exported function NewTP should have comment or be unexported (golint)
    • Line 38: warning: exported method TimePoint.Set should have comment or be unexported (golint)
    • Line 47: warning: exported method TimePoint.SetWithLabels should have comment or be unexported (golint)
    • Line 55: warning: exported type TimePointCount should have comment or be unexported (golint)
    • Line 61: warning: exported function NewTPCnt should have comment or be unexported (golint)
    • Line 69: warning: comment on exported method TimePointCount.Set should be of the form "Set ..." (golint)
    • Line 76: warning: exported method TimePointCount.SetWithLabels should have comment or be unexported (golint)
    • chubaofs/metanode/extend.go
    • Line 25: warning: exported type Extend should have comment or be unexported (golint)
    • Line 31: warning: exported function NewExtend should have comment or be unexported (golint)
    • Line 35: warning: exported function NewExtendFromBytes should have comment or be unexported (golint)
    • Line 73: warning: exported method Extend.Less should have comment or be unexported (golint)
    • Line 78: warning: exported method Extend.Put should have comment or be unexported (golint)
    • Line 84: warning: exported method Extend.Get should have comment or be unexported (golint)
    • Line 91: warning: exported method Extend.Remove should have comment or be unexported (golint)
    • Line 98: warning: exported method Extend.Range should have comment or be unexported (golint)
    • Line 108: warning: exported method Extend.Merge should have comment or be unexported (golint)
    • Line 122: warning: exported method Extend.Copy should have comment or be unexported (golint)
    • Line 130: warning: exported method Extend.Bytes should have comment or be unexported (golint)
    • chubaofs/metanode/packet.go
    • Line 23: warning: exported type Packet should have comment or be unexported (golint)
    • Line 65: warning: comment on exported function NewPacketToFreeInodeOnRaftFollower should be of the form "NewPacketToFreeInodeOnRaftFollower ..." (golint)
    • chubaofs/master/gapi_volume.go
    • Line 16: warning: exported type VolumeService should have comment or be unexported (golint)
    • Line 21: warning: exported method VolumeService.Schema should have comment or be unexported (golint)
    • Line 103: warning: exported type UserPermission should have comment or be unexported (golint)
    • Line 124: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 234: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 268: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 368: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • chubaofs/objectnode/policy_action.go
    • Line 29: warning: comment on exported function ActionToUniqueRouteName should be of the form "ActionToUniqueRouteName ..." (golint)
    • Line 44: warning: exported function ActionFromRouteName should have comment or be unexported (golint)
    • Line 72: warning: comment on exported function IsIntersectionActions should be of the form "IsIntersectionActions ..." (golint)
    • chubaofs/objectnode/stringset.go
    • Line 34: warning: exported type StringSet should have comment or be unexported (golint)
    • Line 40: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 46: warning: exported method StringSet.MarshalJSON should have comment or be unexported (golint)
    • Line 51: warning: should omit 2nd value from range; this loop is equivalent to `for v := range ...` (golint)
    • Line 57: warning: exported method StringSet.UnmarshalJSON should have comment or be unexported (golint)
    • Line 83: warning: exported method StringSet.Empty should have comment or be unexported (golint)
    • Line 87: warning: exported method StringSet.ContainsWithAny should have comment or be unexported (golint)
    • Line 99: warning: exported method StringSet.Contains should have comment or be unexported (golint)
    • Line 104: warning: exported method StringSet.ContainsRegex should have comment or be unexported (golint)
    • Line 111: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 119: warning: exported method StringSet.ContainsWild should have comment or be unexported (golint)
    • Line 130: warning: exported method StringSet.Intersection should have comment or be unexported (golint)
    • Line 131: warning: should omit 2nd value from range; this loop is equivalent to `for s := range ...` (golint)
    • chubaofs/repl/packet.go
    • Line 33: warning: exported var ErrBadNodes should have comment or be unexported (golint)
    • Line 37: warning: exported type Packet should have comment or be unexported (golint)
    • Line 48: warning: exported type FollowerPacket should have comment or be unexported (golint)
    • Line 53: warning: exported function NewFollowerPacket should have comment or be unexported (golint)
    • Line 60: warning: exported method FollowerPacket.PackErrorBody should have comment or be unexported (golint)
    • Line 67: warning: exported method FollowerPacket.IsErrPacket should have comment or be unexported (golint)
    • Line 96: warning: exported method Packet.AfterTp should have comment or be unexported (golint)
    • Line 135: warning: exported method Packet.BeforeTp should have comment or be unexported (golint)
    • Line 172: warning: exported function NewPacket should have comment or be unexported (golint)
    • Line 180: warning: exported function NewPacketToGetAllWatermarks should have comment or be unexported (golint)
    • Line 191: warning: exported function NewPacketToReadTinyDeleteRecord should have comment or be unexported (golint)
    • Line 202: warning: exported function NewReadTinyDeleteRecordResponsePacket should have comment or be unexported (golint)
    • Line 213: warning: exported function NewExtentRepairReadPacket should have comment or be unexported (golint)
    • Line 227: warning: exported function NewTinyExtentRepairReadPacket should have comment or be unexported (golint)
    • Line 241: warning: exported function NewTinyExtentStreamReadResponsePacket should have comment or be unexported (golint)
    • Line 254: warning: exported function NewStreamReadResponsePacket should have comment or be unexported (golint)
    • Line 266: warning: exported function NewPacketToNotifyExtentRepair should have comment or be unexported (golint)
    • Line 277: warning: exported method Packet.IsErrPacket should have comment or be unexported (golint)
    • Line 286: warning: exported var ErrorUnknownOp should have comment or be unexported (golint)
    • Line 312: warning: exported method Packet.PackErrorBody should have comment or be unexported (golint)
    • Line 319: warning: exported method Packet.ReadFull should have comment or be unexported (golint)
    • Line 329: warning: exported method Packet.ReadFromConnFromCli should have comment or be unexported (golint)
    • Line 363: warning: exported method Packet.IsMasterCommand should have comment or be unexported (golint)
    • Line 379: warning: exported method Packet.IsForwardPacket should have comment or be unexported (golint)
    • Line 384: warning: comment on exported method Packet.IsLeaderPacket should be of the form "IsLeaderPacket ..." (golint)
    • Line 393: warning: exported method Packet.IsTinyExtentType should have comment or be unexported (golint)
    • Line 397: warning: exported method Packet.IsWriteOperation should have comment or be unexported (golint)
    • Line 401: warning: exported method Packet.IsCreateExtentOperation should have comment or be unexported (golint)
    • Line 405: warning: exported method Packet.IsMarkDeleteExtentOperation should have comment or be unexported (golint)
    • Line 409: warning: exported method Packet.IsBatchDeleteExtents should have comment or be unexported (golint)
    • Line 413: warning: exported method Packet.IsBroadcastMinAppliedID should have comment or be unexported (golint)
    • Line 417: warning: exported method Packet.IsReadOperation should have comment or be unexported (golint)
    • Line 423: warning: exported method Packet.IsRandomWrite should have comment or be unexported (golint)
    • Line 427: warning: exported method Packet.IsSyncWrite should have comment or be unexported (golint)
    • chubaofs/util/exporter/gauge.go
    • Line 26: warning: exported var GaugeGroup should have comment or be unexported (golint)
    • Line 40: warning: exported type Gauge should have comment or be unexported (golint)
    • Line 47: warning: exported function NewGauge should have comment or be unexported (golint)
    • Line 53: warning: exported method Gauge.Key should have comment or be unexported (golint)
    • Line 57: warning: exported method Gauge.Name should have comment or be unexported (golint)
    • Line 57: warning: receiver name g should be consistent with previous receiver name c for Gauge (golint)
    • Line 61: warning: receiver name g should be consistent with previous receiver name c for Gauge (golint)
    • Line 65: warning: exported method Gauge.Metric should have comment or be unexported (golint)
    • Line 92: warning: exported method Gauge.Set should have comment or be unexported (golint)
    • Line 92: warning: receiver name g should be consistent with previous receiver name c for Gauge (golint)
    • Line 107: warning: exported method Gauge.SetWithLabels should have comment or be unexported (golint)
    • Line 107: warning: receiver name g should be consistent with previous receiver name c for Gauge (golint)
    • Line 115: warning: exported type GaugeVec should have comment or be unexported (golint)
    • Line 119: warning: exported function NewGaugeVec should have comment or be unexported (golint)
    • Line 139: warning: exported method GaugeVec.SetWithLabelValues should have comment or be unexported (golint)
    • chubaofs/storage/extent_store.go
    • Line 43: warning: exported const ExtCrcHeaderFileName should have comment (or a comment on this block) or be unexported (golint)
    • Line 61: warning: exported var RegexpExtentFile should have comment or be unexported (golint)
    • Line 67: warning: exported function GetSnapShotFileFromPool should have comment or be unexported (golint)
    • Line 72: warning: exported function PutSnapShotFileToPool should have comment or be unexported (golint)
    • Line 76: warning: exported type ExtentFilter should have comment or be unexported (golint)
    • Line 132: warning: exported function MkdirAll should have comment or be unexported (golint)
    • Line 136: warning: exported function NewExtentStore should have comment or be unexported (golint)
    • Line 182: warning: exported method ExtentInfo.UpdateExtentInfo should have comment or be unexported (golint)
    • Line 430: warning: exported method ExtentStore.PutNormalExtentToDeleteCache should have comment or be unexported (golint)
    • Line 434: warning: exported method ExtentStore.IsDeletedNormalExtent should have comment or be unexported (golint)
    • Line 493: warning: exported method ExtentStore.GetStoreUsedSize should have comment or be unexported (golint)
    • Line 683: warning: comment on exported method ExtentStore.GetMaxExtentIDAndPartitionSize should be of the form "GetMaxExtentIDAndPartitionSize ..." (golint)
    • Line 701: warning: exported function MarshalTinyExtent should have comment or be unexported (golint)
    • Line 709: warning: exported function UnMarshalTinyExtent should have comment or be unexported (golint)
    • Line 716: warning: exported method ExtentStore.RecordTinyDelete should have comment or be unexported (golint)
    • Line 735: warning: exported method ExtentStore.ReadTinyDeleteRecords should have comment or be unexported (golint)
    • Line 744: warning: exported type ExtentDeleted should have comment or be unexported (golint)
    • Line 750: warning: exported method ExtentStore.GetHasDeleteTinyRecords should have comment or be unexported (golint)
    • Line 781: warning: exported method ExtentStore.LoadTinyDeleteFileOffset should have comment or be unexported (golint)
    • Line 878: warning: exported method ExtentStore.ScanBlocks should have comment or be unexported (golint)
    • Line 899: warning: exported type ExtentInfoArr should have comment or be unexported (golint)
    • Line 905: warning: exported method ExtentStore.BackendTask should have comment or be unexported (golint)
    • Line 979: warning: exported method ExtentStore.TinyExtentRecover should have comment or be unexported (golint)
    • Line 1004: warning: exported method ExtentStore.TinyExtentGetFinfoSize should have comment or be unexported (golint)
    • Line 1027: warning: exported method ExtentStore.TinyExtentAvaliOffset should have comment or be unexported (golint)
    • chubaofs/proto/packet.go
    • Line 34: warning: exported var GRequestID should have comment or be unexported (golint)
    • Line 44: warning: exported const AddrSplit should have comment (or a comment on this block) or be unexported (golint)
    • Line 161: warning: exported const WriteDeadlineTime should have comment (or a comment on this block) or be unexported (golint)
    • Line 170: warning: exported const TinyExtentType should have comment (or a comment on this block) or be unexported (golint)
    • Line 175: warning: exported const NormalCreateDataPartition should have comment (or a comment on this block) or be unexported (golint)
    • Line 233: warning: exported method Packet.GetOpMsgWithReqAndResult should have comment or be unexported (golint)
    • Line 435: warning: exported method Packet.GetReqID should have comment or be unexported (golint)
    • Line 616: warning: exported method Packet.SetPacketHasPrepare should have comment or be unexported (golint)
    • Line 621: warning: exported method Packet.SetPacketRePrepare should have comment or be unexported (golint)
    • Line 625: warning: exported method Packet.AddMesgLog should have comment or be unexported (golint)
    • Line 717: warning: comment on exported method Packet.ShouldRetry should be of the form "ShouldRetry ..." (golint)
    • Line 722: warning: exported method Packet.IsBatchDeleteExtents should have comment or be unexported (golint)
    • chubaofs/metanode/nodeinfo.go
    • Line 11: warning: exported const UpdateNodeInfoTicket should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type NodeInfo should have comment or be unexported (golint)
    • Line 25: warning: exported function DeleteBatchCount should have comment or be unexported (golint)
    • Line 41: warning: exported function DeleteWorkerSleepMs should have comment or be unexported (golint)
    • chubaofs/metanode/partition_item.go
    • Line 38: warning: comment on exported method MetaItem.MarshalJson should be of the form "MarshalJson ..." (golint)
    • Line 77: warning: comment on exported method MetaItem.UnmarshalBinary should be of the form "UnmarshalBinary ..." (golint)
    • chubaofs/util/exporter/histogram.go
    • Line 14: warning: exported var HistogramGroup should have comment or be unexported (golint)
    • Line 29: warning: exported type Histogram should have comment or be unexported (golint)
    • Line 36: warning: exported method Histogram.Key should have comment or be unexported (golint)
    • Line 40: warning: exported method Histogram.Name should have comment or be unexported (golint)
    • Line 40: warning: receiver name g should be consistent with previous receiver name c for Histogram (golint)
    • Line 44: warning: receiver name g should be consistent with previous receiver name c for Histogram (golint)
    • Line 48: warning: exported method Histogram.Metric should have comment or be unexported (golint)
    • Line 83: warning: receiver name h should be consistent with previous receiver name c for Histogram (golint)
    • chubaofs/console/service/login.go
    • Line 14: warning: exported type LoginService should have comment or be unexported (golint)
    • Line 19: warning: exported function NewLoginService should have comment or be unexported (golint)
    • Line 26: warning: exported type UserToken should have comment or be unexported (golint)
    • Line 57: warning: exported method LoginService.Schema should have comment or be unexported (golint)
    • Line 66: warning: exported const ADMIN should have comment or be unexported (golint)
    • Line 67: warning: exported const USER should have comment or be unexported (golint)
    • chubaofs/proto/admin_proto.go
    • Line 121: warning: exported const TimeFormat should have comment or be unexported (golint)
    • Line 398: warning: exported function NewDataPartitionsView should have comment or be unexported (golint)
    • Line 418: warning: exported type OSSSecure should have comment or be unexported (golint)
    • Line 436: warning: exported method VolView.SetOwner should have comment or be unexported (golint)
    • Line 440: warning: exported method VolView.SetOSSSecure should have comment or be unexported (golint)
    • Line 444: warning: exported function NewVolView should have comment or be unexported (golint)
    • Line 455: warning: exported function NewMetaPartitionView should have comment or be unexported (golint)
    • Line 494: warning: exported type NodeSetInfo should have comment or be unexported (golint)
    • Line 507: warning: exported type SimpleNodeSetGrpInfo should have comment or be unexported (golint)
    • Line 513: warning: exported type SimpleNodeSetGrpInfoList should have comment or be unexported (golint)
    • Line 528: warning: exported type VolInfo should have comment or be unexported (golint)
    • Line 537: warning: exported function NewVolInfo should have comment or be unexported (golint)
    • Line 555: warning: exported type NodeSetView should have comment or be unexported (golint)
    • chubaofs/master/mocktest/util.go
    • Line 13: warning: exported const ColonSeparator should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported function PostToMaster should have comment or be unexported (golint)
    • chubaofs/client/fs/inode.go
    • Line 27: warning: exported const LogTimeFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported method Super.InodeGet should have comment or be unexported (golint)
    • Line 41: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • chubaofs/datanode/metric.go
    • Line 24: warning: exported const MetricPartitionIOName should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type DataNodeMetrics should have comment or be unexported (golint)
    • Line 37: warning: exported function GetIoMetricLabels should have comment or be unexported (golint)
    • chubaofs/proto/perm_action.go
    • Line 28: warning: exported type Action should have comment or be unexported (golint)
    • Line 34: warning: exported method Action.IsNone should have comment or be unexported (golint)
    • Line 38: warning: exported method Action.Name should have comment or be unexported (golint)
    • Line 47: warning: exported const ActionPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: comment on exported const OSSGetObjectAction should be of the form "OSSGetObjectAction ..." (golint)
    • Line 60: warning: comment on exported const OSSCreateBucketAction should be of the form "OSSCreateBucketAction ..." (golint)
    • Line 66: warning: comment on exported const OSSGetBucketPolicyAction should be of the form "OSSGetBucketPolicyAction ..." (golint)
    • Line 72: warning: comment on exported const OSSGetBucketAclAction should be of the form "OSSGetBucketAclAction ..." (golint)
    • Line 76: warning: comment on exported const OSSGetBucketCorsAction should be of the form "OSSGetBucketCorsAction ..." (golint)
    • Line 82: warning: comment on exported const OSSGetObjectTorrentAction should be of the form "OSSGetObjectTorrentAction ..." (golint)
    • Line 85: warning: comment on exported const OSSGetObjectAclAction should be of the form "OSSGetObjectAclAction ..." (golint)
    • Line 89: warning: comment on exported const OSSCreateMultipartUploadAction should be of the form "OSSCreateMultipartUploadAction ..." (golint)
    • Line 98: warning: comment on exported const OSSGetBucketLocationAction should be of the form "OSSGetBucketLocationAction ..." (golint)
    • Line 101: warning: comment on exported const OSSGetObjectXAttrAction should be of the form "OSSGetObjectXAttrAction ..." (golint)
    • Line 107: warning: comment on exported const OSSGetObjectTaggingAction should be of the form "OSSGetObjectTaggingAction ..." (golint)
    • Line 112: warning: comment on exported const OSSGetBucketTaggingAction should be of the form "OSSGetBucketTaggingAction ..." (golint)
    • Line 117: warning: comment on exported const OSSGetBucketLifecycleAction should be of the form "OSSGetBucketLifecycleAction ..." (golint)
    • Line 122: warning: comment on exported const OSSGetBucketVersioningAction should be of the form "OSSGetBucketVersioningAction ..." (golint)
    • Line 127: warning: comment on exported const OSSGetObjectLegalHoldAction should be of the form "OSSGetObjectLegalHoldAction ..." (golint)
    • Line 131: warning: comment on exported const OSSGetObjectRetentionAction should be of the form "OSSGetObjectRetentionAction ..." (golint)
    • Line 135: warning: comment on exported const OSSGetBucketEncryptionAction should be of the form "OSSGetBucketEncryptionAction ..." (golint)
    • Line 140: warning: comment on exported const OSSGetBucketWebsiteAction should be of the form "OSSGetBucketWebsiteAction ..." (golint)
    • Line 145: warning: comment on exported const OSSRestoreObjectAction should be of the form "OSSRestoreObjectAction ..." (golint)
    • Line 148: warning: comment on exported const OSSGetPublicAccessBlockAction should be of the form "OSSGetPublicAccessBlockAction ..." (golint)
    • Line 153: warning: comment on exported const OSSGetBucketRequestPaymentAction should be of the form "OSSGetBucketRequestPaymentAction ..." (golint)
    • Line 157: warning: comment on exported const OSSGetBucketReplicationAction should be of the form "OSSGetBucketReplicationAction ..." (golint)
    • Line 162: warning: comment on exported const POSIXReadAction should be of the form "POSIXReadAction ..." (golint)
    • Line 170: warning: exported var AllActions should have comment or be unexported (golint)
    • Line 246: warning: exported function ParseAction should have comment or be unexported (golint)
    • Line 258: warning: exported type Actions should have comment or be unexported (golint)
    • Line 260: warning: exported method Actions.Contains should have comment or be unexported (golint)
    • Line 272: warning: exported method Actions.Len should have comment or be unexported (golint)
    • Line 276: warning: exported type Permission should have comment or be unexported (golint)
    • Line 282: warning: exported method Permission.ReadableString should have comment or be unexported (golint)
    • Line 295: warning: exported method Permission.IsBuiltin should have comment or be unexported (golint)
    • Line 299: warning: exported method Permission.MatchSubdir should have comment or be unexported (golint)
    • Line 339: warning: exported method Permission.IsCustom should have comment or be unexported (golint)
    • Line 343: warning: exported method Permission.Valid should have comment or be unexported (golint)
    • Line 347: warning: exported method Permission.IsNone should have comment or be unexported (golint)
    • Line 352: warning: comment on exported const PermissionPrefix should be of the form "PermissionPrefix ..." (golint)
    • Line 354: warning: exported const BuiltinPermissionPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 357: warning: comment on exported const BuiltinPermissionReadOnly should be of the form "BuiltinPermissionReadOnly ..." (golint)
    • Line 361: warning: comment on exported const NonePermission should be of the form "NonePermission ..." (golint)
    • Line 374: warning: exported function ParsePermission should have comment or be unexported (golint)
    • Line 381: warning: exported function NewCustomPermission should have comment or be unexported (golint)
    • Line 444: warning: exported function BuiltinPermissionActions should have comment or be unexported (golint)
    • chubaofs/master/const.go
    • Line 74: warning: exported const LRUCacheSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 95: warning: exported const EmptyCrcValue should have comment (or a comment on this block) or be unexported (golint)
    • Line 173: warning: exported const DomainPrefix should have comment (or a comment on this block) or be unexported (golint)
    • chubaofs/objectnode/server.go
    • Line 95: warning: exported type ObjectNode should have comment or be unexported (golint)
    • Line 115: warning: exported method ObjectNode.Start should have comment or be unexported (golint)
    • Line 119: warning: exported method ObjectNode.Shutdown should have comment or be unexported (golint)
    • Line 123: warning: exported method ObjectNode.Sync should have comment or be unexported (golint)
    • Line 265: warning: exported function NewServer should have comment or be unexported (golint)
    • chubaofs/sdk/data/wrapper/data_partition.go
    • Line 52: warning: exported method DataPartition.RecordWrite should have comment or be unexported (golint)
    • Line 68: warning: exported method DataPartition.MetricsRefresh should have comment or be unexported (golint)
    • Line 90: warning: exported method DataPartition.GetAvgRead should have comment or be unexported (golint)
    • Line 97: warning: exported method DataPartition.GetAvgWrite should have comment or be unexported (golint)
    • Line 104: warning: exported type DataPartitionSorter should have comment or be unexported (golint)
    • Line 128: warning: exported method DataPartition.CheckAllHostsIsAvail should have comment or be unexported (golint)
    • chubaofs/master/cluster.go
    • Line 126: warning: exported const TypeMetaPartion should have comment (or a comment on this block) or be unexported (golint)
    • Line 1870: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • chubaofs/master/mocktest/meta_server.go
    • Line 31: warning: exported type MockMetaServer should have comment or be unexported (golint)
    • Line 40: warning: exported function NewMockMetaServer should have comment or be unexported (golint)
    • Line 49: warning: exported method MockMetaServer.Start should have comment or be unexported (golint)
    • chubaofs/cli/cmd/config.go
    • Line 46: warning: exported type Config should have comment or be unexported (golint)
    • Line 147: warning: exported function LoadConfig should have comment or be unexported (golint)
    • chubaofs/proto/extent_key.go
    • Line 29: warning: exported var ExtentKeyHeader should have comment or be unexported (golint)
    • Line 34: warning: error var InvalidKey should have name of the form ErrFoo (golint)
    • Line 35: warning: error var InvalidKeyHeader should have name of the form ErrFoo (golint)
    • Line 36: warning: error var InvalidKeyCheckSum should have name of the form ErrFoo (golint)
    • Line 60: warning: comment on exported method ExtentKey.Copy should be of the form "Copy ..." (golint)
    • Line 65: warning: exported method ExtentKey.Marshal should have comment or be unexported (golint)
    • Line 116: warning: exported method ExtentKey.CheckSum should have comment or be unexported (golint)
    • Line 128: warning: comment on exported method ExtentKey.MarshalBinaryWithCheckSum should be of the form "MarshalBinaryWithCheckSum ..." (golint)
    • Line 158: warning: comment on exported method ExtentKey.UnmarshalBinaryWithCheckSum should be of the form "UnmarshalBinaryWithCheckSum ..." (golint)
    • Line 198: warning: comment on exported method ExtentKey.UnMarshal should be of the form "UnMarshal ..." (golint)
    • Line 204: warning: comment on exported method ExtentKey.GetExtentKey should be of the form "GetExtentKey ..." (golint)
    • Line 209: warning: exported type TinyExtentDeleteRecord should have comment or be unexported (golint)
    • chubaofs/master/meta_node.go
    • Line 61: warning: exported method MetaNode.GetID should have comment or be unexported (golint)
    • Line 67: warning: exported method MetaNode.GetAddr should have comment or be unexported (golint)
    • chubaofs/sdk/master/api_user.go
    • Line 10: warning: exported type UserAPI should have comment or be unexported (golint)
    • Line 14: warning: exported method UserAPI.CreateUser should have comment or be unexported (golint)
    • Line 32: warning: exported method UserAPI.DeleteUser should have comment or be unexported (golint)
    • Line 41: warning: exported method UserAPI.UpdateUser should have comment or be unexported (golint)
    • Line 59: warning: exported method UserAPI.GetAKInfo should have comment or be unexported (golint)
    • Line 73: warning: exported method UserAPI.GetUserInfo should have comment or be unexported (golint)
    • Line 87: warning: exported method UserAPI.UpdatePolicy should have comment or be unexported (golint)
    • Line 105: warning: exported method UserAPI.RemovePolicy should have comment or be unexported (golint)
    • Line 123: warning: exported method UserAPI.DeleteVolPolicy should have comment or be unexported (golint)
    • Line 132: warning: exported method UserAPI.TransferVol should have comment or be unexported (golint)
    • Line 150: warning: exported method UserAPI.ListUsers should have comment or be unexported (golint)
    • Line 164: warning: exported method UserAPI.ListUsersOfVol should have comment or be unexported (golint)
    • chubaofs/util/conn_pool.go
    • Line 23: warning: exported type Object should have comment or be unexported (golint)
    • Line 29: warning: exported const ConnectIdleTime should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type ConnectPool should have comment or be unexported (golint)
    • Line 44: warning: exported function NewConnectPool should have comment or be unexported (golint)
    • Line 58: warning: exported function NewConnectPoolWithTimeout should have comment or be unexported (golint)
    • Line 72: warning: exported function DailTimeOut should have comment or be unexported (golint)
    • Line 84: warning: exported method ConnectPool.GetConnect should have comment or be unexported (golint)
    • Line 101: warning: exported method ConnectPool.PutConnect should have comment or be unexported (golint)
    • Line 163: warning: exported method ConnectPool.Close should have comment or be unexported (golint)
    • Line 170: warning: exported type Pool should have comment or be unexported (golint)
    • Line 179: warning: exported function NewPool should have comment or be unexported (golint)
    • Line 204: warning: exported method Pool.PutConnectObjectToPool should have comment or be unexported (golint)
    • Line 232: warning: exported method Pool.ReleaseAll should have comment or be unexported (golint)
    • Line 244: warning: exported method Pool.NewConnect should have comment or be unexported (golint)
    • Line 256: warning: exported method Pool.GetConnectFromPool should have comment or be unexported (golint)
    • chubaofs/datanode/wrap_operator.go
    • Line 59: warning: exported method DataNode.OperatePacket should have comment or be unexported (golint)
    • Line 271: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • chubaofs/objectnode/auth_signature_v4.go
    • Line 37: warning: exported const SignatureExpires should have comment (or a comment on this block) or be unexported (golint)
    • Line 61: warning: exported var PresignedSignatureV4Queries should have comment or be unexported (golint)
    • Line 66: warning: exported var AuthSignatureV4Headers should have comment or be unexported (golint)
    • chubaofs/objectnode/auth.go
    • Line 21: warning: exported type AuthType should have comment or be unexported (golint)
    • Line 24: warning: exported const SignatrueV2 should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type RequestAuthInfo should have comment or be unexported (golint)
    • chubaofs/sdk/graphql/general.go
    • Line 29: warning: exported type Struct should have comment or be unexported (golint)
    • Line 44: warning: exported method Struct.GraphqlFields should have comment or be unexported (golint)
    • Line 70: warning: exported type Field should have comment or be unexported (golint)
    • Line 76: warning: exported method Field.FieldString should have comment or be unexported (golint)
    • Line 90: warning: exported type Function should have comment or be unexported (golint)
    • Line 179: warning: exported method Function.VarParam should have comment or be unexported (golint)
    • Line 190: warning: comment on exported method Function.VarParamValue should be of the form "VarParamValue ..." (golint)
    • chubaofs/client/fs/super.go
    • Line 158: warning: exported method Super.GetRate should have comment or be unexported (golint)
    • Line 162: warning: exported method Super.SetRate should have comment or be unexported (golint)
    • chubaofs/storage/error.go
    • Line 23: warning: error var ExtentHasBeenDeletedError should have name of the form ErrFoo (golint)
    • Line 23: warning: exported var ExtentHasBeenDeletedError should have comment or be unexported (golint)
    • Line 24: warning: error var ParameterMismatchError should have name of the form ErrFoo (golint)
    • Line 25: warning: error var NoAvailableExtentError should have name of the form ErrFoo (golint)
    • Line 26: warning: error var NoBrokenExtentError should have name of the form ErrFoo (golint)
    • Line 27: warning: error var NoSpaceError should have name of the form ErrFoo (golint)
    • Line 28: warning: error var TryAgainError should have name of the form ErrFoo (golint)
    • Line 29: warning: error var CrcMismatchError should have name of the form ErrFoo (golint)
    • Line 30: warning: error var NoLeaderError should have name of the form ErrFoo (golint)
    • Line 31: warning: error var ExtentNotFoundError should have name of the form ErrFoo (golint)
    • Line 32: warning: error var ExtentExistsError should have name of the form ErrFoo (golint)
    • Line 33: warning: error var ExtentIsFullError should have name of the form ErrFoo (golint)
    • Line 34: warning: error var BrokenExtentError should have name of the form ErrFoo (golint)
    • Line 35: warning: error var BrokenDiskError should have name of the form ErrFoo (golint)
    • Line 38: warning: exported function NewParameterMismatchErr should have comment or be unexported (golint)
    • chubaofs/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 60: warning: exported function InitUmp should have comment or be unexported (golint)
    • Line 76: warning: exported function BeforeTP should have comment or be unexported (golint)
    • Line 92: warning: exported function AfterTP should have comment or be unexported (golint)
    • Line 111: warning: exported function Alive should have comment or be unexported (golint)
    • Line 126: warning: exported function Alarm should have comment or be unexported (golint)
    • chubaofs/datanode/disk.go
    • Line 40: warning: exported const ExpiredPartitionPrefix should have comment or be unexported (golint)
    • Line 67: warning: exported const SyncTinyDeleteRecordFromLeaderOnEveryDisk should have comment (or a comment on this block) or be unexported (golint)
    • Line 70: warning: exported type PartitionVisitor should have comment or be unexported (golint)
    • Line 72: warning: exported function NewDisk should have comment or be unexported (golint)
    • Line 193: warning: exported const DiskStatusFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 280: warning: exported method Disk.ForceExitRaftStore should have comment or be unexported (golint)
    • Line 403: warning: exported method Disk.AddSize should have comment or be unexported (golint)
    • chubaofs/metanode/sorted_extents.go
    • Line 11: warning: exported type SortedExtents should have comment or be unexported (golint)
    • Line 16: warning: exported function NewSortedExtents should have comment or be unexported (golint)
    • Line 32: warning: exported method SortedExtents.MarshalBinary should have comment or be unexported (golint)
    • Line 48: warning: exported method SortedExtents.UnmarshalBinary should have comment or be unexported (golint)
    • Line 68: warning: exported method SortedExtents.Append should have comment or be unexported (golint)
    • Line 123: warning: exported method SortedExtents.AppendWithCheck should have comment or be unexported (golint)
    • Line 195: warning: exported method SortedExtents.Truncate should have comment or be unexported (golint)
    • Line 227: warning: exported method SortedExtents.Len should have comment or be unexported (golint)
    • Line 233: warning: comment on exported method SortedExtents.Size should be of the form "Size ..." (golint)
    • Line 245: warning: exported method SortedExtents.Range should have comment or be unexported (golint)
    • Line 256: warning: exported method SortedExtents.Clone should have comment or be unexported (golint)
    • Line 266: warning: exported method SortedExtents.CopyExtents should have comment or be unexported (golint)
    • chubaofs/fsck/cmd/common.go
    • Line 22: warning: exported var MasterAddr should have comment or be unexported (golint)
    • Line 37: warning: exported type Inode should have comment or be unexported (golint)
    • Line 58: warning: exported type Dentry should have comment or be unexported (golint)
    • chubaofs/sdk/master/api_client.go
    • Line 25: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 27: warning: exported method Decoder.Decode should have comment or be unexported (golint)
    • Line 31: warning: exported type ClientAPI should have comment or be unexported (golint)
    • Line 35: warning: exported method ClientAPI.GetVolume should have comment or be unexported (golint)
    • Line 50: warning: exported method ClientAPI.GetVolumeWithoutAuthKey should have comment or be unexported (golint)
    • Line 65: warning: exported method ClientAPI.GetVolumeWithAuthnode should have comment or be unexported (golint)
    • Line 86: warning: exported method ClientAPI.GetVolumeStat should have comment or be unexported (golint)
    • Line 100: warning: exported method ClientAPI.GetMetaPartition should have comment or be unexported (golint)
    • Line 114: warning: exported method ClientAPI.GetMetaPartitions should have comment or be unexported (golint)
    • Line 127: warning: exported method ClientAPI.GetDataPartitions should have comment or be unexported (golint)
    • chubaofs/sdk/meta/meta.go
    • Line 35: warning: exported const HostsSeparator should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported const MaxMountRetryLimit should have comment (or a comment on this block) or be unexported (golint)
    • Line 56: warning: comment on exported const MinForceUpdateMetaPartitionsInterval should be of the form "MinForceUpdateMetaPartitionsInterval ..." (golint)
    • Line 63: warning: exported type AsyncTaskErrorFunc should have comment or be unexported (golint)
    • Line 65: warning: exported method AsyncTaskErrorFunc.OnError should have comment or be unexported (golint)
    • Line 71: warning: exported type MetaConfig should have comment or be unexported (golint)
    • Line 81: warning: exported type MetaWrapper should have comment or be unexported (golint)
    • Line 131: warning: comment on exported type Ticket should be of the form "Ticket ..." (with optional leading article) (golint)
    • Line 139: warning: exported function NewMetaWrapper should have comment or be unexported (golint)
    • Line 213: warning: exported method MetaWrapper.Owner should have comment or be unexported (golint)
    • Line 217: warning: exported method MetaWrapper.OSSSecure should have comment or be unexported (golint)
    • Line 221: warning: exported method MetaWrapper.VolCreateTime should have comment or be unexported (golint)
    • Line 225: warning: exported method MetaWrapper.Close should have comment or be unexported (golint)
    • Line 233: warning: exported method MetaWrapper.Cluster should have comment or be unexported (golint)
    • Line 237: warning: exported method MetaWrapper.LocalIP should have comment or be unexported (golint)
    • chubaofs/storage/extent.go
    • Line 35: warning: exported const ExtentOpenOpt should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported const ExtentMaxSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported type ExtentInfo should have comment or be unexported (golint)
    • Line 85: warning: exported method Extent.HasClosed should have comment or be unexported (golint)
    • Line 100: warning: exported method Extent.Exist should have comment or be unexported (golint)
    • Line 172: warning: exported function IsRandomWrite should have comment or be unexported (golint)
    • Line 176: warning: exported function IsAppendWrite should have comment or be unexported (golint)
    • Line 332: warning: exported const PageSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 371: warning: exported method Extent.TinyExtentRecover should have comment or be unexported (golint)
    • chubaofs/master/http_server.go
    • Line 327: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 334: warning: exported function ErrResponse should have comment or be unexported (golint)
    • chubaofs/proto/mount_options.go
    • Line 61: warning: exported type MountOption should have comment or be unexported (golint)
    • Line 72: warning: exported function NewMountOptions should have comment or be unexported (golint)
    • Line 77: warning: exported function InitMountOptions should have comment or be unexported (golint)
    • Line 121: warning: exported function ParseMountOptions should have comment or be unexported (golint)
    • Line 187: warning: exported method MountOption.GetString should have comment or be unexported (golint)
    • Line 195: warning: exported method MountOption.GetBool should have comment or be unexported (golint)
    • Line 203: warning: exported method MountOption.GetInt64 should have comment or be unexported (golint)
    • Line 211: warning: exported type MountOptions should have comment or be unexported (golint)
    • chubaofs/proto/version.go
    • Line 9: warning: exported var Version should have comment or be unexported (golint)
    • Line 15: warning: exported function DumpVersion should have comment or be unexported (golint)
    • chubaofs/cmd/common/server.go
    • Line 11: warning: exported const StateStandby should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type Control should have comment or be unexported (golint)
    • Line 23: warning: exported type Server should have comment or be unexported (golint)
    • Line 30: warning: exported type DoStartFunc should have comment or be unexported (golint)
    • Line 31: warning: exported type DoShutdownFunc should have comment or be unexported (golint)
    • Line 33: warning: exported method Control.Start should have comment or be unexported (golint)
    • Line 53: warning: exported method Control.Shutdown should have comment or be unexported (golint)
    • Line 62: warning: exported method Control.Sync should have comment or be unexported (golint)
    • chubaofs/sdk/data/wrapper/k_faster_random_selector.go
    • Line 28: warning: exported const KFasterRandomSelectorName should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported type KFasterRandomSelector should have comment or be unexported (golint)
    • Line 60: warning: exported method KFasterRandomSelector.Name should have comment or be unexported (golint)
    • Line 64: warning: exported method KFasterRandomSelector.Refresh should have comment or be unexported (golint)
    • Line 76: warning: exported method KFasterRandomSelector.Select should have comment or be unexported (golint)
    • Line 124: warning: exported method KFasterRandomSelector.RemoveDP should have comment or be unexported (golint)
    • chubaofs/sdk/graphql/client/login_client.go
    • Line 15: warning: exported type MasterGClient should have comment or be unexported (golint)
    • Line 20: warning: exported function NewMasterGClient should have comment or be unexported (golint)
    • Line 24: warning: exported type UserToken should have comment or be unexported (golint)
    • Line 30: warning: exported method MasterGClient.ValidatePassword should have comment or be unexported (golint)
    • Line 67: warning: exported type Result should have comment or be unexported (golint)
    • Line 69: warning: exported method Result.GetValue should have comment or be unexported (golint)
    • Line 87: warning: exported method Result.GetValueByType should have comment or be unexported (golint)
    • Line 113: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 119: warning: exported type Request should have comment or be unexported (golint)
    • Line 125: warning: exported method Request.Hander should have comment or be unexported (golint)
    • Line 132: warning: exported method Request.Var should have comment or be unexported (golint)
    • Line 139: warning: exported function NewRequest should have comment or be unexported (golint)
    • Line 158: warning: exported type Response should have comment or be unexported (golint)
    • Line 164: warning: exported method MasterGClient.Query should have comment or be unexported (golint)
    • Line 176: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 210: warning: exported method MasterGClient.Proxy should have comment or be unexported (golint)
    • Line 228: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • chubaofs/sdk/auth/client.go
    • Line 34: warning: exported const RequestMaxRetry should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type AuthClient should have comment or be unexported (golint)
    • Line 47: warning: exported method AuthClient.API should have comment or be unexported (golint)
    • Line 53: warning: exported function NewAuthClient should have comment or be unexported (golint)
    • chubaofs/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 BlockCount should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported const DefaultTinySizeLimit should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported function Min should have comment or be unexported (golint)
    • Line 51: warning: exported function Max should have comment or be unexported (golint)
    • chubaofs/datanode/const.go
    • Line 18: warning: exported const IntervalToUpdateReplica should have comment (or a comment on this block) or be unexported (golint)
    • Line 78: warning: exported const MinAvaliTinyExtentCnt should have comment (or a comment on this block) or be unexported (golint)
    • Line 87: warning: exported const RepairRead should have comment (or a comment on this block) or be unexported (golint)
    • Line 92: warning: exported const BufferWrite should have comment (or a comment on this block) or be unexported (golint)
    • Line 96: warning: exported const EmptyResponse should have comment (or a comment on this block) or be unexported (golint)
    • chubaofs/sdk/data/stream/extent_client.go
    • Line 31: warning: exported type AppendExtentKeyFunc should have comment or be unexported (golint)
    • Line 32: warning: exported type GetExtentsFunc should have comment or be unexported (golint)
    • Line 33: warning: exported type TruncateFunc should have comment or be unexported (golint)
    • Line 34: warning: exported type EvictIcacheFunc should have comment or be unexported (golint)
    • Line 37: warning: exported const MaxMountRetryLimit should have comment (or a comment on this block) or be unexported (golint)
    • Line 79: warning: exported type ExtentConfig should have comment or be unexported (golint)
    • Line 117: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 150: warning: comment on exported method ExtentClient.OpenStream should be of the form "OpenStream ..." (golint)
    • Line 161: warning: comment on exported method ExtentClient.CloseStream should be of the form "CloseStream ..." (golint)
    • Line 172: warning: comment on exported method ExtentClient.EvictStream should be of the form "EvictStream ..." (golint)
    • Line 241: warning: exported method ExtentClient.Truncate should have comment or be unexported (golint)
    • Line 256: warning: exported method ExtentClient.Flush should have comment or be unexported (golint)
    • Line 299: warning: exported method ExtentClient.GetRate should have comment or be unexported (golint)
    • Line 311: warning: exported method ExtentClient.SetReadRate should have comment or be unexported (golint)
    • Line 315: warning: exported method ExtentClient.SetWriteRate should have comment or be unexported (golint)
    • Line 328: warning: exported method ExtentClient.Close should have comment or be unexported (golint)
    • Line 333: warning: should omit 2nd value from range; this loop is equivalent to `for inode := range ...` (golint)
    • chubaofs/master/user.go
    • Line 20: warning: exported const RootUserID should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type User should have comment or be unexported (golint)
    • Line 117: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 161: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • chubaofs/objectnode/policy_condition.go
    • Line 30: warning: comment on exported type ConditionValues should be of the form "ConditionValues ..." (with optional leading article) (golint)
    • Line 32: warning: exported type Condition should have comment or be unexported (golint)
    • Line 33: warning: exported type ConditionType should have comment or be unexported (golint)
    • Line 34: warning: exported type ConditionKey should have comment or be unexported (golint)
    • Line 64: warning: exported var StringFuncs should have comment or be unexported (golint)
    • Line 72: warning: exported type ConditionTypeSet should have comment or be unexported (golint)
    • Line 75: warning: exported var StringType should have comment or be unexported (golint)
    • Line 111: warning: exported var ConditionKeyType should have comment or be unexported (golint)
    • Line 138: warning: exported var ConditionFuncMap should have comment or be unexported (golint)
    • Line 154: warning: exported type ConditionFunc should have comment or be unexported (golint)
    • Line 160: warning: exported function TrimAwsPrefixKey should have comment or be unexported (golint)
    • Line 208: warning: exported function IpAddressFunc should have comment or be unexported (golint)
    • Line 215: warning: should omit 2nd value from range; this loop is equivalent to `for ipnet := range ...` (golint)
    • Line 224: warning: exported function NotIpAddressFunc should have comment or be unexported (golint)
    • Line 228: warning: exported function StringLikeFunc should have comment or be unexported (golint)
    • Line 234: warning: should omit 2nd value from range; this loop is equivalent to `for sv := range ...` (golint)
    • Line 246: warning: exported function StringNotLikeFunc should have comment or be unexported (golint)
    • Line 250: warning: exported function StringEqualsFunc should have comment or be unexported (golint)
    • Line 272: warning: exported function StringNotEqualsFunc should have comment or be unexported (golint)
    • Line 294: warning: exported function BoolFunc should have comment or be unexported (golint)
    • Line 299: warning: should omit 2nd value from range; this loop is equivalent to `for vals := range ...` (golint)
    • Line 313: warning: exported function DateEqualsFunc should have comment or be unexported (golint)
    • Line 315: warning: should omit 2nd value from range; this loop is equivalent to `for pVal := range ...` (golint)
    • Line 335: warning: exported function DateNotEqualsFunc should have comment or be unexported (golint)
    • Line 339: warning: exported function DateLessThanFunc should have comment or be unexported (golint)
    • Line 341: warning: should omit 2nd value from range; this loop is equivalent to `for pVal := range ...` (golint)
    • Line 360: warning: exported function DateLessThanEqualsFunc should have comment or be unexported (golint)
    • Line 362: warning: should omit 2nd value from range; this loop is equivalent to `for pVal := range ...` (golint)
    • Line 381: warning: exported function DateGreaterThanFunc should have comment or be unexported (golint)
    • Line 385: warning: exported function DateGreaterThanEqualsFunc should have comment or be unexported (golint)
    • Line 389: warning: exported function NumericEqualsFunc should have comment or be unexported (golint)
    • Line 395: warning: exported function NumericNotEqualsFunc should have comment or be unexported (golint)
    • Line 399: warning: exported function NumericLessThanFunc should have comment or be unexported (golint)
    • Line 405: warning: exported function NumericLessThanEqualsFunc should have comment or be unexported (golint)
    • Line 409: warning: exported function NumericGreaterThanFunc should have comment or be unexported (golint)
    • Line 413: warning: exported function NumericGreaterThanEqualsFunc should have comment or be unexported (golint)
    • Line 417: warning: exported function ArnEqualsFunc should have comment or be unexported (golint)
    • Line 423: warning: exported function ArnNotEqualsFunc should have comment or be unexported (golint)
    • Line 427: warning: exported function ArnLikeFunc should have comment or be unexported (golint)
    • Line 433: warning: exported function ArnNotLikeFunc should have comment or be unexported (golint)
    • chubaofs/sdk/master/api_node.go
    • Line 25: warning: exported type NodeAPI should have comment or be unexported (golint)
    • Line 29: warning: exported method NodeAPI.AddDataNode should have comment or be unexported (golint)
    • Line 41: warning: exported method NodeAPI.AddMetaNode should have comment or be unexported (golint)
    • Line 53: warning: exported method NodeAPI.GetDataNode should have comment or be unexported (golint)
    • Line 67: warning: exported method NodeAPI.GetMetaNode should have comment or be unexported (golint)
    • Line 81: warning: exported method NodeAPI.ResponseMetaNodeTask should have comment or be unexported (golint)
    • Line 94: warning: exported method NodeAPI.ResponseDataNodeTask should have comment or be unexported (golint)
    • Line 108: warning: exported method NodeAPI.DataNodeDecommission should have comment or be unexported (golint)
    • Line 118: warning: exported method NodeAPI.MetaNodeDecommission should have comment or be unexported (golint)
    • chubaofs/datanode/server.go
    • Line 46: warning: exported var ErrIncorrectStoreType should have comment or be unexported (golint)
    • Line 57: warning: exported const DefaultZoneName should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 70: warning: exported const ConfigKeyLocalIP should have comment (or a comment on this block) or be unexported (golint)
    • Line 80: warning: comment on exported const ConfigKeyEnableSmuxClient should be of the form "ConfigKeyEnableSmuxClient ..." (golint)
    • Line 122: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 126: warning: exported method DataNode.Start should have comment or be unexported (golint)
    • Line 272: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 279: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 348: warning: exported type DataNodeInfo should have comment or be unexported (golint)
    • Line 625: warning: exported function IsDiskErr should have comment or be unexported (golint)
    • chubaofs/metanode/partition_free_list.go
    • Line 32: warning: exported const AsyncDeleteInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 97: warning: exported const MinDeleteBatchCounts should have comment (or a comment on this block) or be unexported (golint)
    • Line 202: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • chubaofs/master/api_service.go
    • Line 45: warning: comment on exported type InvalidNodeView should be of the form "InvalidNodeView ..." (with optional leading article) (golint)
    • Line 58: warning: exported type NodeSetView should have comment or be unexported (golint)
    • chubaofs/objectnode/api_handler.go
    • Line 29: warning: exported type RequestParam should have comment or be unexported (golint)
    • Line 41: warning: exported method RequestParam.Bucket should have comment or be unexported (golint)
    • Line 45: warning: exported method RequestParam.Object should have comment or be unexported (golint)
    • Line 49: warning: exported method RequestParam.Action should have comment or be unexported (golint)
    • Line 53: warning: exported method RequestParam.GetVar should have comment or be unexported (golint)
    • Line 60: warning: exported method RequestParam.GetConditionVar should have comment or be unexported (golint)
    • Line 64: warning: exported method RequestParam.AccessKey should have comment or be unexported (golint)
    • Line 68: warning: exported function ParseRequestParam should have comment or be unexported (golint)
    • chubaofs/sdk/graphql/client/user/client.go
    • Line 8: warning: exported type UserClient should have comment or be unexported (golint)
    • Line 12: warning: exported function NewUserClient should have comment or be unexported (golint)
    • Line 16: warning: comment on exported type AuthorizedVols should be of the form "AuthorizedVols ..." (with optional leading article) (golint)
    • Line 22: warning: exported type GeneralResp should have comment or be unexported (golint)
    • Line 27: warning: exported type UserInfo should have comment or be unexported (golint)
    • Line 28: warning: don't use underscores in Go names; struct field Access_key should be AccessKey (golint)
    • Line 29: warning: don't use underscores in Go names; struct field Create_time should be CreateTime (golint)
    • Line 33: warning: don't use underscores in Go names; struct field Secret_key should be SecretKey (golint)
    • Line 35: warning: don't use underscores in Go names; struct field User_id should be UserID (golint)
    • Line 36: warning: don't use underscores in Go names; struct field User_type should be UserType (golint)
    • Line 39: warning: exported type UserPolicy should have comment or be unexported (golint)
    • Line 41: warning: don't use underscores in Go names; struct field Own_vols should be OwnVols (golint)
    • Line 44: warning: exported type UserStatistical should have comment or be unexported (golint)
    • Line 51: warning: exported type UserUseSpace should have comment or be unexported (golint)
    • Line 57: warning: comment on exported method UserClient.DeleteUser should be of the form "DeleteUser ..." (golint)
    • Line 84: warning: exported method UserClient.UpdateUser should have comment or be unexported (golint)
    • Line 132: warning: exported method UserClient.GetUserInfo should have comment or be unexported (golint)
    • Line 176: warning: exported method UserClient.TopNUser should have comment or be unexported (golint)
    • Line 203: warning: exported method UserClient.ValidatePassword should have comment or be unexported (golint)
    • Line 248: warning: exported method UserClient.CreateUser should have comment or be unexported (golint)
    • Line 297: warning: exported method UserClient.RemoveUserPolicy should have comment or be unexported (golint)
    • Line 342: warning: exported method UserClient.TransferUserVol should have comment or be unexported (golint)
    • Line 389: warning: exported method UserClient.UpdateUserPolicy should have comment or be unexported (golint)
    • Line 435: warning: exported method UserClient.GetUserAKInfo should have comment or be unexported (golint)
    • Line 479: warning: exported method UserClient.ListUserInfo should have comment or be unexported (golint)
    • chubaofs/sdk/data/wrapper/wrapper.go
    • Line 32: warning: exported var LocalIP should have comment or be unexported (golint)
    • Line 36: warning: exported type DataPartitionView should have comment or be unexported (golint)
    • Line 93: warning: exported method Wrapper.Stop should have comment or be unexported (golint)
    • Line 99: warning: exported method Wrapper.InitFollowerRead should have comment or be unexported (golint)
    • Line 104: warning: exported method Wrapper.FollowerRead should have comment or be unexported (golint)
    • Line 280: warning: exported method Wrapper.SetNearRead should have comment or be unexported (golint)
    • Line 285: warning: exported method Wrapper.NearRead should have comment or be unexported (golint)
    • chubaofs/datanode/partition_op_by_raft.go
    • Line 32: warning: exported type RaftCmdItem should have comment or be unexported (golint)
    • Line 56: warning: exported const BinaryMarshalMagicVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 59: warning: exported function MarshalRandWriteRaftLog should have comment or be unexported (golint)
    • Line 87: warning: comment on exported function UnmarshalRandWriteRaftLog should be of the form "UnmarshalRandWriteRaftLog ..." (golint)
    • Line 123: warning: exported function UnmarshalOldVersionRaftLog should have comment or be unexported (golint)
    • Line 139: warning: exported function UnmarshalOldVersionRandWriteOpItem should have comment or be unexported (golint)
    • Line 184: warning: exported type ItemIterator should have comment or be unexported (golint)
    • chubaofs/proto/fs_proto.go
    • Line 25: warning: exported const RootIno should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported const FlagsSyncWrite should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: comment on exported function OsModeType should be of the form "OsModeType ..." (golint)
    • Line 80: warning: exported method InodeInfo.Expiration should have comment or be unexported (golint)
    • Line 84: warning: exported method InodeInfo.SetExpiration should have comment or be unexported (golint)
    • Line 93: warning: exported type XAttrInfo should have comment or be unexported (golint)
    • Line 98: warning: exported method XAttrInfo.Get should have comment or be unexported (golint)
    • Line 102: warning: exported method XAttrInfo.VisitAll should have comment or be unexported (golint)
    • Line 167: warning: comment on exported type BatchUnlinkInodeRequest should be of the form "BatchUnlinkInodeRequest ..." (with optional leading article) (golint)
    • Line 179: warning: comment on exported type BatchUnlinkInodeResponse should be of the form "BatchUnlinkInodeResponse ..." (with optional leading article) (golint)
    • Line 194: warning: comment on exported type BatchEvictInodeRequest should be of the form "BatchEvictInodeRequest ..." (with optional leading article) (golint)
    • Line 233: warning: exported type BatchDeleteDentryRequest should have comment or be unexported (golint)
    • Line 311: warning: exported type AppendExtentKeyWithCheckRequest should have comment or be unexported (golint)
    • Line 355: warning: exported const AttrMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 369: warning: comment on exported type DeleteInodeBatchRequest should be of the form "DeleteInodeBatchRequest ..." (with optional leading article) (golint)
    • Line 384: warning: exported type SetXAttrRequest should have comment or be unexported (golint)
    • Line 392: warning: exported type GetXAttrRequest should have comment or be unexported (golint)
    • Line 399: warning: exported type GetXAttrResponse should have comment or be unexported (golint)
    • Line 407: warning: exported type RemoveXAttrRequest should have comment or be unexported (golint)
    • Line 414: warning: exported type ListXAttrRequest should have comment or be unexported (golint)
    • Line 420: warning: exported type ListXAttrResponse should have comment or be unexported (golint)
    • Line 427: warning: exported type BatchGetXAttrRequest should have comment or be unexported (golint)
    • Line 434: warning: exported type BatchGetXAttrResponse should have comment or be unexported (golint)
    • Line 440: warning: exported type MultipartInfo should have comment or be unexported (golint)
    • Line 448: warning: exported type MultipartPartInfo should have comment or be unexported (golint)
    • Line 456: warning: exported type CreateMultipartRequest should have comment or be unexported (golint)
    • Line 463: warning: exported type CreateMultipartResponse should have comment or be unexported (golint)
    • Line 467: warning: exported type GetMultipartRequest should have comment or be unexported (golint)
    • Line 474: warning: exported type GetMultipartResponse should have comment or be unexported (golint)
    • Line 478: warning: exported type AddMultipartPartRequest should have comment or be unexported (golint)
    • Line 486: warning: exported type RemoveMultipartRequest should have comment or be unexported (golint)
    • Line 493: warning: exported type ListMultipartRequest should have comment or be unexported (golint)
    • Line 503: warning: exported type ListMultipartResponse should have comment or be unexported (golint)
    • chubaofs/master/gapi_cluster.go
    • Line 21: warning: exported type ClusterService should have comment or be unexported (golint)
    • Line 28: warning: exported method ClusterService.Schema should have comment or be unexported (golint)
    • Line 181: warning: receiver name m should be consistent with previous receiver name s for ClusterService (golint)
    • Line 213: warning: receiver name m should be consistent with previous receiver name s for ClusterService (golint)
    • Line 229: warning: receiver name m should be consistent with previous receiver name s for ClusterService (golint)
    • Line 246: warning: receiver name m should be consistent with previous receiver name s for ClusterService (golint)
    • Line 262: warning: receiver name m should be consistent with previous receiver name s for ClusterService (golint)
    • Line 280: warning: receiver name m should be consistent with previous receiver name s for ClusterService (golint)
    • Line 294: warning: receiver name m should be consistent with previous receiver name s for ClusterService (golint)
    • Line 337: warning: exported type MasterInfo should have comment or be unexported (golint)
    • Line 435: warning: receiver name m should be consistent with previous receiver name s for ClusterService (golint)
    • Line 441: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 447: warning: receiver name m should be consistent with previous receiver name s for ClusterService (golint)
    • Line 463: warning: receiver name m should be consistent with previous receiver name s for ClusterService (golint)
    • Line 487: warning: receiver name m should be consistent with previous receiver name s for ClusterService (golint)
    • Line 500: warning: exported type WarnMessage should have comment or be unexported (golint)
    • Line 509: warning: receiver name m should be consistent with previous receiver name s for ClusterService (golint)
    • Line 608: warning: receiver name m should be consistent with previous receiver name s for ClusterService (golint)
    • chubaofs/master/gapi_user.go
    • Line 13: warning: exported type UserService should have comment or be unexported (golint)
    • Line 18: warning: exported method UserService.Schema should have comment or be unexported (golint)
    • Line 29: warning: exported type UserStatistical should have comment or be unexported (golint)
    • Line 36: warning: exported type AuthorizedVols should have comment or be unexported (golint)
    • Line 85: warning: receiver name m should be consistent with previous receiver name s for UserService (golint)
    • Line 115: warning: receiver name m should be consistent with previous receiver name s for UserService (golint)
    • Line 159: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 270: warning: exported type UserUseSpace should have comment or be unexported (golint)
    • Line 360: warning: exported const ADMIN should have comment or be unexported (golint)
    • Line 361: warning: exported const USER should have comment or be unexported (golint)
    • chubaofs/sdk/graphql/client/volume/client.go
    • Line 8: warning: exported type VolumeClient should have comment or be unexported (golint)
    • Line 12: warning: exported function NewVolumeClient should have comment or be unexported (golint)
    • Line 16: warning: comment on exported type Token should be of the form "Token ..." (with optional leading article) (golint)
    • Line 23: warning: exported type UserPermission should have comment or be unexported (golint)
    • Line 29: warning: exported type Vol should have comment or be unexported (golint)
    • Line 47: warning: exported type GeneralResp should have comment or be unexported (golint)
    • Line 52: warning: exported type RWMutex should have comment or be unexported (golint)
    • Line 55: warning: exported type SimpleVolView should have comment or be unexported (golint)
    • Line 76: warning: comment on exported method VolumeClient.CreateVolume should be of the form "CreateVolume ..." (golint)
    • Line 151: warning: exported method VolumeClient.DeleteVolume should have comment or be unexported (golint)
    • Line 178: warning: exported method VolumeClient.UpdateVolume should have comment or be unexported (golint)
    • Line 249: warning: exported method VolumeClient.GetVolume should have comment or be unexported (golint)
    • Line 312: warning: exported method VolumeClient.ListVolume should have comment or be unexported (golint)
    • Line 376: warning: exported method VolumeClient.VolPermission should have comment or be unexported (golint)
    • chubaofs/util/smux_conn_pool.go
    • Line 33: warning: exported const DefaultSmuxPortShift should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported var ErrTooMuchSmuxStreams should have comment or be unexported (golint)
    • Line 44: warning: comment on exported function ShiftAddrPort should be of the form "ShiftAddrPort ..." (golint)
    • Line 60: warning: comment on exported function FilterSmuxAcceptError should be of the form "FilterSmuxAcceptError ..." (golint)
    • Line 81: warning: exported type SmuxConnPoolConfig should have comment or be unexported (golint)
    • Line 91: warning: exported function DefaultSmuxConnPoolConfig should have comment or be unexported (golint)
    • Line 103: warning: exported function VerifySmuxPoolConfig should have comment or be unexported (golint)
    • Line 125: warning: exported function DefaultSmuxConfig should have comment or be unexported (golint)
    • Line 131: warning: exported type SmuxConnPoolStat should have comment or be unexported (golint)
    • Line 176: warning: exported type SmuxConnectPool should have comment or be unexported (golint)
    • Line 185: warning: exported function NewSmuxConnectPool should have comment or be unexported (golint)
    • Line 201: warning: exported method SmuxConnectPool.GetConnect should have comment or be unexported (golint)
    • Line 217: warning: exported method SmuxConnectPool.PutConnect should have comment or be unexported (golint)
    • Line 276: warning: exported method SmuxConnectPool.Close should have comment or be unexported (golint)
    • Line 283: warning: exported method SmuxConnectPool.GetStat should have comment or be unexported (golint)
    • Line 315: warning: exported type SmuxPool should have comment or be unexported (golint)
    • Line 327: warning: exported type SmuxPoolStat should have comment or be unexported (golint)
    • Line 335: warning: exported function NewSmuxPool should have comment or be unexported (golint)
    • Line 403: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 474: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 482: warning: exported method SmuxPool.ReleaseAll should have comment or be unexported (golint)
    • Line 527: warning: exported method SmuxPool.GetConnect should have comment or be unexported (golint)
    • Line 549: warning: exported method SmuxPool.NewStream should have comment or be unexported (golint)
    • Line 564: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 569: warning: exported method SmuxPool.MarkClosed should have comment or be unexported (golint)
    • Line 624: warning: exported method SmuxPool.PutStreamObjectToPool should have comment or be unexported (golint)
    • Line 638: warning: exported method SmuxPool.GetStat should have comment or be unexported (golint)
    • chubaofs/objectnode/auth_signature_v2.go
    • Line 41: warning: exported const RequestHeaderV2Authorization should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported var PresignedSignatureV2Queries should have comment or be unexported (golint)
    • Line 51: warning: exported var SignatureV2WhiteQueries should have comment or be unexported (golint)
    • chubaofs/cmd/cmd.go
    • Line 52: warning: exported const ConfigKeyRole should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: exported const RoleMaster should have comment (or a comment on this block) or be unexported (golint)
    • Line 69: warning: exported const ModuleMaster should have comment (or a comment on this block) or be unexported (golint)
    • Line 78: warning: exported const LoggerOutput should have comment (or a comment on this block) or be unexported (golint)
    • chubaofs/util/exporter/counter.go
    • Line 25: warning: exported var CounterGroup should have comment or be unexported (golint)
    • Line 41: warning: exported type Counter should have comment or be unexported (golint)
    • Line 45: warning: exported function NewCounter should have comment or be unexported (golint)
    • Line 51: warning: exported method Counter.Add should have comment or be unexported (golint)
    • Line 66: warning: exported method Counter.AddWithLabels should have comment or be unexported (golint)
    • Line 74: warning: exported method Counter.Metric should have comment or be unexported (golint)
    • chubaofs/sdk/data/stream/stream_conn.go
    • Line 30: warning: error var TryOtherAddrError should have name of the form ErrFoo (golint)
    • Line 30: warning: exported var TryOtherAddrError should have comment or be unexported (golint)
    • Line 34: warning: exported const StreamSendMaxRetry should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type GetReplyFunc should have comment or be unexported (golint)
    • Line 47: warning: exported var StreamConnPool should have comment or be unexported (golint)
    • chubaofs/objectnode/cors.go
    • Line 13: warning: exported type CORSConfiguration should have comment or be unexported (golint)
    • Line 18: warning: exported type CORSRule should have comment or be unexported (golint)
    • chubaofs/objectnode/fs_store.go
    • Line 17: warning: exported type MetaStore should have comment or be unexported (golint)
    • Line 20: warning: comment on exported type Store should be of the form "Store ..." (with optional leading article) (golint)
    • chubaofs/console/cutil/cache.go
    • Line 21: warning: exported function TokenValidate should have comment or be unexported (golint)
    • Line 43: warning: exported function TokenRegister should have comment or be unexported (golint)
    • chubaofs/util/ump/ump_async_log.go
    • Line 26: warning: exported type FunctionTp should have comment or be unexported (golint)
    • Line 34: warning: exported type SystemAlive should have comment or be unexported (golint)
    • Line 40: warning: exported type BusinessAlarm should have comment or be unexported (golint)
    • Line 50: warning: exported const FunctionTpSufixx should have comment (or a comment on this block) or be unexported (golint)
    • Line 63: warning: exported var FunctionTpLogWrite should have comment or be unexported (golint)
    • Line 69: warning: exported type LogWrite should have comment or be unexported (golint)
    • Line 199: warning: exported function GetLocalIpAddr should have comment or be unexported (golint)

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.

    • chubaofs/proto/packet.go
    • Line 238: warning: cyclomatic complexity 76 of function (*Packet).GetOpMsg() is high (> 15) (gocyclo)
    • Line 395: warning: cyclomatic complexity 17 of function (*Packet).GetResultMsg() is high (> 15) (gocyclo)
    • Line 544: warning: cyclomatic complexity 16 of function (*Packet).ReadFromConn() is high (> 15) (gocyclo)
    • chubaofs/authnode/api_service.go
    • Line 192: warning: cyclomatic complexity 26 of function (*Server).apiAccessEntry() is high (> 15) (gocyclo)
    • Line 357: warning: cyclomatic complexity 18 of function (*Server).osCapsOp() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!