Preparing report...

Report for github.com/qiniu/go-sdk

A+    Excellent!    Found 49 issues across 140 files

Tweet

gofmt100%

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

No problems detected. Good job!


go_vet100%

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

No problems detected. Good job!


gocyclo99%

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.


golint69%

Golint is a linter for Go source code.

    • go-sdk/qvs/namespace.go
    • Line 8: warning: exported type M should have comment or be unexported (golint)
    • Line 10: warning: exported type PatchOperation should have comment or be unexported (golint)
    • Line 16: warning: exported type DomainInfo should have comment or be unexported (golint)
    • Line 23: warning: exported type SipAddr should have comment or be unexported (golint)
    • Line 29: warning: exported type NameSpace should have comment or be unexported (golint)
    • Line 57: warning: comment on exported method Manager.AddNamespace should be of the form "AddNamespace ..." (golint)
    • Line 76: warning: comment on exported method Manager.QueryNamespace should be of the form "QueryNamespace ..." (golint)
    • Line 89: warning: comment on exported method Manager.UpdateNamespace should be of the form "UpdateNamespace ..." (golint)
    • Line 105: warning: comment on exported method Manager.DeleteNamespace should be of the form "DeleteNamespace ..." (golint)
    • Line 113: warning: comment on exported method Manager.ListNamespace should be of the form "ListNamespace ..." (golint)
    • Line 132: warning: comment on exported method Manager.DisableNamespace should be of the form "DisableNamespace ..." (golint)
    • Line 140: warning: comment on exported method Manager.EnableNamespace should be of the form "EnableNamespace ..." (golint)
    • Line 148: warning: comment on exported method Manager.AddDomain should be of the form "AddDomain ..." (golint)
    • Line 160: warning: comment on exported method Manager.DeleteDomain should be of the form "DeleteDomain ..." (golint)
    • Line 168: warning: comment on exported method Manager.ListDomain should be of the form "ListDomain ..." (golint)
    • go-sdk/storage/resume_uploader.go
    • Line 60: warning: exported method ResumeUploader.PutWithoutSize should have comment or be unexported (golint)
    • Line 195: warning: comment on exported method ResumeUploader.Mkblk should be of the form "Mkblk ..." (golint)
    • Line 200: warning: comment on exported method ResumeUploader.Bput should be of the form "Bput ..." (golint)
    • Line 205: warning: comment on exported method ResumeUploader.Mkfile should be of the form "Mkfile ..." (golint)
    • Line 210: warning: exported method ResumeUploader.UpHost should have comment or be unexported (golint)
    • go-sdk/storage/resume_uploader_v2.go
    • Line 60: warning: exported method ResumeUploaderV2.PutWithoutSize should have comment or be unexported (golint)
    • Line 188: warning: comment on exported method ResumeUploaderV2.InitParts should be of the form "InitParts ..." (golint)
    • Line 193: warning: comment on exported method ResumeUploaderV2.UploadParts should be of the form "UploadParts ..." (golint)
    • Line 198: warning: comment on exported method ResumeUploaderV2.CompleteParts should be of the form "CompleteParts ..." (golint)
    • Line 203: warning: exported method ResumeUploaderV2.UpHost should have comment or be unexported (golint)
    • go-sdk/err.go
    • Line 5: warning: comment on exported type QError should be of the form "QError ..." (with optional leading article) (golint)
    • go-sdk/auth/qbox/qbox_auth.go
    • Line 8: warning: exported type Mac should have comment or be unexported (golint)
    • Line 10: warning: comment on exported function NewMac should be of the form "NewMac ..." (golint)
    • go-sdk/qvs/device.go
    • Line 8: warning: exported type Device should have comment or be unexported (golint)
    • Line 27: warning: exported type QueryChannelsArgs should have comment or be unexported (golint)
    • Line 32: warning: exported type Channel should have comment or be unexported (golint)
    • Line 40: warning: exported type DeviceChannels should have comment or be unexported (golint)
    • Line 47: warning: exported type DeviceVideoItems should have comment or be unexported (golint)
    • Line 58: warning: comment on exported method Manager.AddDevice should be of the form "AddDevice ..." (golint)
    • Line 79: warning: comment on exported method Manager.DeleteDevice should be of the form "DeleteDevice ..." (golint)
    • Line 86: warning: comment on exported method Manager.QueryDevice should be of the form "QueryDevice ..." (golint)
    • Line 98: warning: comment on exported method Manager.ListDevice should be of the form "ListDevice ..." (golint)
    • Line 118: warning: comment on exported method Manager.UpdateDevice should be of the form "UpdateDevice ..." (golint)
    • Line 131: warning: comment on exported method Manager.StartDevice should be of the form "StartDevice ..." (golint)
    • Line 139: warning: comment on exported method Manager.StopDevice should be of the form "StopDevice ..." (golint)
    • Line 147: warning: comment on exported method Manager.ListChannels should be of the form "ListChannels ..." (golint)
    • Line 159: warning: comment on exported method Manager.FetchCatalog should be of the form "FetchCatalog ..." (golint)
    • Line 166: warning: comment on exported method Manager.QueryChannel should be of the form "QueryChannel ..." (golint)
    • Line 178: warning: comment on exported method Manager.DeleteChannel should be of the form "DeleteChannel ..." (golint)
    • Line 185: warning: comment on exported method Manager.QueryGBRecordHistories should be of the form "QueryGBRecordHistories ..." (golint)
    • go-sdk/qvs/stats.go
    • Line 7: warning: exported type FlowBadwidthData should have comment or be unexported (golint)
    • Line 15: warning: comment on exported method Manager.QueryFlow should be of the form "QueryFlow ..." (golint)
    • Line 27: warning: comment on exported method Manager.QueryBandwidth should be of the form "QueryBandwidth ..." (golint)
    • go-sdk/linking/deviceKey.go
    • Line 8: warning: comment on exported type DeviceKey should be of the form "DeviceKey ..." (with optional leading article) (golint)
    • Line 16: warning: comment on exported method Manager.AddDeviceKey should be of the form "AddDeviceKey ..." (golint)
    • Line 31: warning: comment on exported method Manager.QueryDeviceKey should be of the form "QueryDeviceKey ..." (golint)
    • Line 47: warning: comment on exported method Manager.DeleteDeviceKey should be of the form "DeleteDeviceKey ..." (golint)
    • Line 55: warning: comment on exported method Manager.UpdateDeviceKeyState should be of the form "UpdateDeviceKeyState ..." (golint)
    • Line 64: warning: comment on exported method Manager.CloneDeviceKey should be of the form "CloneDeviceKey ..." (golint)
    • Line 78: warning: exported method Manager.QueryAppidDeviceNameByAccessKey should have comment or be unexported (golint)
    • go-sdk/storage/backward_compatible.go
    • Line 5: warning: package comment should be of the form "Package storage ..." (golint)
    • Line 15: warning: exported var DefaultClient should have comment or be unexported (golint)
    • Line 16: warning: exported var UserAgent should have comment or be unexported (golint)
    • Line 18: warning: exported type Client should have comment or be unexported (golint)
    • Line 19: warning: exported type ErrorInfo should have comment or be unexported (golint)
    • Line 21: warning: exported var ResponseError should have comment or be unexported (golint)
    • Line 22: warning: exported var CallRet should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function SetAppName should be of the form "SetAppName ..." (golint)
    • go-sdk/storage/resume_uploader_base.go
    • Line 13: warning: comment on exported var ErrUnmatchedChecksum should be of the form "ErrUnmatchedChecksum ..." (golint)
    • Line 17: warning: comment on exported const ErrNextReader should be of the form "ErrNextReader ..." (golint)
    • Line 19: warning: comment on exported const ErrMaxUpRetry should be of the form "ErrMaxUpRetry ..." (golint)
    • Line 141: warning: context.Context should be the first parameter of a function (golint)
    • Line 195: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-sdk/storage/resume_uploader_deprecated.go
    • Line 18: warning: comment on exported const ErrUploadChunkFailed should be of the form "ErrUploadChunkFailed ..." (golint)
    • Line 20: warning: comment on exported const ErrChunkUpCanceled should be of the form "ErrChunkUpCanceled ..." (golint)
    • Line 39: warning: comment on exported type Chunk should be of the form "Chunk ..." (with optional leading article) (golint)
    • Line 68: warning: comment on exported method Chunk.ChunkLength should be of the form "ChunkLength ..." (golint)
    • go-sdk/storage/zone.go
    • Line 14: warning: comment on exported var ZoneHuadong should be of the form "ZoneHuadong ..." (golint)
    • Line 18: warning: comment on exported var ZoneHuabei should be of the form "ZoneHuabei ..." (golint)
    • Line 22: warning: comment on exported var ZoneHuanan should be of the form "ZoneHuanan ..." (golint)
    • Line 26: warning: comment on exported var ZoneBeimei should be of the form "ZoneBeimei ..." (golint)
    • Line 30: warning: comment on exported var ZoneXinjiapo should be of the form "ZoneXinjiapo ..." (golint)
    • Line 34: warning: comment on exported var ZoneFogCnEast1 should be of the form "ZoneFogCnEast1 ..." (golint)
    • Line 38: warning: comment on exported var Zone_z0 should be of the form "Zone_z0 ..." (golint)
    • Line 39: warning: don't use underscores in Go names; var Zone_z0 should be ZoneZ0 (golint)
    • Line 40: warning: comment on exported var Zone_z1 should be of the form "Zone_z1 ..." (golint)
    • Line 41: warning: don't use underscores in Go names; var Zone_z1 should be ZoneZ1 (golint)
    • Line 42: warning: comment on exported var Zone_z2 should be of the form "Zone_z2 ..." (golint)
    • Line 43: warning: don't use underscores in Go names; var Zone_z2 should be ZoneZ2 (golint)
    • Line 44: warning: comment on exported var Zone_na0 should be of the form "Zone_na0 ..." (golint)
    • Line 45: warning: don't use underscores in Go names; var Zone_na0 should be ZoneNa0 (golint)
    • Line 46: warning: comment on exported var Zone_as0 should be of the form "Zone_as0 ..." (golint)
    • Line 47: warning: don't use underscores in Go names; var Zone_as0 should be ZoneAs0 (golint)
    • Line 48: warning: comment on exported var Zone_fog_cn_east_1 should be of the form "Zone_fog_cn_east_1 ..." (golint)
    • Line 49: warning: don't use underscores in Go names; var Zone_fog_cn_east_1 should be ZoneFogCnEast1 (golint)
    • go-sdk/sms/bytes/seekable/seekable.go
    • Line 1: warning: package comment should be of the form "Package seekable ..." (golint)
    • Line 15: warning: exported type Seekable should have comment or be unexported (golint)
    • Line 21: warning: exported type SeekableCloser should have comment or be unexported (golint)
    • Line 33: warning: exported var ErrNoBody should have comment or be unexported (golint)
    • Line 34: warning: exported var ErrTooLargeBody should have comment or be unexported (golint)
    • Line 36: warning: exported const MaxBodyLength should have comment or be unexported (golint)
    • Line 38: warning: exported function New should have comment or be unexported (golint)
    • Line 60: warning: exported function ReadAll should have comment or be unexported (golint)
    • go-sdk/doc.go
    • Line 1: warning: package comment should be of the form "Package api ..." (golint)
    • go-sdk/storage/config.go
    • Line 37: warning: comment on exported method Config.RsReqHost should be of the form "RsReqHost ..." (golint)
    • Line 44: warning: comment on exported method Config.GetRegion should be of the form "GetRegion ..." (golint)
    • Line 73: warning: comment on exported method Config.RsfReqHost should be of the form "RsfReqHost ..." (golint)
    • Line 80: warning: comment on exported method Config.ApiReqHost should be of the form "ApiReqHost ..." (golint)
    • go-sdk/storage/recorder.go
    • Line 14: warning: exported type Recorder should have comment or be unexported (golint)
    • Line 28: warning: exported type FileRecorder should have comment or be unexported (golint)
    • Line 32: warning: exported function NewFileRecorder should have comment or be unexported (golint)
    • Line 41: warning: exported method FileRecorder.Set should have comment or be unexported (golint)
    • Line 52: warning: exported method FileRecorder.Get should have comment or be unexported (golint)
    • Line 74: warning: exported method FileRecorder.Delete should have comment or be unexported (golint)
    • Line 79: warning: exported method FileRecorder.GenerateRecorderKey should have comment or be unexported (golint)
    • go-sdk/conf/conf.go
    • Line 3: warning: exported const Version should have comment or be unexported (golint)
    • Line 6: warning: exported const CONTENT_TYPE_JSON should have comment (or a comment on this block) or be unexported (golint)
    • go-sdk/auth/credentials.go
    • Line 19: warning: comment on exported type Credentials should be of the form "Credentials ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 40: warning: comment on exported method Credentials.AddToken should be of the form "AddToken ..." (golint)
    • go-sdk/auth/signer.go
    • Line 3: warning: comment on exported type TokenType should be of the form "TokenType ..." (with optional leading article) (golint)
    • Line 8: warning: exported const TokenQiniu should have comment (or a comment on this block) or be unexported (golint)
    • go-sdk/linking/device.go
    • Line 9: warning: exported type M should have comment or be unexported (golint)
    • Line 11: warning: exported type PatchOperation should have comment or be unexported (golint)
    • Line 17: warning: exported type Channel should have comment or be unexported (golint)
    • Line 22: warning: exported type Device should have comment or be unexported (golint)
    • Line 57: warning: comment on exported method Manager.AddDevice should be of the form "AddDevice ..." (golint)
    • Line 68: warning: comment on exported method Manager.QueryDevice should be of the form "QueryDevice ..." (golint)
    • Line 80: warning: comment on exported method Manager.UpdateDevice should be of the form "UpdateDevice ..." (golint)
    • Line 93: warning: comment on exported method Manager.ListDevice should be of the form "ListDevice ..." (golint)
    • Line 124: warning: comment on exported method Manager.DeleteDevice should be of the form "DeleteDevice ..." (golint)
    • go-sdk/linking/deviceHistoryActivity.go
    • Line 9: warning: comment on exported type DeviceHistoryItem should be of the form "DeviceHistoryItem ..." (with optional leading article) (golint)
    • Line 18: warning: comment on exported method Manager.ListDeviceHistoryactivity should be of the form "ListDeviceHistoryactivity ..." (golint)
    • go-sdk/storage/uc.go
    • Line 1: warning: package comment should be of the form "Package storage ..." (golint)
    • Line 223: warning: comment on exported method BucketManager.BucketInfosInRegion should be of the form "BucketInfosInRegion ..." (golint)
    • Line 260: warning: comment on exported method BucketManager.AddBucketLifeCycleRule should be of the form "AddBucketLifeCycleRule ..." (golint)
    • Line 310: warning: comment on exported type BucketEventRule should be of the form "BucketEventRule ..." (with optional leading article) (golint)
    • Line 401: warning: comment on exported type CorsRule should be of the form "CorsRule ..." (with optional leading article) (golint)
    • Line 486: warning: comment on exported method BucketManager.TurnOnBucketProtected should be of the form "TurnOnBucketProtected ..." (golint)
    • Line 505: warning: comment on exported method BucketManager.SetBucketAccessMode should be of the form "SetBucketAccessMode ..." (golint)
    • Line 527: warning: comment on exported method BucketManager.TurnOffIndexPage should be of the form "TurnOffIndexPage ..." (golint)
    • Line 542: warning: exported type BucketTag should have comment or be unexported (golint)
    • Line 549: warning: comment on exported method BucketManager.SetTagging should be of the form "SetTagging ..." (golint)
    • go-sdk/qvs/record.go
    • Line 7: warning: comment on exported method Manager.StartRecord should be of the form "StartRecord ..." (golint)
    • Line 12: warning: comment on exported method Manager.StopRecord should be of the form "StopRecord ..." (golint)
    • Line 17: warning: comment on exported method Manager.DeleteStreamRecordHistories should be of the form "DeleteStreamRecordHistories ..." (golint)
    • Line 40: warning: comment on exported method Manager.RecordClipsSaveas should be of the form "RecordClipsSaveas ..." (golint)
    • Line 50: warning: comment on exported method Manager.RecordsPlayback should be of the form "RecordsPlayback ..." (golint)
    • go-sdk/qvs/stream.go
    • Line 11: warning: exported const DomainPublishRTMP should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type Stream should have comment or be unexported (golint)
    • Line 42: warning: comment on exported method Manager.AddStream should be of the form "AddStream ..." (golint)
    • Line 55: warning: comment on exported method Manager.QueryStream should be of the form "QueryStream ..." (golint)
    • Line 68: warning: comment on exported method Manager.UpdateStream should be of the form "UpdateStream ..." (golint)
    • Line 82: warning: comment on exported method Manager.DeleteStream should be of the form "DeleteStream ..." (golint)
    • Line 90: warning: comment on exported method Manager.ListStream should be of the form "ListStream ..." (golint)
    • Line 111: warning: exported type DynamicLiveRoute should have comment or be unexported (golint)
    • Line 117: warning: exported type StaticLiveRoute should have comment or be unexported (golint)
    • Line 123: warning: exported type RouteRet should have comment or be unexported (golint)
    • Line 129: warning: exported type RoutePlayUrls should have comment or be unexported (golint)
    • Line 135: warning: comment on exported method Manager.DynamicPublishPlayURL should be of the form "DynamicPublishPlayURL ..." (golint)
    • Line 148: warning: comment on exported method Manager.StaticPublishPlayURL should be of the form "StaticPublishPlayURL ..." (golint)
    • Line 171: warning: comment on exported method Manager.DisableStream should be of the form "DisableStream ..." (golint)
    • Line 178: warning: comment on exported method Manager.EnableStream should be of the form "EnableStream ..." (golint)
    • Line 185: warning: comment on exported method Manager.StopStream should be of the form "StopStream ..." (golint)
    • Line 192: warning: exported type StreamPublishHistory should have comment or be unexported (golint)
    • Line 202: warning: comment on exported method Manager.QueryStreamPubhistories should be of the form "QueryStreamPubhistories ..." (golint)
    • Line 220: warning: comment on exported method Manager.OndemandSnap should be of the form "OndemandSnap ..." (golint)
    • Line 225: warning: comment on exported method Manager.DeleteSnapshots should be of the form "DeleteSnapshots ..." (golint)
    • Line 230: warning: comment on exported method Manager.StreamsSnapshots should be of the form "StreamsSnapshots ..." (golint)
    • Line 254: warning: exported type RecordHistory should have comment or be unexported (golint)
    • Line 264: warning: comment on exported method Manager.QueryStreamRecordHistories should be of the form "QueryStreamRecordHistories ..." (golint)
    • Line 282: warning: comment on exported method Manager.QueryStreamCover should be of the form "QueryStreamCover ..." (golint)
    • go-sdk/qvs/template.go
    • Line 8: warning: exported type Template should have comment or be unexported (golint)
    • Line 46: warning: comment on exported method Manager.AddTemplate should be of the form "AddTemplate ..." (golint)
    • Line 59: warning: comment on exported method Manager.QueryTemplate should be of the form "QueryTemplate ..." (golint)
    • Line 72: warning: comment on exported method Manager.UpdateTemplate should be of the form "UpdateTemplate ..." (golint)
    • Line 86: warning: comment on exported method Manager.DeleteTemplate should be of the form "DeleteTemplate ..." (golint)
    • Line 94: warning: comment on exported method Manager.ListTemplate should be of the form "ListTemplate ..." (golint)
    • go-sdk/sms/bytes/bytes.go
    • Line 10: warning: exported type Reader should have comment or be unexported (golint)
    • Line 15: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 19: warning: exported method Reader.Len should have comment or be unexported (golint)
    • Line 26: warning: exported method Reader.Bytes should have comment or be unexported (golint)
    • Line 30: warning: exported method Reader.SeekToBegin should have comment or be unexported (golint)
    • Line 35: warning: exported method Reader.Seek should have comment or be unexported (golint)
    • Line 69: warning: exported method Reader.Close should have comment or be unexported (golint)
    • Line 75: warning: exported type Writer should have comment or be unexported (golint)
    • Line 80: warning: exported function NewWriter should have comment or be unexported (golint)
    • Line 94: warning: exported method Writer.Len should have comment or be unexported (golint)
    • Line 98: warning: exported method Writer.Bytes should have comment or be unexported (golint)
    • Line 102: warning: exported method Writer.Reset should have comment or be unexported (golint)
    • Line 108: warning: exported type Buffer should have comment or be unexported (golint)
    • Line 112: warning: exported function NewBuffer should have comment or be unexported (golint)
    • Line 116: warning: exported method Buffer.ReadAt should have comment or be unexported (golint)
    • Line 128: warning: exported method Buffer.WriteAt should have comment or be unexported (golint)
    • Line 143: warning: exported method Buffer.WriteStringAt should have comment or be unexported (golint)
    • Line 158: warning: exported method Buffer.Truncate should have comment or be unexported (golint)
    • Line 169: warning: exported method Buffer.Buffer should have comment or be unexported (golint)
    • Line 173: warning: exported method Buffer.Len should have comment or be unexported (golint)
    • go-sdk/client/client.go
    • Line 23: warning: exported var UserAgent should have comment or be unexported (golint)
    • Line 24: warning: exported var DefaultClient should have comment or be unexported (golint)
    • Line 26: warning: comment on exported var DebugMode should be of the form "DebugMode ..." (golint)
    • Line 28: warning: exported var DeepDebugInfo should have comment or be unexported (golint)
    • Line 42: warning: comment on exported function SetAppName should be of the form "SetAppName ..." (golint)
    • Line 90: warning: exported method Client.DoRequest should have comment or be unexported (golint)
    • Line 98: warning: exported method Client.DoRequestWith should have comment or be unexported (golint)
    • Line 109: warning: exported method Client.DoRequestWith64 should have comment or be unexported (golint)
    • Line 120: warning: exported method Client.DoRequestWithForm should have comment or be unexported (golint)
    • Line 141: warning: exported method Client.DoRequestWithJson should have comment or be unexported (golint)
    • Line 156: warning: exported method Client.Do should have comment or be unexported (golint)
    • Line 175: warning: exported type ErrorInfo should have comment or be unexported (golint)
    • Line 183: warning: exported method ErrorInfo.ErrorDetail should have comment or be unexported (golint)
    • Line 194: warning: exported method ErrorInfo.RpcError should have comment or be unexported (golint)
    • Line 199: warning: exported method ErrorInfo.HttpCode should have comment or be unexported (golint)
    • Line 227: warning: exported function ResponseError should have comment or be unexported (golint)
    • Line 250: warning: exported function CallRet should have comment or be unexported (golint)
    • Line 277: warning: exported method Client.CallWithForm should have comment or be unexported (golint)
    • Line 287: warning: exported method Client.CallWithJson should have comment or be unexported (golint)
    • Line 297: warning: exported method Client.CallWith should have comment or be unexported (golint)
    • Line 307: warning: exported method Client.CallWith64 should have comment or be unexported (golint)
    • Line 317: warning: exported method Client.Call should have comment or be unexported (golint)
    • Line 326: warning: exported method Client.CredentialedCallWithForm should have comment or be unexported (golint)
    • Line 332: warning: exported method Client.CredentialedCallWithJson should have comment or be unexported (golint)
    • Line 338: warning: exported method Client.CredentialedCallWith should have comment or be unexported (golint)
    • Line 344: warning: exported method Client.CredentialedCallWith64 should have comment or be unexported (golint)
    • Line 350: warning: exported method Client.CredentialedCall should have comment or be unexported (golint)
    • go-sdk/internal/log/logger.go
    • Line 1: warning: package comment should be of the form "Package log ..." (golint)
    • Line 10: warning: exported type Logger should have comment or be unexported (golint)
    • Line 29: warning: exported type LogLevel should have comment or be unexported (golint)
    • Line 35: warning: comment on exported const LogInfo should be of the form "LogInfo ..." (golint)
    • Line 38: warning: comment on exported const LogWarn should be of the form "LogWarn ..." (golint)
    • Line 43: warning: exported const InfoPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 58: warning: exported method Logger.Debug should have comment or be unexported (golint)
    • Line 62: warning: exported method Logger.Warn should have comment or be unexported (golint)
    • Line 66: warning: exported function Debug should have comment or be unexported (golint)
    • Line 70: warning: exported function Info should have comment or be unexported (golint)
    • Line 74: warning: exported function Warn should have comment or be unexported (golint)
    • go-sdk/storage/region.go
    • Line 18: warning: comment on exported type Region should be of the form "Region ..." (with optional leading article) (golint)
    • Line 39: warning: exported type RegionID should have comment or be unexported (golint)
    • Line 41: warning: comment on exported function GetRegionByID should be of the form "GetRegionByID ..." (golint)
    • Line 74: warning: comment on exported method Region.GetRsfHost should be of the form "GetRsfHost ..." (golint)
    • Line 79: warning: comment on exported method Region.GetIoHost should be of the form "GetIoHost ..." (golint)
    • Line 84: warning: comment on exported method Region.GetRsHost should be of the form "GetRsHost ..." (golint)
    • Line 89: warning: comment on exported method Region.GetApiHost should be of the form "GetApiHost ..." (golint)
    • Line 186: warning: comment on exported const RIDHuadong should be of the form "RIDHuadong ..." (golint)
    • Line 188: warning: exported const RIDHuabei should have comment (or a comment on this block) or be unexported (golint)
    • Line 245: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 248: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 254: warning: exported function SetRegionCachePath should have comment or be unexported (golint)
    • Line 372: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 446: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 483: warning: exported type RegionInfo should have comment or be unexported (golint)
    • Line 488: warning: exported function GetRegionsInfo should have comment or be unexported (golint)
    • Line 495: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-sdk/linking/dtoken.go
    • Line 9: warning: exported type Statement should have comment or be unexported (golint)
    • Line 13: warning: comment on exported type DeviceAccessToken should be of the form "DeviceAccessToken ..." (with optional leading article) (golint)
    • Line 33: warning: comment on exported method Manager.VodToken should be of the form "VodToken ..." (golint)
    • Line 44: warning: comment on exported method Manager.StatusToken should be of the form "StatusToken ..." (golint)
    • Line 55: warning: exported method Manager.Token should have comment or be unexported (golint)
    • go-sdk/linking/vod.go
    • Line 11: warning: exported type Segment should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method Manager.Segments should be of the form "Segments ..." (golint)
    • Line 47: warning: comment on exported type RpcRequest should be of the form "RpcRequest ..." (with optional leading article) (golint)
    • Line 55: warning: exported type DevResponse should have comment or be unexported (golint)
    • Line 60: warning: exported type RpcResponse should have comment or be unexported (golint)
    • Line 65: warning: exported method Manager.RPC should have comment or be unexported (golint)
    • Line 76: warning: exported type SaveasReply should have comment or be unexported (golint)
    • Line 82: warning: comment on exported method Manager.Saveas should be of the form "Saveas ..." (golint)
    • Line 104: warning: exported type LiveRequest should have comment or be unexported (golint)
    • Line 111: warning: exported type PlayUrls should have comment or be unexported (golint)
    • Line 117: warning: exported type LiveResponse should have comment or be unexported (golint)
    • Line 122: warning: comment on exported method Manager.StartLive should be of the form "StartLive ..." (golint)
    • Line 131: warning: comment on exported type StatReq should be of the form "StatReq ..." (with optional leading article) (golint)
    • Line 139: warning: exported method Manager.Stat should have comment or be unexported (golint)
    • go-sdk/storage/bucket.go
    • Line 130: warning: comment on exported method BucketManager.UpdateObjectStatus should be of the form "UpdateObjectStatus ..." (golint)
    • Line 309: warning: exported method BucketManager.RsReqHost should have comment or be unexported (golint)
    • Line 327: warning: exported method BucketManager.ApiReqHost should have comment or be unexported (golint)
    • Line 345: warning: exported method BucketManager.RsfReqHost should have comment or be unexported (golint)
    • Line 363: warning: exported method BucketManager.IoReqHost should have comment or be unexported (golint)
    • Line 517: warning: exported type AsyncFetchParam should have comment or be unexported (golint)
    • Line 530: warning: exported type AsyncFetchRet should have comment or be unexported (golint)
    • Line 535: warning: exported method BucketManager.AsyncFetch should have comment or be unexported (golint)
    • Line 548: warning: exported method BucketManager.RsHost should have comment or be unexported (golint)
    • Line 558: warning: exported method BucketManager.RsfHost should have comment or be unexported (golint)
    • Line 568: warning: exported method BucketManager.IovipHost should have comment or be unexported (golint)
    • Line 578: warning: exported method BucketManager.ApiHost should have comment or be unexported (golint)
    • Line 598: warning: exported method BucketManager.Zone should have comment or be unexported (golint)
    • Line 843: warning: comment on exported method ListItem.IsEmpty should be of the form "IsEmpty ..." (golint)
    • Line 859: warning: context.Context should be the first parameter of a function (golint)
    • go-sdk/storage/pfop.go
    • Line 32: warning: comment on exported function NewOperationManagerEx should be of the form "NewOperationManagerEx ..." (golint)
    • Line 177: warning: exported method OperationManager.ApiHost should have comment or be unexported (golint)
    • Line 185: 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 199: warning: exported method OperationManager.PrefopApiHost should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words