Preparing report...

Report for github.com/gardener/machine-controller-manager

(v0.49.1)

A+    Excellent!    Found 25 issues across 209 files

Tweet

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!


gofmt98%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo93%

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/test/integration/common/framework.go
    • Line 211: warning: cyclomatic complexity 30 of function (*IntegrationTestFramework).prepareMcmDeployment() is high (> 15) (gocyclo)
    • Line 1185: warning: cyclomatic complexity 27 of function (*IntegrationTestFramework).Cleanup() is high (> 15) (gocyclo)
    • pkg/util/provider/drain/drain.go
    • Line 646: warning: cyclomatic complexity 18 of function (*Options).evictPodsWithPVInternal() is high (> 15) (gocyclo)
    • Line 989: warning: cyclomatic complexity 18 of function (*Options).evictPodWithoutPVInternal() is high (> 15) (gocyclo)
    • pkg/controller/machineset.go
    • Line 452: warning: cyclomatic complexity 23 of function (*controller).reconcileClusterMachineSet() is high (> 15) (gocyclo)
    • Line 329: warning: cyclomatic complexity 20 of function (*controller).manageReplicas() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell94%

Misspell Finds commonly misspelled English words

    • pkg/test/integration/common/framework.go
    • Line 794: warning: "refered" is a misspelling of "referred" (misspell)
    • Line 952: warning: "futher" is a misspelling of "further" (misspell)
    • Line 1309: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 1320: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 1328: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 1336: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 1344: warning: "occured" is a misspelling of "occurred" (misspell)