Preparing report...

Report for github.com/flanksource/karina

(v0.76.5)

A+    Excellent!    Found 33 issues across 221 files

Tweet

gofmt95%

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo89%

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/node.go
    • Line 25: warning: cyclomatic complexity 18 of function init() is high (> 15) (gocyclo)
    • cmd/db.go
    • Line 37: warning: cyclomatic complexity 16 of function init() is high (> 15) (gocyclo)
    • cmd/harbor.go
    • Line 19: warning: cyclomatic complexity 21 of function init() is high (> 15) (gocyclo)
    • cmd/deploy.go
    • Line 17: warning: cyclomatic complexity 18 of function init() is high (> 15) (gocyclo)
    • cmd/common.go
    • Line 168: warning: cyclomatic complexity 25 of function mergeConfigBytes() is high (> 15) (gocyclo)
    • pkg/nsx/client.go
    • Line 603: warning: cyclomatic complexity 16 of function (*NSXClient).CreateOrUpdateHTTPHealthCheck() is high (> 15) (gocyclo)
    • Line 387: warning: cyclomatic complexity 16 of function (*NSXClient).CreateLoadBalancer() is high (> 15) (gocyclo)
    • pkg/api/prometheus/v1/zz_generated.deepcopy.go
    • Line 1025: warning: cyclomatic complexity 54 of function (*PrometheusSpec).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1782: warning: cyclomatic complexity 33 of function (*ThanosRulerSpec).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 149: warning: cyclomatic complexity 27 of function (*AlertmanagerSpec).DeepCopyInto() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!