Preparing report...

Report for github.com/FoundationDB/fdb-kubernetes-operator

(v1.9.0)

A+    Excellent!    Found 32 issues across 200 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!


gofmt100%

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

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo84%

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.

    • kubectl-fdb/cmd/analyze.go
    • Line 225: warning: cyclomatic complexity 49 of function analyzeCluster() is high (> 15) (gocyclo)
    • Line 39: warning: cyclomatic complexity 21 of function newAnalyzeCmd() is high (> 15) (gocyclo)
    • controllers/update_status.go
    • Line 47: warning: cyclomatic complexity 48 of function (updateStatus).reconcile() is high (> 15) (gocyclo)
    • Line 403: warning: cyclomatic complexity 28 of function validateProcessGroups() is high (> 15) (gocyclo)
    • Line 520: warning: cyclomatic complexity 17 of function validateProcessGroup() is high (> 15) (gocyclo)
    • controllers/cluster_controller.go
    • Line 598: warning: cyclomatic complexity 37 of function checkCoordinatorValidity() is high (> 15) (gocyclo)
    • Line 494: warning: cyclomatic complexity 18 of function chooseDistributedProcesses() is high (> 15) (gocyclo)
    • setup/setup.go
    • Line 247: warning: cyclomatic complexity 21 of function moveFDBBinaries() is high (> 15) (gocyclo)
    • Line 107: warning: cyclomatic complexity 16 of function StartManager() is high (> 15) (gocyclo)
    • internal/pod_models.go
    • Line 158: warning: cyclomatic complexity 54 of function GetPodSpec() is high (> 15) (gocyclo)
    • Line 476: warning: cyclomatic complexity 26 of function configureSidecarContainer() is high (> 15) (gocyclo)
    • Line 774: warning: cyclomatic complexity 23 of function GetBackupDeployment() is high (> 15) (gocyclo)
    • api/v1beta1/foundationdbcluster_types.go
    • Line 1380: warning: cyclomatic complexity 27 of function (*FoundationDBCluster).CheckReconciliation() is high (> 15) (gocyclo)
    • Line 1802: warning: cyclomatic complexity 17 of function (*FoundationDBCluster).ProcessGroupIsBeingRemoved() 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!