Preparing report...

Report for github.com/gruntwork-io/git-xargs

A+    Excellent!    Found 13 issues across 28 files

Tweet

gofmt82%

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!


golint78%

Golint is a linter for Go source code.

    • git-xargs/stats/stats.go
    • Line 176: warning: comment on exported method RunStats.SetCommand should be of the form "SetCommand ..." (golint)
    • Line 194: warning: comment on exported function TrackEventIfMissing should be of the form "TrackEventIfMissing ..." (golint)
    • Line 207: warning: exported method RunStats.TrackPullRequest should have comment or be unexported (golint)
    • git-xargs/util/util.go
    • Line 16: warning: comment on exported function ConvertStringToAllowedRepo should be of the form "ConvertStringToAllowedRepo ..." (golint)
    • Line 60: warning: exported function RandStringBytes should have comment or be unexported (golint)
    • Line 68: warning: exported function NewTestFileName should have comment or be unexported (golint)
    • git-xargs/main.go
    • Line 13: warning: comment on exported var VERSION should be of the form "VERSION ..." (golint)
    • Line 22: warning: exported var LogLevelFlag should have comment or be unexported (golint)
    • git-xargs/io/io.go
    • Line 14: warning: comment on exported function ProcessAllowedRepos should be of the form "ProcessAllowedRepos ..." (golint)
    • git-xargs/mocks/mocks.go
    • Line 26: warning: exported var MockGithubRepositories should have comment or be unexported (golint)
    • Line 87: warning: comment on exported function ConfigureMockGithubClient should be of the form "ConfigureMockGithubClient ..." (golint)
    • Line 126: warning: exported function GetMockGithubRepo 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!


misspell85%

Misspell Finds commonly misspelled English words