Preparing report...

Report for github.com/layer5io/meshery-operator

(v0.2.22)

A+    Excellent!    Found 14 issues across 19 files

Tweet

gofmt94%

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


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!


gocyclo100%

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.

No problems detected. Good job!


golint31%

Golint is a linter for Go source code.

    • pkg/client/v1alpha1/v1apha1.go
    • Line 9: warning: exported var ParameterCodec should have comment or be unexported (golint)
    • Line 12: warning: exported type CoreInterface should have comment or be unexported (golint)
    • Line 18: warning: exported type CoreClient should have comment or be unexported (golint)
    • Line 22: warning: exported function New should have comment or be unexported (golint)
    • Line 29: warning: exported method CoreClient.Brokers should have comment or be unexported (golint)
    • Line 33: warning: exported method CoreClient.MeshSyncs should have comment or be unexported (golint)
    • Line 37: warning: exported method CoreClient.RESTClient should have comment or be unexported (golint)
    • controllers/broker_controller.go
    • Line 49: warning: exported method BrokerReconciler.Reconcile should have comment or be unexported (golint)
    • Line 99: warning: exported method BrokerReconciler.SetupWithManager should have comment or be unexported (golint)
    • Line 105: warning: exported method BrokerReconciler.Cleanup should have comment or be unexported (golint)
    • controllers/error.go
    • Line 8: warning: exported const ErrGetMeshsyncCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported function ErrGetMeshsync should have comment or be unexported (golint)
    • Line 26: warning: exported function ErrCreateMeshsync should have comment or be unexported (golint)
    • Line 30: warning: exported function ErrDeleteMeshsync should have comment or be unexported (golint)
    • Line 34: warning: exported function ErrReconcileMeshsync should have comment or be unexported (golint)
    • Line 38: warning: exported function ErrGetBroker should have comment or be unexported (golint)
    • Line 42: warning: exported function ErrCreateBroker should have comment or be unexported (golint)
    • Line 46: warning: exported function ErrDeleteBroker should have comment or be unexported (golint)
    • Line 50: warning: exported function ErrReconcileBroker should have comment or be unexported (golint)
    • Line 54: warning: exported function ErrReconcileCR should have comment or be unexported (golint)
    • Line 58: warning: exported function ErrCheckHealth should have comment or be unexported (golint)
    • Line 62: warning: exported function ErrGetEndpoint should have comment or be unexported (golint)
    • Line 66: warning: exported function ErrUpdateResource should have comment or be unexported (golint)
    • controllers/meshsync_controller.go
    • Line 47: warning: comment on exported method MeshSyncReconciler.Reconcile should be of the form "Reconcile ..." (golint)
    • Line 93: warning: exported method MeshSyncReconciler.SetupWithManager should have comment or be unexported (golint)
    • Line 99: warning: exported method MeshSyncReconciler.Cleanup should have comment or be unexported (golint)
    • pkg/meshsync/meshsync.go
    • Line 10: warning: exported const ServerObject should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type Object should have comment or be unexported (golint)
    • Line 18: warning: exported function GetObjects should have comment or be unexported (golint)
    • pkg/client/client.go
    • Line 17: warning: exported var Scheme should have comment or be unexported (golint)
    • Line 21: warning: exported type Interface should have comment or be unexported (golint)
    • Line 25: warning: exported type Clientset should have comment or be unexported (golint)
    • Line 34: warning: exported function New should have comment or be unexported (golint)
    • pkg/broker/broker.go
    • Line 17: warning: exported const ServerConfig should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type Object should have comment or be unexported (golint)
    • Line 28: warning: exported function GetObjects should have comment or be unexported (golint)
    • Line 62: warning: exported function CheckHealth should have comment or be unexported (golint)
    • Line 82: warning: exported function GetEndpoint should have comment or be unexported (golint)
    • pkg/broker/error.go
    • Line 8: warning: exported const ErrGettingResourceCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported function ErrGettingResource should have comment or be unexported (golint)
    • Line 18: warning: exported function ErrGettingEndpoint should have comment or be unexported (golint)
    • Line 22: warning: exported function ErrReplicasNotReady should have comment or be unexported (golint)
    • Line 26: warning: exported function ErrConditionFalse should have comment or be unexported (golint)
    • api/v1alpha1/common.go
    • Line 8: warning: exported const Healthy should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type ConditionType should have comment or be unexported (golint)
    • Line 19: warning: exported type ConditionStatus should have comment or be unexported (golint)
    • Line 21: warning: exported type Condition should have comment or be unexported (golint)
    • api/v1alpha1/meshsync_types.go
    • Line 23: warning: exported type CustomMeshsyncBroker should have comment or be unexported (golint)
    • Line 27: warning: exported type NativeMeshsyncBroker should have comment or be unexported (golint)
    • Line 32: warning: exported type MeshsyncBroker should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!