Preparing report...

Report for github.com/wildfly/wildfly-operator

(v0.0.0-20240418094927-9796e9173cfd)

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


gocyclo90%

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/wildflyserver_controller.go
    • Line 77: warning: cyclomatic complexity 50 of function (*WildFlyServerReconciler).Reconcile() is high (> 15) (gocyclo)
    • Line 314: warning: cyclomatic complexity 22 of function (*WildFlyServerReconciler).checkStatefulSet() is high (> 15) (gocyclo)
    • controllers/transaction_recovery.go
    • Line 246: warning: cyclomatic complexity 33 of function (*WildFlyServerReconciler).processTransactionRecoveryScaleDown() is high (> 15) (gocyclo)
    • Line 34: warning: cyclomatic complexity 24 of function (*WildFlyServerReconciler).checkRecovery() is high (> 15) (gocyclo)

ineffassign90%

IneffAssign detects ineffectual assignments in Go code.

    • controllers/transaction_recovery_test.go
    • Line 195: warning: ineffectual assignment to err (ineffassign)
    • Line 212: warning: ineffectual assignment to err (ineffassign)
    • Line 250: warning: ineffectual assignment to err (ineffassign)
    • Line 260: warning: ineffectual assignment to err (ineffassign)
    • Line 266: warning: ineffectual assignment to err (ineffassign)
    • Line 286: warning: ineffectual assignment to err (ineffassign)
    • Line 303: warning: ineffectual assignment to err (ineffassign)
    • Line 322: warning: ineffectual assignment to err (ineffassign)
    • Line 340: warning: ineffectual assignment to err (ineffassign)
    • controllers/wildflyserver_controller_test.go
    • Line 162: warning: ineffectual assignment to res (ineffassign)
    • Line 165: warning: ineffectual assignment to res (ineffassign)
    • Line 633: warning: ineffectual assignment to err (ineffassign)
    • Line 680: warning: ineffectual assignment to err (ineffassign)
    • Line 747: warning: ineffectual assignment to err (ineffassign)
    • Line 833: warning: ineffectual assignment to err (ineffassign)
    • Line 901: warning: ineffectual assignment to err (ineffassign)
    • Line 1061: warning: ineffectual assignment to err (ineffassign)
    • Line 1202: warning: ineffectual assignment to err (ineffassign)
    • Line 1312: warning: ineffectual assignment to err (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell72%

Misspell Finds commonly misspelled English words

    • pkg/util/wildfly_mgmt.go
    • Line 197: warning: "succesful" is a misspelling of "successful" (misspell)
    • Line 219: warning: "succesful" is a misspelling of "successful" (misspell)
    • Line 227: warning: "succesful" is a misspelling of "successful" (misspell)