Preparing report...

Report for github.com/chrisgreg/go-get-im

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


golint16%

Golint is a linter for Go source code.

    • go-get-im/utils/utils.go
    • Line 10: warning: exported function CleanUrl should have comment or be unexported (golint)
    • Line 15: warning: exported function DownloadFile should have comment or be unexported (golint)
    • Line 35: warning: exported function CreateFolder should have comment or be unexported (golint)
    • go-get-im/api/imgur.go
    • Line 10: warning: exported const ImgurClientID should have comment or be unexported (golint)
    • Line 12: warning: exported type ImgurAlbumApiResponse should have comment or be unexported (golint)
    • Line 18: warning: exported type ImgurImageApiResponse should have comment or be unexported (golint)
    • Line 24: warning: exported type ImgurAlbumChild should have comment or be unexported (golint)
    • Line 29: warning: exported function ParseAlbumJson should have comment or be unexported (golint)
    • Line 38: warning: exported function ParseImageJson should have comment or be unexported (golint)
    • Line 47: warning: exported function GetImageLink should have comment or be unexported (golint)
    • Line 71: warning: exported function CreateImgurRequest should have comment or be unexported (golint)
    • Line 84: warning: exported function CreateAlbumAPIUrl should have comment or be unexported (golint)
    • Line 89: warning: exported function CreateImageAPIUrl should have comment or be unexported (golint)
    • go-get-im/api/reddit.go
    • Line 10: warning: exported type SubredditApiResponse should have comment or be unexported (golint)
    • Line 16: warning: exported type SubredditChildren should have comment or be unexported (golint)
    • Line 35: warning: exported function GetRedditPosts should have comment or be unexported (golint)
    • go-get-im/utils/imgur.go
    • Line 12: warning: exported function IsAlbum should have comment or be unexported (golint)
    • Line 21: warning: exported function GetAlbumImageLinks should have comment or be unexported (golint)
    • Line 45: warning: exported function DownloadImages should have comment or be unexported (golint)
    • Line 70: warning: exported function GetImgurHash should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • go-get-im/utils/imgur.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/chrisgreg/go-get-im/api (invalid package name: "") (ineffassign)
    • go-get-im/go-get-im.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/chrisgreg/go-get-im/utils (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!