Preparing report...

Report for github.com/alexellis/k3sup

(v0.0.0-20220105212754-d193798afb11)

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


gocyclo78%

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.

    • cmd/install.go
    • Line 45: warning: cyclomatic complexity 43 of function MakeInstall() is high (> 15) (gocyclo)
    • cmd/join.go
    • Line 23: warning: cyclomatic complexity 33 of function MakeJoin() is high (> 15) (gocyclo)

golint42%

Golint is a linter for Go source code.

    • pkg/helm/helm.go
    • Line 19: warning: exported function TryDownloadHelm should have comment or be unexported (golint)
    • Line 41: warning: exported function GetHelmURL should have comment or be unexported (golint)
    • Line 54: warning: exported function DownloadHelm should have comment or be unexported (golint)
    • Line 83: warning: exported function HelmInit should have comment or be unexported (golint)
    • cmd/update.go
    • Line 9: warning: exported function MakeUpdate should have comment or be unexported (golint)
    • cmd/version.go
    • Line 11: warning: exported var Version should have comment or be unexported (golint)
    • Line 15: warning: exported function PrintK3supASCIIArt should have comment or be unexported (golint)
    • Line 20: warning: exported function MakeVersion should have comment or be unexported (golint)
    • pkg/thanks.go
    • Line 3: warning: exported const ThanksForUsing should have comment or be unexported (golint)
    • pkg/env/env.go
    • Line 43: warning: exported function LocalBinary should have comment or be unexported (golint)
    • pkg/operator/operator.go
    • Line 7: warning: exported type CommandOperator should have comment or be unexported (golint)
    • Line 12: warning: exported type ExecOperator should have comment or be unexported (golint)
    • Line 15: warning: exported method ExecOperator.ExecuteStdio should have comment or be unexported (golint)
    • Line 33: warning: exported method ExecOperator.Execute should have comment or be unexported (golint)
    • pkg/operator/ssh.go
    • Line 12: warning: exported type SSHOperator should have comment or be unexported (golint)
    • Line 16: warning: exported method SSHOperator.Close should have comment or be unexported (golint)
    • Line 21: warning: exported function NewSSHOperator should have comment or be unexported (golint)
    • Line 33: warning: exported method SSHOperator.ExecuteStdio should have comment or be unexported (golint)
    • Line 95: warning: exported method SSHOperator.Execute should have comment or be unexported (golint)
    • Line 99: warning: exported type CommandRes should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.

    • cmd/join.go
    • Line 452: warning: ineffectual assignment to installEnvVar (ineffassign)
    • Line 452: warning: ineffectual assignment to installEnvVar (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!