Preparing report...

Report for github.com/23technologies/gardener-extension-provider-ionos

A    Great!    Found 34 issues across 86 files

Tweet

gofmt72%

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!


gocyclo98%

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.


golint75%

Golint is a linter for Go source code.

    • gardener-extension-provider-ionos/pkg/ionos/apis/transcoder/infrastructure.go
    • Line 39: warning: exported function DecodeInfrastructureConfig should have comment or be unexported (golint)
    • Line 66: warning: exported function DecodeInfrastructureConfigFromInfrastructure should have comment or be unexported (golint)
    • Line 79: warning: exported function DecodeInfrastructureStatus should have comment or be unexported (golint)
    • Line 93: warning: exported function DecodeInfrastructureStatusFromInfrastructure should have comment or be unexported (golint)
    • gardener-extension-provider-ionos/pkg/ionos/credentials.go
    • Line 29: warning: exported type CredentialsStruct should have comment or be unexported (golint)
    • Line 42: warning: comment on exported method Credentials.IonosMCM should be of the form "IonosMCM ..." (golint)
    • Line 50: warning: comment on exported method Credentials.IonosCCM should be of the form "IonosCCM ..." (golint)
    • Line 58: warning: comment on exported method Credentials.IonosCSI should be of the form "IonosCSI ..." (golint)
    • gardener-extension-provider-ionos/pkg/ionos/types.go
    • Line 57: warning: comment on exported const IonosCCMCredentialsUserKey should be of the form "IonosCCMCredentialsUserKey ..." (golint)
    • Line 59: warning: comment on exported const IonosCCMCredentialsPasswordKey should be of the form "IonosCCMCredentialsPasswordKey ..." (golint)
    • Line 61: warning: comment on exported const IonosCredentialsUserKey should be of the form "IonosCredentialsUserKey ..." (golint)
    • Line 63: warning: comment on exported const IonosCredentialsPasswordKey should be of the form "IonosCredentialsPasswordKey ..." (golint)
    • Line 65: warning: comment on exported const IonosCSICredentialsUserKey should be of the form "IonosCSICredentialsUserKey ..." (golint)
    • Line 67: warning: comment on exported const IonosCSICredentialsPasswordKey should be of the form "IonosCSICredentialsPasswordKey ..." (golint)
    • Line 69: warning: comment on exported const IonosMCMCredentialsUserKey should be of the form "IonosMCMCredentialsUserKey ..." (golint)
    • Line 71: warning: comment on exported const IonosMCMCredentialsPasswordKey should be of the form "IonosMCMCredentialsPasswordKey ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!