Preparing report...

Report for github.com/filedrive-team/go-filedag-sdk

A+    Excellent!    Found 15 issues across 22 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!


gocyclo90%

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.


golint31%

Golint is a linter for Go source code.

    • go-filedag-sdk/model/uploadinfo.go
    • Line 3: warning: exported type UploadParam should have comment or be unexported (golint)
    • Line 9: warning: exported type UploadResponse should have comment or be unexported (golint)
    • Line 14: warning: exported type PinFileResponse should have comment or be unexported (golint)
    • go-filedag-sdk/client/response.go
    • Line 5: warning: exported type ResultBase should have comment or be unexported (golint)
    • Line 10: warning: exported method ResultBase.SetCode should have comment or be unexported (golint)
    • Line 14: warning: exported method ResultBase.CreateFailure should have comment or be unexported (golint)
    • Line 19: warning: exported method ResultBase.CreateData should have comment or be unexported (golint)
    • Line 23: warning: exported type Responder should have comment or be unexported (golint)
    • Line 29: warning: exported type ListPinResp should have comment or be unexported (golint)
    • Line 34: warning: exported method ListPinResp.CreateData should have comment or be unexported (golint)
    • Line 39: warning: exported type PinResp should have comment or be unexported (golint)
    • Line 44: warning: exported method PinResp.CreateData should have comment or be unexported (golint)
    • Line 49: warning: exported type KeyResp should have comment or be unexported (golint)
    • Line 54: warning: exported method KeyResp.CreateData should have comment or be unexported (golint)
    • Line 59: warning: exported type PinnedTotalResp should have comment or be unexported (golint)
    • Line 64: warning: exported method PinnedTotalResp.CreateData should have comment or be unexported (golint)
    • Line 69: warning: exported type UploadTokenResp should have comment or be unexported (golint)
    • Line 74: warning: exported method UploadTokenResp.CreateData should have comment or be unexported (golint)
    • Line 79: warning: exported type PinFileResp should have comment or be unexported (golint)
    • Line 84: warning: exported method PinFileResp.CreateData should have comment or be unexported (golint)
    • go-filedag-sdk/client/client.go
    • Line 20: warning: exported const ZH should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type XLanguage should have comment or be unexported (golint)
    • Line 26: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported function New should have comment or be unexported (golint)
    • Line 41: warning: exported function NewWithJwtToken should have comment or be unexported (golint)
    • Line 49: warning: exported function NewWithKeySecret should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.SetHost should have comment or be unexported (golint)
    • Line 62: warning: exported method Client.SetJwtToken should have comment or be unexported (golint)
    • Line 66: warning: exported method Client.SetKeySecret should have comment or be unexported (golint)
    • Line 71: warning: exported method Client.SetLanguage should have comment or be unexported (golint)
    • Line 137: warning: exported method Client.ListPin should have comment or be unexported (golint)
    • Line 151: warning: exported method Client.AddPin should have comment or be unexported (golint)
    • Line 158: warning: exported method Client.GetPin should have comment or be unexported (golint)
    • Line 165: warning: exported method Client.ReplacePin should have comment or be unexported (golint)
    • Line 172: warning: exported method Client.RemovePin should have comment or be unexported (golint)
    • Line 179: warning: exported method Client.GenerateApiKey should have comment or be unexported (golint)
    • Line 186: warning: exported method Client.RevokeApiKey should have comment or be unexported (golint)
    • Line 193: warning: exported method Client.PinnedDataTotal should have comment or be unexported (golint)
    • Line 200: warning: exported method Client.PinFileFromStream should have comment or be unexported (golint)
    • Line 284: warning: exported method Client.PinFileFromFS should have comment or be unexported (golint)
    • Line 320: warning: exported method Client.SetPinMeta should have comment or be unexported (golint)
    • Line 327: warning: exported method Client.SetPinPolicy should have comment or be unexported (golint)
    • Line 334: warning: exported method Client.SetUserPinPolicy should have comment or be unexported (golint)
    • go-filedag-sdk/model/scope.go
    • Line 3: warning: exported type Scope should have comment or be unexported (golint)
    • Line 8: warning: exported type Endpoints should have comment or be unexported (golint)
    • Line 14: warning: exported type ScopePins should have comment or be unexported (golint)
    • Line 22: warning: exported type ScopeData should have comment or be unexported (golint)
    • Line 27: warning: exported type ScopePinning should have comment or be unexported (golint)
    • go-filedag-sdk/common/utctime.go
    • Line 9: warning: exported type UTCTime should have comment or be unexported (golint)
    • Line 13: warning: exported function NewUTCTime should have comment or be unexported (golint)
    • Line 19: warning: exported method UTCTime.MarshalJSON should have comment or be unexported (golint)
    • Line 28: warning: exported method UTCTime.UnmarshalJSON should have comment or be unexported (golint)
    • Line 39: warning: exported method UTCTime.Value should have comment or be unexported (golint)
    • Line 47: warning: exported method UTCTime.Scan should have comment or be unexported (golint)
    • Line 63: warning: exported method UTCTime.YearMonthDate should have comment or be unexported (golint)
    • Line 70: warning: exported method UTCTime.IsEmpty should have comment or be unexported (golint)

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!