Preparing report...

Report for github.com/go-zendesk/zendesk

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


gocyclo100%

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.

No problems detected. Good job!


golint57%

Golint is a linter for Go source code.

    • zendesk/users.go
    • Line 68: warning: comment on exported method Request.Users should be of the form "Users ..." (golint)
    • Line 75: warning: comment on exported method Request.GroupUsers should be of the form "GroupUsers ..." (golint)
    • Line 82: warning: comment on exported method Request.OrganizationUsers should be of the form "OrganizationUsers ..." (golint)
    • Line 89: warning: comment on exported method Request.User should be of the form "User ..." (golint)
    • Line 96: warning: comment on exported method Request.ShowMany should be of the form "ShowMany ..." (golint)
    • zendesk/zenddesk.go
    • Line 8: warning: exported type Request should have comment or be unexported (golint)
    • Line 22: warning: exported function New should have comment or be unexported (golint)
    • Line 29: warning: exported method Request.Debug should have comment or be unexported (golint)
    • Line 34: warning: exported method Request.Oauth2Auth should have comment or be unexported (golint)
    • Line 39: warning: exported method Request.BasicAuth should have comment or be unexported (golint)
    • Line 44: warning: exported method Request.ApiTokenAuth should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign57%

IneffAssign detects ineffectual assignments in Go code.

    • zendesk/zenddesk.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/parnurzeal/gorequest (invalid package name: "") (ineffassign)
    • Line 35: warning: b.Header undefined (type *Request has no field or method Header) (ineffassign)
    • Line 40: warning: b.SetBasicAuth undefined (type *Request has no field or method SetBasicAuth) (ineffassign)
    • Line 45: warning: b.SetBasicAuth undefined (type *Request has no field or method SetBasicAuth) (ineffassign)
    • Line 51: warning: b.Param undefined (type *Request has no field or method Param) (ineffassign)
    • Line 56: warning: b.Param undefined (type *Request has no field or method Param) (ineffassign)
    • Line 61: warning: b.Param undefined (type *Request has no field or method Param) (ineffassign)
    • Line 4: warning: could not import github.com/parnurzeal/gorequest (invalid package name: "") (ineffassign)
    • Line 35: warning: b.Header undefined (type *Request has no field or method Header) (ineffassign)
    • Line 40: warning: b.SetBasicAuth undefined (type *Request has no field or method SetBasicAuth) (ineffassign)
    • Line 45: warning: b.SetBasicAuth undefined (type *Request has no field or method SetBasicAuth) (ineffassign)
    • Line 51: warning: b.Param undefined (type *Request has no field or method Param) (ineffassign)
    • Line 56: warning: b.Param undefined (type *Request has no field or method Param) (ineffassign)
    • Line 61: warning: b.Param undefined (type *Request has no field or method Param) (ineffassign)
    • zendesk/users.go
    • Line 71: warning: b.Get undefined (type *Request has no field or method Get) (ineffassign)
    • Line 78: warning: b.Get undefined (type *Request has no field or method Get) (ineffassign)
    • Line 85: warning: b.Get undefined (type *Request has no field or method Get) (ineffassign)
    • Line 92: warning: b.Get undefined (type *Request has no field or method Get) (ineffassign)
    • Line 99: warning: b.SetDebug undefined (type *Request has no field or method SetDebug) (ineffassign)
    • Line 100: warning: b.Get undefined (type *Request has no field or method Get) (ineffassign)
    • Line 154: warning: u.EndStruct undefined (type *usersRequest has no field or method EndStruct) (ineffassign)
    • Line 71: warning: b.Get undefined (type *Request has no field or method Get) (ineffassign)
    • Line 78: warning: b.Get undefined (type *Request has no field or method Get) (ineffassign)
    • Line 85: warning: b.Get undefined (type *Request has no field or method Get) (ineffassign)
    • Line 92: warning: b.Get undefined (type *Request has no field or method Get) (ineffassign)
    • Line 99: warning: b.SetDebug undefined (type *Request has no field or method SetDebug) (ineffassign)
    • Line 100: warning: b.Get undefined (type *Request has no field or method Get) (ineffassign)
    • Line 154: warning: u.EndStruct undefined (type *usersRequest has no field or method EndStruct) (ineffassign)
    • zendesk/users_test.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import gopkg.in/h2non/gock.v1 (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • Line 17: warning: undeclared name: gock (ineffassign)
    • Line 19: warning: undeclared name: gock (ineffassign)
    • Line 50: warning: undeclared name: gock (ineffassign)
    • Line 52: warning: undeclared name: gock (ineffassign)
    • Line 68: warning: undeclared name: gock (ineffassign)
    • Line 103: warning: undeclared name: gock (ineffassign)
    • Line 105: warning: undeclared name: gock (ineffassign)
    • Line 135: warning: undeclared name: gock (ineffassign)
    • Line 137: warning: undeclared name: gock (ineffassign)
    • Line 167: warning: undeclared name: gock (ineffassign)
    • Line 169: warning: undeclared name: gock (ineffassign)
    • Line 199: warning: undeclared name: gock (ineffassign)
    • Line 201: warning: undeclared name: gock (ineffassign)
    • Line 6: warning: "gopkg.in/h2non/gock.v1" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!