Preparing report...

Report for github.com/kylemcc/parse

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


golint55%

Golint is a linter for Go source code.

    • parse/function.go
    • Line 11: warning: exported type Params should have comment or be unexported (golint)
    • Line 13: warning: exported function CallFunction should have comment or be unexported (golint)
    • Line 75: 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)
    • parse/rest.go
    • Line 18: warning: exported const AppIdHeader should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported var ParseScheme should have comment or be unexported (golint)
    • Line 26: warning: exported var ParsePath should have comment or be unexported (golint)
    • Line 41: warning: exported type ParseError should have comment or be unexported (golint)
    • Line 88: warning: exported function ServerURL should have comment or be unexported (golint)
    • Line 98: warning: comment on exported function SetHTTPTimeout should be of the form "SetHTTPTimeout ..." (golint)
    • Line 110: warning: comment on exported function SetUserAgent should be of the form "SetUserAgent ..." (golint)
    • Line 122: warning: comment on exported function SetRateLimit should be of the form "SetRateLimit ..." (golint)
    • Line 139: warning: exported function SetHTTPClient should have comment or be unexported (golint)
    • Line 200: 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 362: 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 371: 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)
    • parse/util.go
    • Line 33: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • parse/create.go
    • Line 93: warning: comment on exported function Create should be of the form "Create ..." (golint)
    • Line 103: warning: exported function Signup should have comment or be unexported (golint)
    • Line 114: 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 132: 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)
    • parse/query.go
    • Line 24: warning: comment on exported var ErrNoRows should be of the form "ErrNoRows ..." (golint)
    • Line 27: warning: exported type Query should have comment or be unexported (golint)
    • Line 242: warning: comment on exported function NewQuery should be of the form "NewQuery ..." (golint)
    • Line 269: 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 841: 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 889: 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 1026: warning: comment on exported type Iterator should be of the form "Iterator ..." (with optional leading article) (golint)
    • Line 1058: warning: comment on exported method Iterator.CancelError should be of the form "CancelError ..." (golint)
    • Line 1069: warning: comment on exported method Iterator.Done should be of the form "Done ..." (golint)
    • parse/session.go
    • Line 10: warning: exported type Session should have comment or be unexported (golint)
    • Line 59: warning: exported function LoginFacebook should have comment or be unexported (golint)
    • Line 82: warning: comment on exported function Become should be of the form "Become ..." (golint)
    • parse/types.go
    • Line 46: warning: comment on exported type Base should be of the form "Base ..." (with optional leading article) (golint)
    • Line 58: warning: exported type AnonymousAuthData should have comment or be unexported (golint)
    • Line 62: warning: exported type TwitterAuthData should have comment or be unexported (golint)
    • Line 71: warning: exported type FacebookAuthData should have comment or be unexported (golint)
    • Line 77: warning: exported method FacebookAuthData.MarshalJSON should have comment or be unexported (golint)
    • Line 87: warning: exported method FacebookAuthData.UnmarshalJSON should have comment or be unexported (golint)
    • Line 104: warning: exported type AuthData should have comment or be unexported (golint)
    • Line 110: warning: comment on exported type User should be of the form "User ..." (with optional leading article) (golint)
    • Line 120: warning: exported method User.ClassName should have comment or be unexported (golint)
    • Line 124: warning: exported method User.Endpoint should have comment or be unexported (golint)
    • Line 128: warning: comment on exported type Installation should be of the form "Installation ..." (with optional leading article) (golint)
    • Line 148: warning: exported method Installation.ClassName should have comment or be unexported (golint)
    • Line 152: warning: exported method Installation.Endpoint should have comment or be unexported (golint)
    • Line 156: warning: exported type ACL should have comment or be unexported (golint)
    • Line 212: warning: exported function NewACL should have comment or be unexported (golint)
    • Line 370: warning: comment on exported type GeoPoint should be of the form "GeoPoint ..." (with optional leading article) (golint)
    • Line 376: warning: exported method GeoPoint.MarshalJSON should have comment or be unexported (golint)
    • Line 388: warning: exported method GeoPoint.UnmarshalJSON should have comment or be unexported (golint)
    • Line 407: warning: comment on exported method GeoPoint.RadiansTo should be of the form "RadiansTo ..." (golint)
    • Line 424: warning: comment on exported method GeoPoint.KilometersTo should be of the form "KilometersTo ..." (golint)
    • Line 429: warning: comment on exported method GeoPoint.MilesTo should be of the form "MilesTo ..." (golint)
    • Line 434: warning: comment on exported type File should be of the form "File ..." (with optional leading article) (golint)
    • Line 440: warning: exported method File.MarshalJSON should have comment or be unexported (golint)
    • Line 450: warning: comment on exported type Pointer should be of the form "Pointer ..." (with optional leading article) (golint)
    • Line 458: warning: exported method Pointer.MarshalJSON should have comment or be unexported (golint)
    • Line 470: warning: comment on exported type Date should be of the form "Date ..." (with optional leading article) (golint)
    • Line 476: warning: exported method Date.MarshalJSON should have comment or be unexported (golint)
    • Line 486: warning: exported method Date.UnmarshalJSON should have comment or be unexported (golint)
    • Line 511: 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 547: warning: exported type Config should have comment or be unexported (golint)
    • Line 562: warning: comment on exported method Config.Bytes should be of the form "Bytes ..." (golint)
    • Line 575: warning: comment on exported method Config.Bool should be of the form "Bool ..." (golint)
    • Line 588: warning: comment on exported method Config.Int should be of the form "Int ..." (golint)
    • Line 603: warning: comment on exported method Config.Int64 should be of the form "Int64 ..." (golint)
    • Line 618: warning: comment on exported method Config.Float should be of the form "Float ..." (golint)
    • Line 633: warning: comment on exported method Config.Values should be of the form "Values ..." (golint)
    • Line 646: warning: comment on exported method Config.Strings should be of the form "Strings ..." (golint)
    • Line 667: warning: comment on exported method Config.Ints should be of the form "Ints ..." (golint)
    • Line 688: warning: comment on exported method Config.Int64s should be of the form "Int64s ..." (golint)
    • Line 709: warning: comment on exported method Config.Floats should be of the form "Floats ..." (golint)
    • Line 730: warning: comment on exported method Config.Map should be of the form "Map ..." (golint)
    • Line 773: warning: exported function GetConfig should have comment or be unexported (golint)
    • Line 789: warning: comment on exported function RegisterType should be of the form "RegisterType ..." (golint)
    • parse/update.go
    • Line 80: warning: exported type Update should have comment or be unexported (golint)
    • Line 123: warning: comment on exported function NewUpdate should be of the form "NewUpdate ..." (golint)
    • Line 255: 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 313: warning: exported function LinkFacebookAccount should have comment or be unexported (golint)
    • parse/push.go
    • Line 11: warning: comment on exported type PushNotification should be of the form "PushNotification ..." (with optional leading article) (golint)
    • Line 101: warning: comment on exported function NewPushQuery should be of the form "NewPushQuery ..." (golint)
    • Line 107: warning: comment on exported function NewPushNotification should be of the form "NewPushNotification ..." (golint)

gocyclo70%

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.

    • parse/rest.go
    • Line 308: warning: cyclomatic complexity 71 of function populateValue() is high (> 15) (gocyclo)
    • Line 148: warning: cyclomatic complexity 20 of function (*clientT).doRequest() is high (> 15) (gocyclo)
    • parse/query.go
    • Line 714: warning: cyclomatic complexity 24 of function (*queryT).Each() is high (> 15) (gocyclo)
    • parse/update.go
    • Line 174: warning: cyclomatic complexity 22 of function (*updateT).Execute() is high (> 15) (gocyclo)
    • parse/types.go
    • Line 825: warning: cyclomatic complexity 18 of function encodeForRequest() is high (> 15) (gocyclo)

ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words