Preparing report...

Report for github.com/deckhouse/yandex-cloud-controller-manager

A+    Excellent!    Found 9 issues across 14 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!


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!


golint35%

Golint is a linter for Go source code.

    • yandex-cloud-controller-manager/pkg/yapi/compute.go
    • Line 10: warning: exported type ComputeService should have comment or be unexported (golint)
    • Line 17: warning: exported function NewComputeService should have comment or be unexported (golint)
    • Line 27: warning: exported method ComputeService.FindInstanceByName should have comment or be unexported (golint)
    • yandex-cloud-controller-manager/pkg/yapi/loadbalancer.go
    • Line 17: warning: exported type LoadBalancerService should have comment or be unexported (golint)
    • Line 24: warning: exported function NewLoadBalancerService should have comment or be unexported (golint)
    • Line 35: warning: exported method LoadBalancerService.CreateOrUpdateLB should have comment or be unexported (golint)
    • Line 119: warning: exported method LoadBalancerService.GetTGsByClusterName should have comment or be unexported (golint)
    • Line 138: warning: exported method LoadBalancerService.RemoveLBByName should have comment or be unexported (golint)
    • Line 168: warning: exported method LoadBalancerService.CreateOrUpdateTG should have comment or be unexported (golint)
    • Line 222: warning: exported method LoadBalancerService.RemoveTGByID should have comment or be unexported (golint)
    • Line 243: warning: exported method LoadBalancerService.GetLbByName should have comment or be unexported (golint)
    • Line 264: warning: exported method LoadBalancerService.GetTgByName should have comment or be unexported (golint)
    • yandex-cloud-controller-manager/pkg/yapi/api.go
    • Line 13: warning: exported type OperationWaiter should have comment or be unexported (golint)
    • Line 15: warning: exported type CloudContext should have comment or be unexported (golint)
    • Line 22: warning: exported type YandexCloudAPI should have comment or be unexported (golint)
    • Line 32: warning: exported function NewYandexCloudAPI should have comment or be unexported (golint)
    • yandex-cloud-controller-manager/pkg/cloudprovider/yandex/instances.go
    • Line 18: warning: exported method Cloud.NodeAddresses should have comment or be unexported (golint)
    • Line 27: warning: exported method Cloud.NodeAddressesByProviderID should have comment or be unexported (golint)
    • Line 36: warning: exported method Cloud.InstanceID should have comment or be unexported (golint)
    • Line 45: warning: exported method Cloud.InstanceType should have comment or be unexported (golint)
    • Line 49: warning: exported method Cloud.InstanceTypeByProviderID should have comment or be unexported (golint)
    • Line 53: warning: exported method Cloud.AddSSHKeyToAllInstances should have comment or be unexported (golint)
    • Line 57: warning: exported method Cloud.CurrentNodeName should have comment or be unexported (golint)
    • Line 61: warning: exported method Cloud.InstanceExistsByProviderID should have comment or be unexported (golint)
    • Line 74: warning: exported method Cloud.InstanceShutdownByProviderID 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!