Preparing report...

Report for github.com/drgarcia1986/gonews

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


golint44%

Golint is a linter for Go source code.

    • gonews/gui/gui.go
    • Line 28: warning: exported type Gui should have comment or be unexported (golint)
    • Line 119: warning: exported method Gui.Run should have comment or be unexported (golint)
    • Line 137: warning: exported function New should have comment or be unexported (golint)
    • gonews/progressbar/gui.go
    • Line 5: warning: exported type GUIProgressBar should have comment or be unexported (golint)
    • Line 9: warning: exported method GUIProgressBar.Start should have comment or be unexported (golint)
    • Line 13: warning: exported method GUIProgressBar.Increment should have comment or be unexported (golint)
    • Line 17: warning: exported method GUIProgressBar.Finish should have comment or be unexported (golint)
    • Line 21: warning: exported function New should have comment or be unexported (golint)
    • gonews/providers/reddit/client.go
    • Line 27: warning: exported type Reddit should have comment or be unexported (golint)
    • Line 73: warning: exported method Reddit.GetStories should have comment or be unexported (golint)
    • Line 95: warning: exported method Reddit.Name should have comment or be unexported (golint)
    • Line 102: warning: exported function NewSubReddit should have comment or be unexported (golint)
    • Line 106: warning: exported function New should have comment or be unexported (golint)
    • gonews/providers/hackernews/client.go
    • Line 20: warning: exported type HackerNews should have comment or be unexported (golint)
    • Line 97: warning: exported method HackerNews.GetStories should have comment or be unexported (golint)
    • Line 108: warning: exported method HackerNews.Name should have comment or be unexported (golint)
    • Line 112: warning: exported function New should have comment or be unexported (golint)
    • gonews/providers/fake.go
    • Line 5: warning: exported type Fake should have comment or be unexported (golint)
    • Line 9: warning: exported method Fake.GetStories should have comment or be unexported (golint)
    • Line 24: warning: exported method Fake.Name should have comment or be unexported (golint)
    • Line 28: warning: exported function NewFake should have comment or be unexported (golint)
    • gonews/story/model.go
    • Line 4: warning: exported const TopStories should have comment (or a comment on this block) or be unexported (golint)
    • Line 8: warning: exported type Story should have comment or be unexported (golint)
    • gonews/client/client.go
    • Line 9: warning: exported type Client should have comment or be unexported (golint)
    • Line 14: warning: exported method Client.GetStories should have comment or be unexported (golint)
    • Line 34: warning: exported function New should have comment or be unexported (golint)
    • gonews/progressbar/fake.go
    • Line 3: warning: exported type FakeProgressBar should have comment or be unexported (golint)
    • Line 9: warning: exported method FakeProgressBar.Start should have comment or be unexported (golint)
    • Line 13: warning: exported method FakeProgressBar.Increment should have comment or be unexported (golint)
    • Line 17: warning: exported method FakeProgressBar.Finish should have comment or be unexported (golint)
    • Line 21: warning: exported function NewFake 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!


misspell92%

Misspell Finds commonly misspelled English words