Preparing report...

Report for github.com/dropbox/dropbox-sdk-go-unofficial

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


gocyclo88%

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.

    • dropbox-sdk-go-unofficial/v6/dropbox/team/types.go
    • Line 2829: warning: cyclomatic complexity 24 of function (*MemberAddResult).UnmarshalJSON() is high (> 15) (gocyclo)
    • Line 3013: warning: cyclomatic complexity 24 of function (*MemberAddV2Result).UnmarshalJSON() is high (> 15) (gocyclo)
    • Line 2668: warning: cyclomatic complexity 22 of function (*MemberAddResultBase).UnmarshalJSON() is high (> 15) (gocyclo)
    • Line 128: warning: cyclomatic complexity 20 of function (*AddSecondaryEmailResult).UnmarshalJSON() is high (> 15) (gocyclo)

golint60%

Golint is a linter for Go source code.

    • dropbox-sdk-go-unofficial/v6/dropbox/auth/sdk.go
    • Line 28: warning: comment on exported type BadRequest should be of the form "BadRequest ..." (with optional leading article) (golint)
    • Line 33: warning: comment on exported type ServerError should be of the form "ServerError ..." (with optional leading article) (golint)
    • Line 40: warning: exported function ParseError should have comment or be unexported (golint)
    • dropbox-sdk-go-unofficial/generator/go_rsrc/sdk.go
    • Line 67: warning: exported type SDKInternalError should have comment or be unexported (golint)
    • Line 137: warning: comment on exported method Config.WithNamespaceID should be of the form "WithNamespaceID ..." (golint)
    • Line 143: warning: exported method Config.WithRoot should have comment or be unexported (golint)
    • Line 157: warning: exported type Request should have comment or be unexported (golint)
    • Line 168: warning: exported method Context.Execute should have comment or be unexported (golint)
    • dropbox-sdk-go-unofficial/v6/dropbox/sdk.go
    • Line 67: warning: exported type SDKInternalError should have comment or be unexported (golint)
    • Line 137: warning: comment on exported method Config.WithNamespaceID should be of the form "WithNamespaceID ..." (golint)
    • Line 143: warning: exported method Config.WithRoot should have comment or be unexported (golint)
    • Line 157: warning: exported type Request should have comment or be unexported (golint)
    • Line 168: warning: exported method Context.Execute 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