Preparing report...

Report for github.com/spencerkimball/stargazers

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


gocyclo77%

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.


golint55%

Golint is a linter for Go source code.

    • stargazers/fetch/fetch.go
    • Line 89: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 158: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • stargazers/fetch/query.go
    • Line 56: warning: exported type User should have comment or be unexported (golint)
    • Line 90: warning: exported type Week should have comment or be unexported (golint)
    • Line 97: warning: exported type Contribution should have comment or be unexported (golint)
    • Line 118: warning: exported type Contributor should have comment or be unexported (golint)
    • Line 124: warning: exported type Repo should have comment or be unexported (golint)
    • Line 459: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 463: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 481: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 486: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • stargazers/analyze/analyze.go
    • Line 38: warning: exported type Stargazers should have comment or be unexported (golint)
    • Line 52: warning: exported type Contributors should have comment or be unexported (golint)
    • Line 68: warning: exported type RepoCount should have comment or be unexported (golint)
    • Line 73: warning: exported type RepoCounts should have comment or be unexported (golint)
    • Line 328: warning: comment on exported function RunAttributesByTime should be of the form "RunAttributesByTime ..." (golint)
    • stargazers/fetch/cache.go
    • Line 83: 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)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign55%

IneffAssign detects ineffectual assignments in Go code.

    • stargazers/cmd/analyze.go
    • Line 23: warning: cannot find package "." in: (ineffassign)
    • Line 24: warning: cannot find package "." in: (ineffassign)
    • Line 25: warning: cannot find package "." in: (ineffassign)
    • Line 23: warning: could not import github.com/spencerkimball/stargazers/analyze (invalid package name: "") (ineffassign)
    • Line 24: warning: could not import github.com/spencerkimball/stargazers/fetch (invalid package name: "") (ineffassign)
    • Line 25: warning: could not import github.com/spf13/cobra (invalid package name: "") (ineffassign)
    • stargazers/main.go
    • Line 26: warning: cannot find package "." in: (ineffassign)
    • Line 27: warning: cannot find package "." in: (ineffassign)
    • Line 28: warning: cannot find package "." in: (ineffassign)
    • Line 26: warning: could not import github.com/spencerkimball/stargazers/cmd (invalid package name: "") (ineffassign)
    • Line 27: warning: could not import github.com/spf13/cobra (invalid package name: "") (ineffassign)
    • Line 28: warning: could not import github.com/spf13/cobra/doc (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!