Preparing report...

Report for github.com/kylemcc/twitter-text-go

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


gocyclo87%

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.


golint87%

Golint is a linter for Go source code.

    • twitter-text-go/extract/extract.go
    • Line 18: warning: comment on exported type Range should be of the form "Range ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported method Range.Length should be of the form "Length ..." (golint)
    • Line 35: warning: comment on exported type EntityType should be of the form "EntityType ..." (with optional leading article) (golint)
    • Line 39: warning: exported const MENTION should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: comment on exported type TwitterEntity should be of the form "TwitterEntity ..." (with optional leading article) (golint)
    • Line 93: warning: receiver name e should be consistent with previous receiver name entities for entitiesT (golint)
    • Line 115: warning: receiver name e should be consistent with previous receiver name entities for entitiesT (golint)
    • Line 119: warning: receiver name e should be consistent with previous receiver name entities for entitiesT (golint)
    • Line 123: warning: receiver name e should be consistent with previous receiver name entities for entitiesT (golint)
    • Line 132: warning: comment on exported method TwitterEntity.ScreenName should be of the form "ScreenName ..." (golint)
    • Line 139: warning: comment on exported method TwitterEntity.ListSlug should be of the form "ListSlug ..." (golint)
    • Line 147: warning: comment on exported method TwitterEntity.Hashtag should be of the form "Hashtag ..." (golint)
    • Line 154: warning: comment on exported method TwitterEntity.Cashtag should be of the form "Cashtag ..." (golint)
    • Line 161: warning: comment on exported function ExtractEntities should be of the form "ExtractEntities ..." (golint)
    • Line 176: warning: comment on exported function ExtractUrls should be of the form "ExtractUrls ..." (golint)
    • Line 295: warning: comment on exported function ExtractMentionedScreenNames should be of the form "ExtractMentionedScreenNames ..." (golint)
    • Line 311: warning: comment on exported function ExtractMentionsOrLists should be of the form "ExtractMentionsOrLists ..." (golint)
    • Line 363: warning: comment on exported function ExtractReplyScreenname should be of the form "ExtractReplyScreenname ..." (golint)
    • Line 391: warning: comment on exported function ExtractHashtags should be of the form "ExtractHashtags ..." (golint)
    • Line 456: warning: comment on exported function ExtractCashtags should be of the form "ExtractCashtags ..." (golint)
    • twitter-text-go/validate/validate.go
    • Line 22: warning: comment on exported type TooLongError should be of the form "TooLongError ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported type EmptyError should be of the form "EmptyError ..." (with optional leading article) (golint)
    • Line 37: warning: comment on exported type InvalidCharacterError should be of the form "InvalidCharacterError ..." (with optional leading article) (golint)
    • Line 50: warning: comment on exported function TweetLength should be of the form "TweetLength ..." (golint)
    • Line 76: warning: comment on exported function TweetIsValid should be of the form "TweetIsValid ..." (golint)
    • Line 82: warning: comment on exported function ValidateTweet should be of the form "ValidateTweet ..." (golint)
    • Line 100: warning: comment on exported function UsernameIsValid should be of the form "UsernameIsValid ..." (golint)
    • Line 110: warning: comment on exported function ListIsValid should be of the form "ListIsValid ..." (golint)
    • Line 127: warning: comment on exported function HashtagIsValid should be of the form "HashtagIsValid ..." (golint)
    • Line 137: warning: comment on exported function UrlIsValid should be of the form "UrlIsValid ..." (golint)
    • Line 180: warning: if block ends with a return statement, so drop this else and outdent its block (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!


misspell93%

Misspell Finds commonly misspelled English words