Preparing report...

Report for github.com/att-cloudnative-labs/kubesweeper

E    Urgent improvement needed    Found 2 issues across 2 files

Tweet

gofmt0%

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!


gocyclo50%

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.


golint0%

Golint is a linter for Go source code.

    • kubesweeper/config.go
    • Line 10: warning: comment on exported var ConfigObj should be of the form "ConfigObj ..." (golint)
    • Line 20: warning: comment on exported type KleanerConfig should be of the form "KleanerConfig ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported type SweeperConfigDetails should be of the form "SweeperConfigDetails ..." (with optional leading article) (golint)
    • Line 42: warning: exported method KleanerConfig.SetFunctions should have comment or be unexported (golint)
    • kubesweeper/main.go
    • Line 27: warning: exported function Find should have comment or be unexported (golint)
    • Line 36: warning: comment on exported type DeleteFunc should be of the form "DeleteFunc ..." (with optional leading article) (golint)
    • Line 39: warning: comment on exported function DeleteCrash should be of the form "DeleteCrash ..." (golint)
    • Line 45: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 52: warning: comment on exported function DeleteGeneric should be of the form "DeleteGeneric ..." (golint)
    • Line 73: warning: comment on exported function DeleteLeftoverResources should be of the form "DeleteLeftoverResources ..." (golint)
    • Line 107: warning: comment on exported function DeleteIngress should be of the form "DeleteIngress ..." (golint)
    • Line 123: warning: comment on exported function DeleteService should be of the form "DeleteService ..." (golint)
    • Line 139: warning: comment on exported function DeleteHpa should be of the form "DeleteHpa ..." (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!