Preparing report...

Report for github.com/proshik/githubstatbot

A+    Excellent!    Found 15 issues across 20 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!


gocyclo95%

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.


golint25%

Golint is a linter for Go source code.

    • githubstatbot/telegram/bot.go
    • Line 11: warning: exported var BotName should have comment or be unexported (golint)
    • Line 15: warning: exported type Bot should have comment or be unexported (golint)
    • Line 22: warning: exported function NewBot should have comment or be unexported (golint)
    • githubstatbot/telegram/telegram.go
    • Line 21: warning: exported const BYTE should have comment (or a comment on this block) or be unexported (golint)
    • Line 63: warning: exported method Bot.ReadUpdates should have comment or be unexported (golint)
    • Line 129: warning: exported method Bot.InformAuth should have comment or be unexported (golint)
    • githubstatbot/storage/postgres.go
    • Line 6: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 11: warning: exported const TABLE_USERS should have comment or be unexported (golint)
    • Line 19: warning: exported type Postgres should have comment or be unexported (golint)
    • Line 23: warning: exported type User should have comment or be unexported (golint)
    • Line 30: warning: exported function NewPostgres should have comment or be unexported (golint)
    • Line 46: warning: exported method Postgres.Add should have comment or be unexported (golint)
    • Line 62: warning: exported method Postgres.Get should have comment or be unexported (golint)
    • Line 83: warning: exported method Postgres.Delete should have comment or be unexported (golint)
    • githubstatbot/api/handler.go
    • Line 15: warning: exported type AccessTokenReq should have comment or be unexported (golint)
    • Line 21: warning: exported type AccessTokenResp should have comment or be unexported (golint)
    • Line 29: warning: exported method Handler.Index should have comment or be unexported (golint)
    • Line 34: warning: exported method Handler.Version should have comment or be unexported (golint)
    • Line 65: warning: exported method Handler.GitHubRedirect should have comment or be unexported (golint)
    • githubstatbot/storage/db.go
    • Line 12: warning: exported type Store should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • Line 33: warning: exported method Store.Add should have comment or be unexported (golint)
    • Line 52: warning: exported method Store.Get should have comment or be unexported (golint)
    • Line 70: warning: exported method Store.Delete should have comment or be unexported (golint)
    • githubstatbot/storage/state.go
    • Line 9: warning: exported function NewStateStore should have comment or be unexported (golint)
    • Line 15: warning: exported type StateStore should have comment or be unexported (golint)
    • Line 20: warning: exported method StateStore.Get should have comment or be unexported (golint)
    • Line 27: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 32: warning: exported method StateStore.Add should have comment or be unexported (golint)
    • Line 38: warning: exported method StateStore.Delete should have comment or be unexported (golint)
    • githubstatbot/github/oauth.go
    • Line 7: warning: exported type OAuth should have comment or be unexported (golint)
    • Line 12: warning: exported function NewOAuth should have comment or be unexported (golint)
    • Line 19: warning: exported method OAuth.BuildAuthUrl should have comment or be unexported (golint)
    • githubstatbot/api/api.go
    • Line 10: warning: exported type Handler should have comment or be unexported (golint)
    • Line 19: warning: exported type BasicAuth should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported method Handler.RedirectToHttps should have comment or be unexported (golint)
    • githubstatbot/github/repository.go
    • Line 8: warning: exported type Repo should have comment or be unexported (golint)
    • Line 15: warning: exported method Client.Repos should have comment or be unexported (golint)
    • Line 44: warning: exported method Client.Repo should have comment or be unexported (golint)
    • githubstatbot/github/user.go
    • Line 5: warning: exported method Client.User should have comment or be unexported (golint)
    • Line 16: warning: exported method Client.SpecificUser 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!