Preparing report...

Report for github.com/icholy/nick_bot

A    Great!    Found 13 issues across 15 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!


golint13%

Golint is a linter for Go source code.

    • nick_bot/model/model.go
    • Line 8: warning: exported type User should have comment or be unexported (golint)
    • Line 17: warning: exported type UserDetails should have comment or be unexported (golint)
    • Line 23: warning: exported type Media should have comment or be unexported (golint)
    • Line 38: warning: exported type MediaState should have comment or be unexported (golint)
    • Line 41: warning: exported const MediaAvailable should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type Record should have comment or be unexported (golint)
    • nick_bot/imgstore/search.go
    • Line 10: warning: exported method Store.SearchRandom should have comment or be unexported (golint)
    • Line 16: warning: exported method Store.Search should have comment or be unexported (golint)
    • nick_bot/imgstore/store.go
    • Line 9: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 14: warning: exported type Store should have comment or be unexported (golint)
    • Line 19: warning: exported function Open should have comment or be unexported (golint)
    • Line 32: warning: exported method Store.Close should have comment or be unexported (golint)
    • Line 57: warning: exported method Store.Put should have comment or be unexported (golint)
    • Line 74: warning: exported method Store.Get should have comment or be unexported (golint)
    • Line 83: warning: exported method Store.Has should have comment or be unexported (golint)
    • Line 95: warning: exported method Store.SetState should have comment or be unexported (golint)
    • Line 115: warning: exported method Store.Stats should have comment or be unexported (golint)
    • Line 142: warning: exported method Store.ResetStates should have comment or be unexported (golint)
    • nick_bot/faceutil/faces.go
    • Line 25: warning: exported function LoadFaces should have comment or be unexported (golint)
    • Line 44: warning: exported function MustLoadFaces should have comment or be unexported (golint)
    • nick_bot/faceutil/replacer.go
    • Line 23: warning: exported function DrawFace should have comment or be unexported (golint)
    • Line 56: warning: exported function DrawFaces should have comment or be unexported (golint)
    • Line 67: warning: exported function DetectFaces should have comment or be unexported (golint)
    • Line 84: warning: exported function ReplaceFaces should have comment or be unexported (golint)
    • nick_bot/instagram/crawler.go
    • Line 12: warning: exported type Crawler should have comment or be unexported (golint)
    • Line 23: warning: exported function NewCrawler should have comment or be unexported (golint)
    • Line 35: warning: exported method Crawler.Media should have comment or be unexported (golint)
    • nick_bot/instagram/instagram.go
    • Line 14: warning: exported var ErrInvalidResponseStatus should have comment or be unexported (golint)
    • Line 16: warning: exported type Session should have comment or be unexported (golint)
    • Line 20: warning: exported function NewSession should have comment or be unexported (golint)
    • Line 30: warning: exported method Session.Close should have comment or be unexported (golint)
    • Line 44: warning: exported method Session.GetRecentUserMedias should have comment or be unexported (golint)
    • Line 79: warning: exported method Session.GetUsers should have comment or be unexported (golint)
    • Line 98: warning: exported method Session.GetFollowers should have comment or be unexported (golint)
    • Line 116: warning: exported method Session.Follow should have comment or be unexported (golint)
    • Line 127: warning: exported method Session.GetUserDetails should have comment or be unexported (golint)
    • Line 143: warning: exported method Session.UploadPhoto should have comment or be unexported (golint)
    • nick_bot/imgstore/strategies.go
    • Line 7: warning: exported type SearchStrategy should have comment or be unexported (golint)
    • Line 10: warning: exported const TopFacesStrategy should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported function ChooseStrategy should have comment or be unexported (golint)
    • nick_bot/facebot/facebot.go
    • Line 11: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 19: warning: exported type Options should have comment or be unexported (golint)
    • Line 29: warning: exported type Bot should have comment or be unexported (golint)
    • Line 36: warning: exported function New should have comment or be unexported (golint)
    • Line 60: warning: exported method Bot.Run should have comment or be unexported (golint)
    • Line 78: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 105: warning: exported method Bot.Post should have comment or be unexported (golint)
    • Line 118: 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 123: warning: exported method Bot.Demo 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!