Preparing report...

Report for github.com/sns-sdks/go-twitter

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


gocyclo97%

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.


golint71%

Golint is a linter for Go source code.

    • go-twitter/twitter/tweets.go
    • Line 7: warning: exported type TweetResource should have comment or be unexported (golint)
    • Line 38: warning: exported type Attachments should have comment or be unexported (golint)
    • Line 43: warning: exported type ContextAnnotationDomain should have comment or be unexported (golint)
    • Line 49: warning: exported type ContextAnnotationEntity should have comment or be unexported (golint)
    • Line 54: warning: exported type ContextAnnotation should have comment or be unexported (golint)
    • Line 59: warning: exported type Coordinates should have comment or be unexported (golint)
    • Line 64: warning: exported type TweetGeo should have comment or be unexported (golint)
    • Line 69: warning: exported type NonPublicMetrics should have comment or be unexported (golint)
    • Line 75: warning: exported type OrganicMetrics should have comment or be unexported (golint)
    • Line 81: warning: exported type PromotedMetrics should have comment or be unexported (golint)
    • Line 90: warning: exported type TweetPublicMetrics should have comment or be unexported (golint)
    • Line 97: warning: exported type TweetWithheld should have comment or be unexported (golint)
    • Line 102: warning: exported type ReferencedTweet should have comment or be unexported (golint)
    • go-twitter/twitter/client.go
    • Line 9: warning: exported const Baseurl should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Client should have comment or be unexported (golint)
    • Line 23: warning: exported type Resource should have comment or be unexported (golint)
    • Line 27: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 34: warning: exported function NewBearerClient should have comment or be unexported (golint)
    • Line 41: warning: exported function NewUserClint should have comment or be unexported (golint)
    • go-twitter/twitter/entities.go
    • Line 11: warning: exported type UserEntities should have comment or be unexported (golint)
    • Line 16: warning: exported type TweetEntities should have comment or be unexported (golint)
    • Line 21: warning: exported type Image should have comment or be unexported (golint)
    • Line 27: warning: exported type EntityUrl should have comment or be unexported (golint)
    • Line 40: warning: exported type EntityHashTag should have comment or be unexported (golint)
    • Line 46: warning: exported type EntityMention should have comment or be unexported (golint)
    • Line 52: warning: exported type EntityCashTag should have comment or be unexported (golint)
    • Line 58: warning: exported type EntityAnnotation should have comment or be unexported (golint)
    • go-twitter/twitter/fixtures.go
    • Line 14: warning: exported method BCSuite.SetupSuite should have comment or be unexported (golint)
    • Line 18: warning: exported method BCSuite.SetupTest should have comment or be unexported (golint)
    • Line 22: warning: exported method BCSuite.TearDownTest should have comment or be unexported (golint)
    • Line 32: warning: exported method UCSuite.SetupSuite should have comment or be unexported (golint)
    • Line 42: warning: exported method UCSuite.SetupTest should have comment or be unexported (golint)
    • Line 46: warning: exported method UCSuite.TearDownTest should have comment or be unexported (golint)
    • go-twitter/twitter/request.go
    • Line 108: warning: comment on exported function ParseDataResponse should be of the form "ParseDataResponse ..." (golint)
    • Line 132: warning: exported method Client.Do should have comment or be unexported (golint)
    • Line 158: warning: exported method Client.DoGet should have comment or be unexported (golint)
    • Line 162: warning: exported method Client.DoPost should have comment or be unexported (golint)
    • Line 166: warning: exported method Client.DoPut should have comment or be unexported (golint)
    • Line 170: warning: exported method Client.DoDelete should have comment or be unexported (golint)
    • go-twitter/twitter/media.go
    • Line 19: warning: exported type MediaNonPublicMetrics should have comment or be unexported (golint)
    • Line 26: warning: exported type MediaOrganicMetrics should have comment or be unexported (golint)
    • Line 35: warning: exported type MediaPromotedMetrics should have comment or be unexported (golint)
    • Line 44: warning: exported type MediaPublicMetrics should have comment or be unexported (golint)
    • go-twitter/twitter/users.go
    • Line 7: warning: exported type UserResource should have comment or be unexported (golint)
    • Line 34: warning: exported type UserPublicMetrics should have comment or be unexported (golint)
    • Line 41: warning: exported type UserWithheld 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!