Preparing report...

Report for github.com/argoproj-labs/argocd-operator

(v0.12.1)

A+    Excellent!    Found 22 issues across 94 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!


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.

    • controllers/argocd/secret.go
    • Line 528: warning: cyclomatic complexity 18 of function (*ReconcileArgoCD).reconcileRedisTLSSecret() is high (> 15) (gocyclo)
    • Line 306: warning: cyclomatic complexity 16 of function (*ReconcileArgoCD).reconcileExistingArgoSecret() is high (> 15) (gocyclo)
    • controllers/argocd/util.go
    • Line 737: warning: cyclomatic complexity 30 of function (*ReconcileArgoCD).reconcileResources() is high (> 15) (gocyclo)
    • Line 971: warning: cyclomatic complexity 26 of function (*ReconcileArgoCD).setResourceWatches() is high (> 15) (gocyclo)
    • Line 1214: warning: cyclomatic complexity 16 of function namespaceFilterPredicate() is high (> 15) (gocyclo)
    • controllers/argocd/deployment.go
    • Line 833: warning: cyclomatic complexity 30 of function (*ReconcileArgoCD).reconcileRepoDeployment() is high (> 15) (gocyclo)
    • Line 1182: warning: cyclomatic complexity 21 of function (*ReconcileArgoCD).reconcileServerDeployment() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 16 of function (*ReconcileArgoCD).reconcileRedisDeployment() is high (> 15) (gocyclo)
    • controllers/argocd/route.go
    • Line 307: warning: cyclomatic complexity 22 of function (*ReconcileArgoCD).reconcileApplicationSetControllerWebhookRoute() is high (> 15) (gocyclo)
    • Line 184: warning: cyclomatic complexity 18 of function (*ReconcileArgoCD).reconcileServerRoute() is high (> 15) (gocyclo)
    • controllers/argocd/secret_test.go
    • Line 330: warning: cyclomatic complexity 27 of function Test_ReconcileArgoCD_ReconcileRedisTLSSecret() is high (> 15) (gocyclo)
    • Line 61: warning: cyclomatic complexity 22 of function Test_ReconcileArgoCD_ReconcileRepoTLSSecret() is high (> 15) (gocyclo)
    • controllers/argocd/applicationset.go
    • Line 556: warning: cyclomatic complexity 19 of function (*ReconcileArgoCD).reconcileApplicationSetSourceNamespacesResources() is high (> 15) (gocyclo)
    • Line 163: warning: cyclomatic complexity 19 of function (*ReconcileArgoCD).reconcileApplicationSetDeployment() is high (> 15) (gocyclo)
    • controllers/argocd/status.go
    • Line 399: warning: cyclomatic complexity 18 of function (*ReconcileArgoCD).reconcileStatusHost() is high (> 15) (gocyclo)
    • Line 242: warning: cyclomatic complexity 17 of function (*ReconcileArgoCD).reconcileStatusPhase() is high (> 15) (gocyclo)
    • Line 130: warning: cyclomatic complexity 16 of function (*ReconcileArgoCD).reconcileStatusKeycloak() is high (> 15) (gocyclo)
    • controllers/argocd/rolebinding.go
    • Line 100: warning: cyclomatic complexity 43 of function (*ReconcileArgoCD).reconcileRoleBinding() is high (> 15) (gocyclo)
    • Line 341: warning: cyclomatic complexity 16 of function (*ReconcileArgoCD).reconcileClusterRoleBinding() is high (> 15) (gocyclo)
    • cmd/main.go
    • Line 84: warning: cyclomatic complexity 33 of function main() is high (> 15) (gocyclo)
    • controllers/argocd/statefulset.go
    • Line 559: warning: cyclomatic complexity 25 of function (*ReconcileArgoCD).reconcileApplicationControllerStatefulSet() is high (> 15) (gocyclo)
    • Line 94: warning: cyclomatic complexity 16 of function (*ReconcileArgoCD).reconcileRedisStatefulSet() is high (> 15) (gocyclo)
    • controllers/argocd/role.go
    • Line 190: warning: cyclomatic complexity 24 of function (*ReconcileArgoCD).reconcileRoleForApplicationSourceNamespaces() is high (> 15) (gocyclo)
    • Line 102: warning: cyclomatic complexity 24 of function (*ReconcileArgoCD).reconcileRole() is high (> 15) (gocyclo)
    • Line 283: warning: cyclomatic complexity 21 of function (*ReconcileArgoCD).reconcileClusterRole() 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!


misspell92%

Misspell Finds commonly misspelled English words

    • common/defaults.go
    • Line 88: warning: "contianer" is a misspelling of "container" (misspell)
    • Line 92: warning: "contianer" is a misspelling of "container" (misspell)
    • Line 96: warning: "contianer" is a misspelling of "container" (misspell)
    • Line 100: warning: "contianer" is a misspelling of "container" (misspell)
    • Line 246: warning: "contianer" is a misspelling of "container" (misspell)
    • Line 249: warning: "contianer" is a misspelling of "container" (misspell)
    • Line 252: warning: "contianer" is a misspelling of "container" (misspell)
    • Line 255: warning: "contianer" is a misspelling of "container" (misspell)
    • controllers/argocd/custommapper_test.go
    • Line 170: warning: "unsucessful" is a misspelling of "unsuccessful" (misspell)
    • Line 220: warning: "unsucessful" is a misspelling of "unsuccessful" (misspell)
    • Line 270: warning: "unsucessful" is a misspelling of "unsuccessful" (misspell)
    • Line 307: warning: "unsucessful" is a misspelling of "unsuccessful" (misspell)
    • Line 334: warning: "unsucessful" is a misspelling of "unsuccessful" (misspell)
    • Line 402: warning: "unsucessful" is a misspelling of "unsuccessful" (misspell)
    • Line 452: warning: "unsucessful" is a misspelling of "unsuccessful" (misspell)
    • Line 502: warning: "unsucessful" is a misspelling of "unsuccessful" (misspell)
    • Line 539: warning: "unsucessful" is a misspelling of "unsuccessful" (misspell)
    • Line 566: warning: "unsucessful" is a misspelling of "unsuccessful" (misspell)