Preparing report...

Report for github.com/chrisledet/rebasebot

A    Great!    Found 15 issues across 19 files

Tweet

gofmt84%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint21%

Golint is a linter for Go source code.

    • rebasebot/config/config.go
    • Line 11: warning: exported type Config should have comment or be unexported (golint)
    • Line 19: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 38: warning: exported function NewDevConfig should have comment or be unexported (golint)
    • rebasebot/github/error.go
    • Line 3: warning: exported type Error should have comment or be unexported (golint)
    • Line 16: warning: exported type InvalidResource should have comment or be unexported (golint)
    • rebasebot/github/github.go
    • Line 29: warning: comment on exported function NewGitHubRequest should be of the form "NewGitHubRequest ..." (golint)
    • Line 41: warning: comment on exported function WasMentioned should be of the form "WasMentioned ..." (golint)
    • rebasebot/git/git.go
    • Line 21: warning: exported type Output should have comment or be unexported (golint)
    • Line 31: warning: receiver name o should be consistent with previous receiver name w for Output (golint)
    • Line 58: warning: exported function GetName should have comment or be unexported (golint)
    • Line 62: warning: exported function GetEmail should have comment or be unexported (golint)
    • Line 66: warning: exported function GenerateCloneURL should have comment or be unexported (golint)
    • Line 70: warning: exported function Exists should have comment or be unexported (golint)
    • Line 75: warning: exported function GetRepositoryFilePath should have comment or be unexported (golint)
    • Line 98: warning: comment on exported function Fetch should be of the form "Fetch ..." (golint)
    • Line 114: warning: comment on exported function Checkout should be of the form "Checkout ..." (golint)
    • Line 130: warning: comment on exported function Reset should be of the form "Reset ..." (golint)
    • Line 146: warning: comment on exported function Rebase should be of the form "Rebase ..." (golint)
    • Line 178: warning: comment on exported function Prune should be of the form "Prune ..." (golint)
    • Line 194: warning: comment on exported function Push should be of the form "Push ..." (golint)
    • Line 210: warning: exported function Config should have comment or be unexported (golint)
    • rebasebot/main.go
    • Line 13: warning: exported const Version should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign84%

IneffAssign detects ineffectual assignments in Go code.

    • rebasebot/main.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/chrisledet/rebasebot/config (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/chrisledet/rebasebot/http (invalid package name: "") (ineffassign)
    • rebasebot/http/rebase.go
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: could not import github.com/chrisledet/rebasebot/github (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/chrisledet/rebasebot/integrations (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/chrisledet/rebasebot/github (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/chrisledet/rebasebot/integrations (invalid package name: "") (ineffassign)
    • rebasebot/integrations/git.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/chrisledet/rebasebot/git (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/chrisledet/rebasebot/github (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!