Preparing report...

Report for github.com/IBM/multicloud-operators-channel

A+    Excellent!    Found 20 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!


gocyclo95%

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.


golint69%

Golint is a linter for Go source code.

    • multicloud-operators-channel/pkg/utils/utilconsts.go
    • Line 43: warning: comment on exported const ChannelTypeKind should be of the form "ChannelTypeKind ..." (golint)
    • Line 45: warning: exported const ChannelTypeAPIVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: comment on exported const DeployableTypeKind should be of the form "DeployableTypeKind ..." (golint)
    • multicloud-operators-channel/pkg/utils/aws_client.go
    • Line 45: warning: exported const USERNAME should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: comment on exported const DeployableGenerateNameMeta should be of the form "DeployableGenerateNameMeta ..." (golint)
    • Line 53: warning: comment on exported const DployableMateGenerateNameKey should be of the form "DployableMateGenerateNameKey ..." (golint)
    • Line 55: warning: comment on exported const DeployableVersionMeta should be of the form "DeployableVersionMeta ..." (golint)
    • Line 57: warning: comment on exported const DeployableMetaVersionKey should be of the form "DeployableMetaVersionKey ..." (golint)
    • Line 81: warning: exported type DeployableObject should have comment or be unexported (golint)
    • multicloud-operators-channel/pkg/utils/deployable.go
    • Line 132: warning: comment on exported function RebuildDeployableRelationshipGraph should be of the form "RebuildDeployableRelationshipGraph ..." (golint)
    • Line 311: warning: comment on exported function AddOrAppendChannelLabel should be of the form "AddOrAppendChannelLabel ..." (golint)
    • Line 329: warning: exported function SplitStringToTypes should have comment or be unexported (golint)
    • multicloud-operators-channel/pkg/webhook/wireupwebhook.go
    • Line 44: warning: exported type WireUp should have comment or be unexported (golint)
    • Line 65: warning: exported function NewWireUp should have comment or be unexported (golint)
    • Line 110: warning: exported function GetValidatorName should have comment or be unexported (golint)
    • Line 115: warning: exported function GetWebHookServiceName should have comment or be unexported (golint)
    • Line 120: warning: exported method WireUp.Attach should have comment or be unexported (golint)
    • Line 132: warning: exported type CleanUpFunc should have comment or be unexported (golint)
    • Line 134: warning: exported function DelPreValiationCfg20 should have comment or be unexported (golint)
    • Line 150: warning: comment on exported method WireUp.WireUpWebhookSupplymentryResource should be of the form "WireUpWebhookSupplymentryResource ..." (golint)
    • multicloud-operators-channel/pkg/apis/apps/v1/zz_generated.openapi.go
    • Line 26: warning: exported function GetOpenAPIDefinitions should have comment or be unexported (golint)
    • Line 36: warning: don't use underscores in Go names; func schema_pkg_apis_apps_v1_Channel should be schemaPkgApisAppsV1Channel (golint)
    • Line 80: warning: don't use underscores in Go names; func schema_pkg_apis_apps_v1_ChannelGate should be schemaPkgApisAppsV1ChannelGate (golint)
    • Line 120: warning: don't use underscores in Go names; func schema_pkg_apis_apps_v1_ChannelList should be schemaPkgApisAppsV1ChannelList (golint)
    • Line 172: warning: don't use underscores in Go names; func schema_pkg_apis_apps_v1_ChannelSpec should be schemaPkgApisAppsV1ChannelSpec (golint)
    • Line 240: warning: don't use underscores in Go names; func schema_pkg_apis_apps_v1_ChannelStatus should be schemaPkgApisAppsV1ChannelStatus (golint)
    • multicloud-operators-channel/pkg/utils/fakeObjectStore.go
    • Line 21: warning: exported type FakeObjectStore should have comment or be unexported (golint)
    • Line 26: warning: exported method FakeObjectStore.InitObjectStoreConnection should have comment or be unexported (golint)
    • Line 34: warning: comment on exported method FakeObjectStore.Exists should be of the form "Exists ..." (golint)
    • Line 43: warning: exported method FakeObjectStore.Create should have comment or be unexported (golint)
    • Line 49: warning: exported method FakeObjectStore.List should have comment or be unexported (golint)
    • Line 59: warning: exported method FakeObjectStore.Put should have comment or be unexported (golint)
    • Line 67: warning: exported method FakeObjectStore.Delete should have comment or be unexported (golint)
    • Line 77: warning: exported method FakeObjectStore.Get should have comment or be unexported (golint)
    • multicloud-operators-channel/pkg/utils/helmrepo.go
    • Line 32: warning: exported const InsecureSkipVerifyFlag should have comment (or a comment on this block) or be unexported (golint)
    • Line 77: warning: exported function GetChartIndex should have comment or be unexported (golint)
    • Line 105: warning: exported type LoadIndexPageFunc should have comment or be unexported (golint)
    • Line 107: warning: exported function LoadLocalIdx should have comment or be unexported (golint)
    • multicloud-operators-channel/pkg/apis/apps/v1/channel_types.go
    • Line 1: warning: package comment should be of the form "Package v1 ..." (golint)
    • Line 46: warning: comment on exported const ChannelTypeNamespace should be of the form "ChannelTypeNamespace ..." (golint)
    • Line 49: warning: comment on exported const ChannelTypeHelmRepo should be of the form "ChannelTypeHelmRepo ..." (golint)
    • Line 52: warning: comment on exported const ChannelTypeObjectBucket should be of the form "ChannelTypeObjectBucket ..." (golint)
    • Line 55: warning: comment on exported const ChannelTypeGitHub should be of the form "ChannelTypeGitHub ..." (golint)
    • Line 58: warning: comment on exported const ChannelTypeGit should be of the form "ChannelTypeGit ..." (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!