Preparing report...

Report for sigs.k8s.io/zeitgeist

A+    Excellent!    Found 13 issues across 62 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!


gocyclo96%

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.


golint79%

Golint is a linter for Go source code.

    • /sigs.k8s.io/zeitgeist/internal/git/git.go
    • Line 49: warning: exported const DefaultGithubOrg should have comment (or a comment on this block) or be unexported (golint)
    • Line 219: warning: comment on exported type Repo should be of the form "Repo ..." (with optional leading article) (golint)
    • Line 259: warning: comment on exported method Repo.SetDry should be of the form "SetDry ..." (golint)
    • Line 282: warning: exported function LSRemoteExec should have comment or be unexported (golint)
    • Line 436: warning: exported method Repo.Cleanup should have comment or be unexported (golint)
    • Line 509: warning: exported method Repo.LatestNonPatchFinalToMinor should have comment or be unexported (golint)
    • Line 670: warning: exported method Repo.MergeBase should have comment or be unexported (golint)
    • /sigs.k8s.io/zeitgeist/internal/github/github.go
    • Line 55: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 165: warning: exported function NewEnterprise should have comment or be unexported (golint)
    • Line 170: warning: exported function NewEnterpriseWithToken should have comment or be unexported (golint)
    • /sigs.k8s.io/zeitgeist/pkg/gitlab/gitlab.go
    • Line 46: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 80: warning: exported function NewPrivate should have comment or be unexported (golint)
    • Line 137: warning: exported method GitLab.Branches 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!