Report for github.com/moooofly/harborctl

A+    Excellent!    Found 11 issues across 59 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!


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!


golint96%

Golint is a linter for Go source code.

    • harborctl/utils/agent.go
    • Line 14: warning: exported function AgentGet should have comment or be unexported (golint)
    • Line 18: warning: exported function GetStruct should have comment or be unexported (golint)
    • Line 27: warning: exported function Get should have comment or be unexported (golint)
    • Line 36: warning: exported function Delete should have comment or be unexported (golint)
    • Line 45: warning: exported function Post should have comment or be unexported (golint)
    • Line 55: warning: exported function Multipart should have comment or be unexported (golint)
    • Line 79: warning: exported function Put should have comment or be unexported (golint)
    • Line 89: warning: exported function Head should have comment or be unexported (golint)
    • harborctl/utils/const.go
    • Line 5: warning: exported const Logo should have comment or be unexported (golint)
    • Line 15: warning: exported const Mark should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign86%

IneffAssign detects ineffectual assignments in Go code.

    • harborctl/cmd/chartrepo.go
    • Line 26: warning: cannot find package "." in: (ineffassign)
    • Line 27: warning: cannot find package "." in: (ineffassign)
    • Line 26: warning: could not import github.com/moooofly/harborctl/utils (invalid package name: "") (ineffassign)
    • Line 27: warning: could not import github.com/spf13/cobra (invalid package name: "") (ineffassign)
    • harborctl/cmd/login.go
    • Line 29: warning: cannot find package "." in: (ineffassign)
    • Line 29: warning: could not import github.com/parnurzeal/gorequest (invalid package name: "") (ineffassign)
    • harborctl/main.go
    • Line 23: warning: cannot find package "." in: (ineffassign)
    • Line 23: warning: could not import github.com/moooofly/harborctl/cmd (invalid package name: "") (ineffassign)
    • harborctl/utils/agent.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/parnurzeal/gorequest (invalid package name: "") (ineffassign)
    • harborctl/utils/url.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import github.com/spf13/viper (invalid package name: "") (ineffassign)
    • harborctl/cmd/root.go
    • Line 27: warning: cannot find package "." in: (ineffassign)
    • Line 30: warning: cannot find package "." in: (ineffassign)
    • Line 27: warning: could not import github.com/mitchellh/go-homedir (invalid package name: "") (ineffassign)
    • Line 30: warning: could not import github.com/spf13/viper (invalid package name: "") (ineffassign)

misspell96%

Misspell Finds commonly misspelled English words