Preparing report...

Report for kubeops.dev/cluster-connector

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


golint40%

Golint is a linter for Go source code.

    • /kubeops.dev/cluster-connector/pkg/server/server.go
    • Line 40: warning: exported var Scheme should have comment or be unexported (golint)
    • Line 62: warning: exported type ClusterConnectorConfig should have comment or be unexported (golint)
    • Line 73: warning: exported method ClusterConnector.Run should have comment or be unexported (golint)
    • Line 83: warning: exported type CompletedConfig should have comment or be unexported (golint)
    • /kubeops.dev/cluster-connector/pkg/cmds/server/options.go
    • Line 35: warning: exported type ExtraOptions should have comment or be unexported (golint)
    • Line 46: warning: exported function NewExtraOptions should have comment or be unexported (golint)
    • Line 56: warning: exported method ExtraOptions.AddGoFlags should have comment or be unexported (golint)
    • Line 68: warning: exported method ExtraOptions.AddFlags should have comment or be unexported (golint)
    • Line 74: warning: exported method ExtraOptions.ApplyTo should have comment or be unexported (golint)
    • /kubeops.dev/cluster-connector/pkg/eventer/recorder.go
    • Line 35: warning: exported const EventReasonInvalidRestic should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: exported function NewEventRecorder should have comment or be unexported (golint)
    • Line 74: warning: exported function CreateEvent should have comment or be unexported (golint)
    • Line 98: warning: exported function CreateEventWithLog should have comment or be unexported (golint)
    • /kubeops.dev/cluster-connector/pkg/cmds/server/start.go
    • Line 37: warning: exported type ClusterConnectorOptions should have comment or be unexported (golint)
    • Line 45: warning: exported function NewClusterConnectorOptions should have comment or be unexported (golint)
    • Line 62: warning: exported method ClusterConnectorOptions.AddFlags should have comment or be unexported (golint)
    • Line 67: warning: exported method ClusterConnectorOptions.Validate should have comment or be unexported (golint)
    • Line 71: warning: exported method ClusterConnectorOptions.Complete should have comment or be unexported (golint)
    • Line 75: warning: exported method ClusterConnectorOptions.Config should have comment or be unexported (golint)
    • Line 101: warning: exported method ClusterConnectorOptions.Run should have comment or be unexported (golint)
    • /kubeops.dev/cluster-connector/test/e2e/framework/framework.go
    • Line 25: warning: exported type Framework should have comment or be unexported (golint)
    • Line 33: warning: exported function New should have comment or be unexported (golint)
    • Line 46: warning: exported method Framework.Invoke should have comment or be unexported (golint)
    • Line 53: warning: exported method Framework.Name should have comment or be unexported (golint)
    • Line 57: warning: exported method Invocation.KubeClient should have comment or be unexported (golint)
    • Line 61: warning: exported method Invocation.RestConfig should have comment or be unexported (golint)
    • Line 65: warning: exported type Invocation 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!