Preparing report...

Report for github.com/Netcracker/qubership-monitoring-operator

(v0.0.0-20250527104045-453773764260)

A+    Excellent!    Found 35 issues across 92 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!


gocyclo64%

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.

    • controllers/prometheus/manifest.go
    • Line 102: warning: cyclomatic complexity 76 of function prometheus() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 17 of function prometheusIngressV1beta1() is high (> 15) (gocyclo)
    • Line 555: warning: cyclomatic complexity 17 of function prometheusIngressV1() is high (> 15) (gocyclo)
    • api/v1alpha1/zz_generated.deepcopy.go
    • Line 900: warning: cyclomatic complexity 44 of function (*Prometheus).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1462: warning: cyclomatic complexity 43 of function (*VmAgent).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1652: warning: cyclomatic complexity 40 of function (*VmAlert).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1830: warning: cyclomatic complexity 32 of function (*VmAlertManager).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1974: warning: cyclomatic complexity 30 of function (*VmAuth).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2264: warning: cyclomatic complexity 28 of function (*VmSingle).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1236: warning: cyclomatic complexity 21 of function (*Pushgateway).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 198: warning: cyclomatic complexity 21 of function (*Grafana).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 33: warning: cyclomatic complexity 18 of function (*AlertManager).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2178: warning: cyclomatic complexity 18 of function (*VmOperator).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 744: warning: cyclomatic complexity 16 of function (*PlatformMonitoringSpec).DeepCopyInto() is high (> 15) (gocyclo)
    • controllers/etcd/reconciler.go
    • Line 139: warning: cyclomatic complexity 28 of function (*EtcdMonitorReconciler).getCertsFromEtcdPods() is high (> 15) (gocyclo)
    • Line 57: warning: cyclomatic complexity 16 of function (*EtcdMonitorReconciler).Run() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words

    • main.go
    • Line 111: warning: "extention" is a misspelling of "extension" (misspell)
    • api/v1alpha1/platformmonitoring_types.go
    • Line 523: warning: "reconcilation" is a misspelling of "reconciliation" (misspell)
    • Line 575: warning: "reconcilation" is a misspelling of "reconciliation" (misspell)
    • Line 671: warning: "reconcilation" is a misspelling of "reconciliation" (misspell)
    • Line 814: warning: "reconcilation" is a misspelling of "reconciliation" (misspell)
    • Line 1016: warning: "reconcilation" is a misspelling of "reconciliation" (misspell)
    • Line 1060: warning: "reconcilation" is a misspelling of "reconciliation" (misspell)
    • Line 1156: warning: "reconcilation" is a misspelling of "reconciliation" (misspell)