Preparing report...

Report for github.com/mlabouardy/nexus-cli

A    Great!    Found 3 issues across 4 files

Tweet

gofmt75%

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!


golint25%

Golint is a linter for Go source code.

    • nexus-cli/main.go
    • Line 13: warning: exported const CREDENTIALS_TEMPLATES should have comment (or a comment on this block) or be unexported (golint)
    • nexus-cli/sorter.go
    • Line 13: warning: exported type Compare should have comment or be unexported (golint)
    • Line 15: warning: exported method Compare.Sort should have comment or be unexported (golint)
    • nexus-cli/registry/registry.go
    • Line 12: warning: exported const ACCEPT_HEADER should have comment or be unexported (golint)
    • Line 13: warning: exported const CREDENTIALS_FILE should have comment or be unexported (golint)
    • Line 15: warning: exported type Registry should have comment or be unexported (golint)
    • Line 22: warning: exported type Repositories should have comment or be unexported (golint)
    • Line 26: warning: exported type ImageTags should have comment or be unexported (golint)
    • Line 31: warning: exported type ImageManifest should have comment or be unexported (golint)
    • Line 37: warning: exported type LayerInfo should have comment or be unexported (golint)
    • Line 43: warning: exported function NewRegistry should have comment or be unexported (golint)
    • Line 46: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 57: warning: exported method Registry.ListImages should have comment or be unexported (golint)
    • Line 75: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 84: warning: exported method Registry.ListTagsByImage should have comment or be unexported (golint)
    • Line 102: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 111: warning: exported method Registry.ImageManifest should have comment or be unexported (golint)
    • Line 130: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 139: warning: exported method Registry.DeleteImageByTag should have comment or be unexported (golint)
    • Line 161: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 187: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign75%

IneffAssign detects ineffectual assignments in Go code.

    • nexus-cli/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/mlabouardy/nexus-cli/registry (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/urfave/cli (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/mlabouardy/nexus-cli/registry (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/urfave/cli (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!