Preparing report...

Report for github.com/IBM/cloud-operators

A+    Excellent!    Found 28 issues across 48 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo91%

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.


golint45%

Golint is a linter for Go source code.

    • cloud-operators/internal/ibmcloud/cfservice/key.go
    • Line 15: warning: exported type KeyGetter should have comment or be unexported (golint)
    • Line 19: warning: exported function GetKey should have comment or be unexported (golint)
    • Line 40: warning: exported type KeyCreator should have comment or be unexported (golint)
    • Line 44: warning: exported function CreateKey should have comment or be unexported (golint)
    • Line 57: warning: exported type KeyDeleter should have comment or be unexported (golint)
    • Line 61: warning: exported function DeleteKey should have comment or be unexported (golint)
    • cloud-operators/internal/cmd/genolm/crd.go
    • Line 16: warning: exported type CRD should have comment or be unexported (golint)
    • Line 29: warning: exported type TypeMeta should have comment or be unexported (golint)
    • Line 35: warning: exported type Descriptor should have comment or be unexported (golint)
    • Line 90: warning: exported function NewCRD should have comment or be unexported (golint)
    • cloud-operators/controllers/binding_controller.go
    • Line 82: warning: exported type ControllerReferenceSetter should have comment or be unexported (golint)
    • Line 84: warning: exported type IBMCloudInfoGetter should have comment or be unexported (golint)
    • Line 86: warning: exported method BindingReconciler.SetupWithManager should have comment or be unexported (golint)
    • cloud-operators/internal/ibmcloud/cfservice/service_instance.go
    • Line 11: warning: exported type NotFoundError should have comment or be unexported (golint)
    • Line 19: warning: exported type InstanceGetter should have comment or be unexported (golint)
    • Line 23: warning: exported function GetInstance should have comment or be unexported (golint)
    • Line 38: warning: exported type InstanceCreator should have comment or be unexported (golint)
    • Line 42: warning: exported function CreateInstance should have comment or be unexported (golint)
    • Line 60: warning: exported type InstanceDeleter should have comment or be unexported (golint)
    • Line 64: warning: exported function DeleteInstance should have comment or be unexported (golint)
    • cloud-operators/internal/ibmcloud/resource/service_instance.go
    • Line 15: warning: exported type NotFoundError should have comment or be unexported (golint)
    • Line 23: warning: exported type ServiceInstanceCRNGetter should have comment or be unexported (golint)
    • Line 27: warning: exported function GetServiceInstanceCRN should have comment or be unexported (golint)
    • Line 37: warning: exported type ServiceInstanceCreator should have comment or be unexported (golint)
    • Line 41: warning: exported function CreateServiceInstance should have comment or be unexported (golint)
    • Line 61: warning: exported type ServiceInstanceStatusGetter should have comment or be unexported (golint)
    • Line 65: warning: exported function GetServiceInstanceState should have comment or be unexported (golint)
    • Line 90: warning: exported type ServiceInstanceUpdater should have comment or be unexported (golint)
    • Line 94: warning: exported function UpdateServiceInstance should have comment or be unexported (golint)
    • Line 110: warning: exported type ServiceInstanceDeleter should have comment or be unexported (golint)
    • Line 114: warning: exported function DeleteServiceInstance should have comment or be unexported (golint)
    • Line 145: warning: exported type ServiceAliasInstanceGetter should have comment or be unexported (golint)
    • cloud-operators/api/v1/service_types.go
    • Line 105: warning: exported type ServiceContext should have comment or be unexported (golint)
    • Line 138: warning: exported method Service.GetState should have comment or be unexported (golint)
    • Line 142: warning: exported method Service.GetMessage should have comment or be unexported (golint)
    • cloud-operators/internal/ibmcloud/resource/key.go
    • Line 16: warning: exported type KeyCreator should have comment or be unexported (golint)
    • Line 20: warning: exported function CreateKey should have comment or be unexported (golint)
    • Line 36: warning: exported type KeyDeleter should have comment or be unexported (golint)
    • Line 40: warning: exported function DeleteKey should have comment or be unexported (golint)
    • Line 58: warning: exported type KeyGetter should have comment or be unexported (golint)
    • Line 62: warning: exported function GetKey should have comment or be unexported (golint)
    • cloud-operators/internal/ibmcloud/auth/auth.go
    • Line 13: warning: exported type Authenticator should have comment or be unexported (golint)
    • Line 15: warning: exported type Credentials should have comment or be unexported (golint)
    • Line 22: warning: exported type InvalidConfigError should have comment or be unexported (golint)
    • Line 34: warning: exported function New should have comment or be unexported (golint)
    • Line 58: warning: exported method Credentials.UnmarshalSecret should have comment or be unexported (golint)
    • Line 65: warning: exported method Credentials.MarshalSecret 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!


misspell93%

Misspell Finds commonly misspelled English words