Preparing report...

Report for github.com/kmodules/custom-resources

A+    Excellent!    Found 13 issues across 63 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!


golint79%

Golint is a linter for Go source code.

    • custom-resources/apis/metrics/v1alpha1/metricsconfiguration_types.go
    • Line 24: warning: exported const ResourceKindMetricsConfiguration should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: comment on exported type MetricsConfiguration should be of the form "MetricsConfiguration ..." (with optional leading article) (golint)
    • Line 113: warning: exported type FieldType should have comment or be unexported (golint)
    • Line 116: warning: exported const FieldTypeInteger should have comment (or a comment on this block) or be unexported (golint)
    • custom-resources/crds/lib.go
    • Line 40: warning: exported function CustomResourceDefinition should have comment or be unexported (golint)
    • Line 60: warning: exported function MustCustomResourceDefinition should have comment or be unexported (golint)
    • custom-resources/apis/appcatalog/v1alpha1/appbinding_types.go
    • Line 26: warning: exported const ResourceKindApp should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: comment on exported type AppBinding should be of the form "AppBinding ..." (with optional leading article) (golint)
    • Line 86: warning: exported type AppType should have comment or be unexported (golint)
    • Line 168: warning: exported type AppReference should have comment or be unexported (golint)
    • Line 190: warning: exported type AppBindingMeta should have comment or be unexported (golint)
    • custom-resources/apis/appcatalog/v1alpha1/appbinding_helpers.go
    • Line 35: warning: exported method AppBinding.CustomResourceDefinition should have comment or be unexported (golint)
    • Line 35: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 39: warning: exported method AppBinding.URL should have comment or be unexported (golint)
    • Line 55: warning: exported method AppBinding.URLTemplate should have comment or be unexported (golint)
    • Line 69: warning: exported method AppBinding.Host should have comment or be unexported (golint)
    • Line 83: warning: exported method AppBinding.Hostname should have comment or be unexported (golint)
    • Line 97: warning: exported method AppBinding.Port should have comment or be unexported (golint)
    • Line 112: warning: exported method AppBinding.AppGroupResource should have comment or be unexported (golint)
    • Line 121: warning: comment on exported method AppBinding.TransformSecret should be of the form "TransformSecret ..." (golint)
    • custom-resources/util/servicecatalog/conversion.go
    • Line 28: warning: exported function Convert_AppCatalog_v1alpha1_SecretTransform_To_ServiceCatalog_v1beta1_SecretTransform should have comment or be unexported (golint)
    • Line 28: warning: don't use underscores in Go names; func Convert_AppCatalog_v1alpha1_SecretTransform_To_ServiceCatalog_v1beta1_SecretTransform should be ConvertAppCatalogV1alpha1SecretTransformToServiceCatalogV1beta1SecretTransform (golint)

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!


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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!