Preparing report...

Report for github.com/github-vet/bots

A+    Excellent!    Found 14 issues across 39 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!


gocyclo92%

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.


golint76%

Golint is a linter for Go source code.

    • bots/internal/db/experts.go
    • Line 15: warning: exported type ExpertDAOImpl should have comment or be unexported (golint)
    • Line 20: warning: exported var ExpertDAO should have comment or be unexported (golint)
    • bots/cmd/vet-bot/stats/stats_store.go
    • Line 62: warning: exported type CountStat should have comment or be unexported (golint)
    • Line 65: warning: exported const StatSloc should have comment (or a comment on this block) or be unexported (golint)
    • Line 133: warning: exported var AllStats should have comment or be unexported (golint)
    • bots/cmd/scripts/go-repos/main.go
    • Line 21: warning: exported var MinDate should have comment or be unexported (golint)
    • Line 105: warning: comment on exported function ReadMaxDate should be of the form "ReadMaxDate ..." (golint)
    • Line 191: warning: exported method GoRepo.ID should have comment or be unexported (golint)
    • bots/internal/db/findings.go
    • Line 11: warning: exported type Finding should have comment or be unexported (golint)
    • Line 25: warning: exported type Md5Sum should have comment or be unexported (golint)
    • Line 27: warning: exported type FindingDaoImpl should have comment or be unexported (golint)
    • Line 33: warning: exported var FindingDAO should have comment or be unexported (golint)
    • bots/internal/db/gophers.go
    • Line 9: warning: exported type Gopher should have comment or be unexported (golint)
    • Line 15: warning: exported type GopherDAOImpl should have comment or be unexported (golint)
    • Line 20: warning: exported var GopherDAO should have comment or be unexported (golint)
    • bots/internal/db/issues.go
    • Line 9: warning: exported type Issue should have comment or be unexported (golint)
    • Line 18: warning: exported method Issue.ExpertsDisagree should have comment or be unexported (golint)
    • Line 22: warning: exported method Issue.SetExpertsDisagree should have comment or be unexported (golint)
    • Line 30: warning: exported type IssueDAOImpl should have comment or be unexported (golint)
    • Line 35: warning: exported var IssueDAO should have comment or be unexported (golint)
    • bots/internal/db/repositories.go
    • Line 9: warning: exported type Repository should have comment or be unexported (golint)
    • Line 15: warning: exported function NewRepository should have comment or be unexported (golint)
    • Line 19: warning: exported type RepoState should have comment or be unexported (golint)
    • Line 22: warning: exported const RepoStateFresh should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type RepositoryDaoImpl should have comment or be unexported (golint)
    • Line 38: warning: exported var RepositoryDAO should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words