Preparing report...

Report for github.com/kubernetes/minikube

(v1.24.0)

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


golint97%

Golint is a linter for Go source code.


gocyclo95%

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.

    • minikube/pkg/addons/addons.go
    • Line 231: warning: cyclomatic complexity 21 of function addonSpecificChecks() is high (> 15) (gocyclo)
    • Line 152: warning: cyclomatic complexity 18 of function EnableOrDisableAddon() is high (> 15) (gocyclo)
    • minikube/pkg/minikube/bootstrapper/kubeadm/kubeadm.go
    • Line 599: warning: cyclomatic complexity 29 of function (*Bootstrapper).restartControlPlane() is high (> 15) (gocyclo)
    • Line 459: warning: cyclomatic complexity 25 of function (*Bootstrapper).WaitForNode() is high (> 15) (gocyclo)
    • Line 176: warning: cyclomatic complexity 21 of function (*Bootstrapper).init() is high (> 15) (gocyclo)
    • minikube/pkg/minikube/cruntime/cruntime_test.go
    • Line 460: warning: cyclomatic complexity 24 of function (*FakeRunner).systemctl() is high (> 15) (gocyclo)
    • Line 392: warning: cyclomatic complexity 18 of function (*FakeRunner).crictl() is high (> 15) (gocyclo)
    • Line 682: warning: cyclomatic complexity 16 of function TestContainerFunctions() is high (> 15) (gocyclo)
    • minikube/test/integration/functional_test.go
    • Line 227: warning: cyclomatic complexity 27 of function validateImageCommands() is high (> 15) (gocyclo)
    • Line 971: warning: cyclomatic complexity 27 of function validateCacheCmd() is high (> 15) (gocyclo)
    • Line 1336: warning: cyclomatic complexity 25 of function validateServiceCmd() is high (> 15) (gocyclo)
    • Line 1208: warning: cyclomatic complexity 24 of function validateProfileCmd() is high (> 15) (gocyclo)
    • minikube/test/integration/addons_test.go
    • Line 149: warning: cyclomatic complexity 23 of function validateIngressAddon() is high (> 15) (gocyclo)
    • Line 600: warning: cyclomatic complexity 22 of function validateGCPAuthAddon() is high (> 15) (gocyclo)
    • Line 500: warning: cyclomatic complexity 20 of function validateCSIDriverAndSnapshots() is high (> 15) (gocyclo)
    • Line 269: warning: cyclomatic complexity 16 of function validateRegistryAddon() is high (> 15) (gocyclo)

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!