Preparing report...

Report for github.com/kubernetes/kompose

(v1.30.0)

A+    Excellent!    Found 8 issues across 33 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!


gocyclo81%

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.

    • pkg/transformer/kubernetes/kubernetes.go
    • Line 1437: warning: cyclomatic complexity 32 of function (*Kubernetes).Transform() is high (> 15) (gocyclo)
    • Line 886: warning: cyclomatic complexity 28 of function (*Kubernetes).ConfigVolumes() is high (> 15) (gocyclo)
    • Line 1214: warning: cyclomatic complexity 16 of function (*Kubernetes).CreateWorkloadAndConfigMapObjects() is high (> 15) (gocyclo)
    • pkg/app/app.go
    • Line 57: warning: cyclomatic complexity 25 of function ValidateFlags() is high (> 15) (gocyclo)
    • Line 162: warning: cyclomatic complexity 18 of function validateControllers() is high (> 15) (gocyclo)
    • pkg/loader/compose/compose.go
    • Line 685: warning: cyclomatic complexity 23 of function parseKomposeLabels() is high (> 15) (gocyclo)
    • Line 50: warning: cyclomatic complexity 22 of function checkUnsupportedKey() is high (> 15) (gocyclo)
    • Line 440: warning: cyclomatic complexity 20 of function dockerComposeToKomposeMapping() is high (> 15) (gocyclo)
    • Line 306: warning: cyclomatic complexity 19 of function parseHealthCheckReadiness() is high (> 15) (gocyclo)
    • pkg/transformer/kubernetes/kubernetes_test.go
    • Line 323: warning: cyclomatic complexity 64 of function TestKomposeConvert() is high (> 15) (gocyclo)
    • Line 181: warning: cyclomatic complexity 20 of function checkPodTemplate() is high (> 15) (gocyclo)
    • Line 747: warning: cyclomatic complexity 16 of function TestMultipleContainersInPod() is high (> 15) (gocyclo)

ineffassign87%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words

    • cmd/convert.go
    • Line 179: warning: "conjuction" is a misspelling of "conjunction" (misspell)
    • Line 180: warning: "conjuction" is a misspelling of "conjunction" (misspell)