Preparing report...

Report for k8s.io/kubernetes

A    Great!    Found 1607 issues across 9234 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!


golint0%

Golint is a linter for Go source code.

An error occurred while running this test (exit status 3)


gocyclo91%

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.

    • /k8s.io/kubernetes/pkg/apis/apps/v1/zz_generated.defaults.go
    • Line 707: warning: cyclomatic complexity 72 of function SetObjectDefaults_StatefulSet() is high (> 15) (gocyclo)
    • Line 44: warning: cyclomatic complexity 71 of function SetObjectDefaults_DaemonSet() is high (> 15) (gocyclo)
    • Line 486: warning: cyclomatic complexity 71 of function SetObjectDefaults_ReplicaSet() is high (> 15) (gocyclo)
    • Line 265: warning: cyclomatic complexity 71 of function SetObjectDefaults_Deployment() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/apis/core/v1/zz_generated.conversion.go
    • Line 43: warning: cyclomatic complexity 429 of function RegisterConversions() is high (> 15) (gocyclo)
    • Line 5821: warning: cyclomatic complexity 28 of function autoConvert_url_Values_To_v1_PodLogOptions() is high (> 15) (gocyclo)
    • Line 5672: warning: cyclomatic complexity 18 of function autoConvert_url_Values_To_v1_PodExecOptions() is high (> 15) (gocyclo)
    • Line 5520: warning: cyclomatic complexity 16 of function autoConvert_url_Values_To_v1_PodAttachOptions() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/registry/core/service/storage/rest.go
    • Line 851: warning: cyclomatic complexity 37 of function (*REST).tryDefaultValidateServiceClusterIPFields() is high (> 15) (gocyclo)
    • Line 404: warning: cyclomatic complexity 28 of function (*REST).Update() is high (> 15) (gocyclo)
    • Line 191: warning: cyclomatic complexity 16 of function (*REST).Create() is high (> 15) (gocyclo)
    • Line 732: warning: cyclomatic complexity 16 of function (*REST).handleClusterIPsForUpdatedService() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/staging/src/k8s.io/legacy-cloud-providers/azure/azure_vmss.go
    • Line 1063: warning: cyclomatic complexity 30 of function (*scaleSet).ensureVMSSInPool() is high (> 15) (gocyclo)
    • Line 934: warning: cyclomatic complexity 24 of function (*scaleSet).EnsureHostInPool() is high (> 15) (gocyclo)
    • Line 1523: warning: cyclomatic complexity 21 of function (*scaleSet).EnsureBackendPoolDeleted() is high (> 15) (gocyclo)
    • Line 1411: warning: cyclomatic complexity 19 of function (*scaleSet).ensureBackendPoolDeletedFromVMSS() is high (> 15) (gocyclo)
    • Line 1200: warning: cyclomatic complexity 17 of function (*scaleSet).EnsureHostsInPool() is high (> 15) (gocyclo)
    • Line 248: warning: cyclomatic complexity 16 of function (*scaleSet).getVmssVMByInstanceID() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/get/get.go
    • Line 190: warning: cyclomatic complexity 35 of function (*GetOptions).Complete() is high (> 15) (gocyclo)
    • Line 448: warning: cyclomatic complexity 30 of function (*GetOptions).Run() is high (> 15) (gocyclo)
    • Line 729: warning: cyclomatic complexity 17 of function (*GetOptions).printGeneric() is high (> 15) (gocyclo)
    • Line 624: warning: cyclomatic complexity 16 of function (*GetOptions).watch() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go
    • Line 1554: warning: cyclomatic complexity 26 of function TestListContinuation() is high (> 15) (gocyclo)
    • Line 1823: warning: cyclomatic complexity 24 of function TestListInconsistentContinuation() is high (> 15) (gocyclo)
    • Line 1058: warning: cyclomatic complexity 23 of function TestList() is high (> 15) (gocyclo)
    • Line 652: warning: cyclomatic complexity 21 of function TestGuaranteedUpdate() is high (> 15) (gocyclo)
    • Line 1716: warning: cyclomatic complexity 17 of function TestListContinuationWithFilter() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/apis/core/zz_generated.deepcopy.go
    • Line 3764: warning: cyclomatic complexity 32 of function (*PodSpec).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 5687: warning: cyclomatic complexity 30 of function (*VolumeSource).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 3055: warning: cyclomatic complexity 23 of function (*PersistentVolumeSource).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1321: warning: cyclomatic complexity 16 of function (*EphemeralContainerCommon).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 727: warning: cyclomatic complexity 16 of function (*Container).DeepCopyInto() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/proxy/ipvs/proxier.go
    • Line 1025: warning: cyclomatic complexity 109 of function (*Proxier).syncProxyRules() is high (> 15) (gocyclo)
    • Line 335: warning: cyclomatic complexity 23 of function NewProxier() is high (> 15) (gocyclo)
    • Line 2044: warning: cyclomatic complexity 22 of function (*Proxier).syncEndpoint() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/controller/volume/persistentvolume/pv_controller.go
    • Line 542: warning: cyclomatic complexity 39 of function (*PersistentVolumeController).syncVolume() is high (> 15) (gocyclo)
    • Line 1480: warning: cyclomatic complexity 27 of function (*PersistentVolumeController).provisionClaimOperation() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 25 of function (*PersistentVolumeController).syncUnboundClaim() is high (> 15) (gocyclo)
    • Line 750: warning: cyclomatic complexity 16 of function (*PersistentVolumeController).updateClaimStatus() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/staging/src/k8s.io/api/core/v1/zz_generated.deepcopy.go
    • Line 3757: warning: cyclomatic complexity 33 of function (*PodSpec).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 5702: warning: cyclomatic complexity 30 of function (*VolumeSource).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 3053: warning: cyclomatic complexity 23 of function (*PersistentVolumeSource).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 727: warning: cyclomatic complexity 16 of function (*Container).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1321: warning: cyclomatic complexity 16 of function (*EphemeralContainerCommon).DeepCopyInto() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/controller/replicaset/replica_set_test.go
    • Line 1139: warning: cyclomatic complexity 27 of function TestExpectationsOnRecreate() is high (> 15) (gocyclo)
    • Line 885: warning: cyclomatic complexity 22 of function doTestControllerBurstReplicas() is high (> 15) (gocyclo)
    • Line 1341: warning: cyclomatic complexity 20 of function TestDeletionTimestamp() is high (> 15) (gocyclo)
    • Line 681: warning: cyclomatic complexity 19 of function TestUpdatePods() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/staging/src/k8s.io/legacy-cloud-providers/vsphere/vsphere.go
    • Line 1248: warning: cyclomatic complexity 43 of function (*VSphere).CreateVolume() is high (> 15) (gocyclo)
    • Line 327: warning: cyclomatic complexity 31 of function populateVsphereInstanceMap() is high (> 15) (gocyclo)
    • Line 1846: warning: cyclomatic complexity 25 of function (*VSphere).GetZoneToHosts() is high (> 15) (gocyclo)
    • Line 1111: warning: cyclomatic complexity 20 of function (*VSphere).DisksAreAttached() is high (> 15) (gocyclo)
    • Line 1623: warning: cyclomatic complexity 18 of function (*VSphere).GetZone() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/staging/src/k8s.io/legacy-cloud-providers/azure/azure_loadbalancer.go
    • Line 1089: warning: cyclomatic complexity 79 of function (*Cloud).reconcileLoadBalancer() is high (> 15) (gocyclo)
    • Line 1742: warning: cyclomatic complexity 50 of function (*Cloud).reconcileSecurityGroup() is high (> 15) (gocyclo)
    • Line 2170: warning: cyclomatic complexity 34 of function (*Cloud).reconcilePublicIP() is high (> 15) (gocyclo)
    • Line 1504: warning: cyclomatic complexity 34 of function (*Cloud).checkLoadBalancerResourcesConflicted() is high (> 15) (gocyclo)
    • Line 952: warning: cyclomatic complexity 29 of function (*Cloud).isFrontendIPConfigUnsafeToDelete() is high (> 15) (gocyclo)
    • Line 639: warning: cyclomatic complexity 28 of function (*Cloud).ensurePublicIPExists() is high (> 15) (gocyclo)
    • Line 2304: warning: cyclomatic complexity 23 of function (*Cloud).safeDeletePublicIP() is high (> 15) (gocyclo)
    • Line 1607: warning: cyclomatic complexity 22 of function (*Cloud).reconcileLoadBalancerRule() is high (> 15) (gocyclo)
    • Line 350: warning: cyclomatic complexity 19 of function (*Cloud).getServiceLoadBalancer() is high (> 15) (gocyclo)
    • Line 900: warning: cyclomatic complexity 18 of function (*Cloud).isFrontendIPChanged() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/apis/core/validation/validation.go
    • Line 1651: warning: cyclomatic complexity 74 of function ValidatePersistentVolumeSpec() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 67 of function validateVolumeSource() is high (> 15) (gocyclo)
    • Line 4182: warning: cyclomatic complexity 54 of function ValidateService() is high (> 15) (gocyclo)
    • Line 5044: warning: cyclomatic complexity 46 of function ValidateLimitRange() is high (> 15) (gocyclo)
    • Line 6220: warning: cyclomatic complexity 31 of function validateServiceClusterIPsRelatedFields() is high (> 15) (gocyclo)
    • Line 781: warning: cyclomatic complexity 31 of function validateISCSIPersistentVolumeSource() is high (> 15) (gocyclo)
    • Line 741: warning: cyclomatic complexity 27 of function validateISCSIVolumeSource() is high (> 15) (gocyclo)
    • Line 5980: warning: cyclomatic complexity 23 of function validateWindowsHostProcessPod() is high (> 15) (gocyclo)
    • Line 5186: warning: cyclomatic complexity 22 of function ValidateSecret() is high (> 15) (gocyclo)
    • Line 1064: warning: cyclomatic complexity 21 of function validateProjectionSources() is high (> 15) (gocyclo)
    • Line 5901: warning: cyclomatic complexity 20 of function validateWindowsSecurityContextOptions() is high (> 15) (gocyclo)
    • Line 1976: warning: cyclomatic complexity 20 of function ValidatePersistentVolumeClaimSpec() is high (> 15) (gocyclo)
    • Line 6342: warning: cyclomatic complexity 19 of function validateUpgradeDowngradeClusterIPs() is high (> 15) (gocyclo)
    • Line 6400: warning: cyclomatic complexity 19 of function validateUpgradeDowngradeIPFamilies() is high (> 15) (gocyclo)
    • Line 5814: warning: cyclomatic complexity 18 of function ValidateSecurityContext() is high (> 15) (gocyclo)
    • Line 2827: warning: cyclomatic complexity 18 of function validateContainers() is high (> 15) (gocyclo)
    • Line 5349: warning: cyclomatic complexity 18 of function ValidateResourceRequirements() is high (> 15) (gocyclo)
    • Line 3315: warning: cyclomatic complexity 17 of function ValidatePodSpec() is high (> 15) (gocyclo)
    • Line 5463: warning: cyclomatic complexity 16 of function validateScopedResourceSelectorRequirement() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go
    • Line 1110: warning: cyclomatic complexity 28 of function mergePatchIntoOriginal() is high (> 15) (gocyclo)
    • Line 551: warning: cyclomatic complexity 24 of function diffLists() is high (> 15) (gocyclo)
    • Line 717: warning: cyclomatic complexity 23 of function diffListsOfMaps() is high (> 15) (gocyclo)
    • Line 1280: warning: cyclomatic complexity 21 of function mergeMap() is high (> 15) (gocyclo)
    • Line 168: warning: cyclomatic complexity 17 of function diffMaps() is high (> 15) (gocyclo)
    • Line 1604: warning: cyclomatic complexity 17 of function sortMergeListsByNameMap() is high (> 15) (gocyclo)
    • Line 2019: warning: cyclomatic complexity 16 of function CreateThreeWayMergePatch() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/volume/glusterfs/glusterfs.go
    • Line 1009: warning: cyclomatic complexity 54 of function parseClassParameters() is high (> 15) (gocyclo)
    • Line 320: warning: cyclomatic complexity 23 of function (*glusterfsMounter).setUpAtInternal() is high (> 15) (gocyclo)
    • Line 782: warning: cyclomatic complexity 17 of function (*glusterfsVolumeProvisioner).CreateVolume() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/kubelet/kubelet.go
    • Line 1496: warning: cyclomatic complexity 57 of function (*Kubelet).syncPod() is high (> 15) (gocyclo)
    • Line 341: warning: cyclomatic complexity 47 of function NewMainKubelet() is high (> 15) (gocyclo)
    • Line 1925: warning: cyclomatic complexity 27 of function (*Kubelet).syncLoopIteration() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/test/integration/volumescheduling/volume_binding_test.go
    • Line 101: warning: cyclomatic complexity 24 of function TestVolumeBinding() is high (> 15) (gocyclo)
    • Line 711: warning: cyclomatic complexity 21 of function testVolumeProvision() is high (> 15) (gocyclo)
    • Line 525: warning: cyclomatic complexity 17 of function testVolumeBindingWithAffinity() is high (> 15) (gocyclo)
    • Line 861: warning: cyclomatic complexity 17 of function TestCapacity() is high (> 15) (gocyclo)
    • Line 284: warning: cyclomatic complexity 16 of function TestVolumeBindingRescheduling() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/test/integration/apiserver/apiserver_test.go
    • Line 1322: warning: cyclomatic complexity 74 of function TestTransform() is high (> 15) (gocyclo)
    • Line 781: warning: cyclomatic complexity 73 of function TestMetadataClient() is high (> 15) (gocyclo)
    • Line 444: warning: cyclomatic complexity 49 of function testListOptionsCase() is high (> 15) (gocyclo)
    • Line 1108: warning: cyclomatic complexity 33 of function TestAPICRDProtobuf() is high (> 15) (gocyclo)
    • Line 328: warning: cyclomatic complexity 24 of function TestListOptions() is high (> 15) (gocyclo)
    • Line 2051: warning: cyclomatic complexity 16 of function expectTableV1WatchEvents() is high (> 15) (gocyclo)
    • Line 1942: warning: cyclomatic complexity 16 of function expectTableWatchEvents() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/kubelet/eviction/eviction_manager_test.go
    • Line 785: warning: cyclomatic complexity 27 of function TestNodeReclaimFuncs() is high (> 15) (gocyclo)
    • Line 185: warning: cyclomatic complexity 25 of function TestMemoryPressure() is high (> 15) (gocyclo)
    • Line 1007: warning: cyclomatic complexity 22 of function TestInodePressureNodeFsInodes() is high (> 15) (gocyclo)
    • Line 448: warning: cyclomatic complexity 21 of function TestDiskPressureNodeFs() is high (> 15) (gocyclo)
    • Line 1364: warning: cyclomatic complexity 20 of function TestAllocatableMemoryPressure() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/apis/apps/v1beta2/zz_generated.defaults.go
    • Line 707: warning: cyclomatic complexity 72 of function SetObjectDefaults_StatefulSet() is high (> 15) (gocyclo)
    • Line 265: warning: cyclomatic complexity 71 of function SetObjectDefaults_Deployment() is high (> 15) (gocyclo)
    • Line 44: warning: cyclomatic complexity 71 of function SetObjectDefaults_DaemonSet() is high (> 15) (gocyclo)
    • Line 486: warning: cyclomatic complexity 71 of function SetObjectDefaults_ReplicaSet() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/test/integration/deployment/deployment_test.go
    • Line 660: warning: cyclomatic complexity 37 of function TestScaledRolloutDeployment() is high (> 15) (gocyclo)
    • Line 1164: warning: cyclomatic complexity 18 of function TestReplicaSetOrphaningAndAdoptionWhenLabelsChange() is high (> 15) (gocyclo)
    • Line 115: warning: cyclomatic complexity 16 of function TestDeploymentRollingUpdate() is high (> 15) (gocyclo)
    • Line 246: warning: cyclomatic complexity 16 of function TestPausedDeployment() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/apis/autoscaling/v1/conversion.go
    • Line 280: warning: cyclomatic complexity 24 of function Convert_autoscaling_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler() is high (> 15) (gocyclo)
    • Line 375: warning: cyclomatic complexity 19 of function Convert_v1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutoscaler() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/registry/core/service/storage/rest_test.go
    • Line 1574: warning: cyclomatic complexity 36 of function TestServiceRegistryResourceLocation() is high (> 15) (gocyclo)
    • Line 2252: warning: cyclomatic complexity 28 of function TestInitClusterIP() is high (> 15) (gocyclo)
    • Line 5145: warning: cyclomatic complexity 21 of function isValidClusterIPFields() is high (> 15) (gocyclo)
    • Line 180: warning: cyclomatic complexity 21 of function NewTestRESTWithPods() is high (> 15) (gocyclo)
    • Line 3156: warning: cyclomatic complexity 19 of function TestServiceUpgrade() is high (> 15) (gocyclo)
    • Line 3648: warning: cyclomatic complexity 17 of function TestDefaultingValidation() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/cmd/kubelet/app/server.go
    • Line 516: warning: cyclomatic complexity 65 of function run() is high (> 15) (gocyclo)
    • Line 115: warning: cyclomatic complexity 26 of function NewKubeletCommand() is high (> 15) (gocyclo)
    • Line 1094: warning: cyclomatic complexity 22 of function RunKubelet() is high (> 15) (gocyclo)
    • Line 999: warning: cyclomatic complexity 18 of function InitializeTLS() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/staging/src/k8s.io/legacy-cloud-providers/aws/aws.go
    • Line 3902: warning: cyclomatic complexity 69 of function (*Cloud).EnsureLoadBalancer() is high (> 15) (gocyclo)
    • Line 4564: warning: cyclomatic complexity 29 of function (*Cloud).EnsureLoadBalancerDeleted() is high (> 15) (gocyclo)
    • Line 2180: warning: cyclomatic complexity 24 of function (*awsDisk).waitForAttachmentStatus() is high (> 15) (gocyclo)
    • Line 1258: warning: cyclomatic complexity 23 of function newAWSCloud() is high (> 15) (gocyclo)
    • Line 4441: warning: cyclomatic complexity 22 of function (*Cloud).updateInstanceSecurityGroupsForLoadBalancer() is high (> 15) (gocyclo)
    • Line 1453: warning: cyclomatic complexity 19 of function (*Cloud).NodeAddresses() is high (> 15) (gocyclo)
    • Line 3437: warning: cyclomatic complexity 18 of function (*Cloud).findELBSubnets() is high (> 15) (gocyclo)
    • Line 2364: warning: cyclomatic complexity 16 of function (*Cloud).AttachDisk() is high (> 15) (gocyclo)
    • Line 2531: warning: cyclomatic complexity 16 of function (*Cloud).CreateDisk() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/get/get_test.go
    • Line 470: warning: cyclomatic complexity 25 of function TestNoBlankLinesForGetMultipleTableResource() is high (> 15) (gocyclo)
    • Line 348: warning: cyclomatic complexity 24 of function TestGetMultipleResourceTypesShowKinds() is high (> 15) (gocyclo)
    • Line 541: warning: cyclomatic complexity 24 of function TestNoBlankLinesForGetAll() is high (> 15) (gocyclo)
    • Line 409: warning: cyclomatic complexity 24 of function TestGetMultipleTableResourceTypesShowKinds() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/staging/src/k8s.io/kubectl/pkg/describe/describe.go
    • Line 3828: warning: cyclomatic complexity 40 of function describeHorizontalPodAutoscalerV2beta2() is high (> 15) (gocyclo)
    • Line 848: warning: cyclomatic complexity 34 of function describeVolumes() is high (> 15) (gocyclo)
    • Line 1464: warning: cyclomatic complexity 28 of function describePersistentVolume() is high (> 15) (gocyclo)
    • Line 738: warning: cyclomatic complexity 21 of function describePod() is high (> 15) (gocyclo)
    • Line 2835: warning: cyclomatic complexity 18 of function describeService() is high (> 15) (gocyclo)
    • Line 3510: warning: cyclomatic complexity 17 of function describeNode() is high (> 15) (gocyclo)
    • Line 1834: warning: cyclomatic complexity 17 of function describeContainerEnvVars() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/volume/csi/csi_plugin_test.go
    • Line 759: warning: cyclomatic complexity 21 of function TestPluginNewMounterWithInline() is high (> 15) (gocyclo)
    • Line 648: warning: cyclomatic complexity 21 of function TestPluginNewMounter() is high (> 15) (gocyclo)
    • Line 508: warning: cyclomatic complexity 20 of function TestPluginConstructVolumeSpecWithInline() is high (> 15) (gocyclo)
    • Line 413: warning: cyclomatic complexity 16 of function TestPluginConstructVolumeSpec() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/kubelet/kubelet_pods.go
    • Line 576: warning: cyclomatic complexity 57 of function (*Kubelet).makeEnvironmentVariables() is high (> 15) (gocyclo)
    • Line 1664: warning: cyclomatic complexity 41 of function (*Kubelet).convertToAPIContainerStatuses() is high (> 15) (gocyclo)
    • Line 1416: warning: cyclomatic complexity 31 of function getPhase() is high (> 15) (gocyclo)
    • Line 143: warning: cyclomatic complexity 29 of function makeMounts() is high (> 15) (gocyclo)
    • Line 1299: warning: cyclomatic complexity 20 of function (*Kubelet).validateContainerLogStatus() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/staging/src/k8s.io/legacy-cloud-providers/aws/aws_loadbalancer.go
    • Line 139: warning: cyclomatic complexity 50 of function (*Cloud).ensureLoadBalancerv2() is high (> 15) (gocyclo)
    • Line 964: warning: cyclomatic complexity 40 of function (*Cloud).ensureLoadBalancer() is high (> 15) (gocyclo)
    • Line 780: warning: cyclomatic complexity 20 of function (*Cloud).updateInstanceSecurityGroupsForNLB() is high (> 15) (gocyclo)
    • Line 568: warning: cyclomatic complexity 19 of function (*Cloud).ensureTargetGroup() is high (> 15) (gocyclo)
    • Line 1369: warning: cyclomatic complexity 16 of function (*Cloud).ensureLoadBalancerHealthCheck() is high (> 15) (gocyclo)
    • Line 397: warning: cyclomatic complexity 16 of function (*Cloud).reconcileLBAttributes() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/staging/src/k8s.io/legacy-cloud-providers/azure/azure_test.go
    • Line 2017: warning: cyclomatic complexity 33 of function validateConfig() is high (> 15) (gocyclo)
    • Line 2892: warning: cyclomatic complexity 31 of function TestCanCombineSharedAndPrivateRulesInSameGroup() is high (> 15) (gocyclo)
    • Line 1585: warning: cyclomatic complexity 28 of function validateLoadBalancer() is high (> 15) (gocyclo)
    • Line 2699: warning: cyclomatic complexity 18 of function TestIfSomeServicesShareARuleAndOneIsDeletedItIsRemovedFromTheRightRule() is high (> 15) (gocyclo)
    • Line 2538: warning: cyclomatic complexity 17 of function TestIfServicesSpecifySharedRuleButSomeAreOnDifferentPortsThenRulesAreSeparatedOrConsoliatedByPort() is high (> 15) (gocyclo)
    • /k8s.io/kubernetes/pkg/controller/statefulset/stateful_set_control_test.go
    • Line 783: warning: cyclomatic complexity 46 of function TestStatefulSetControlOnDeleteUpdate() is high (> 15) (gocyclo)
    • Line 1312: warning: cyclomatic complexity 40 of function TestStatefulSetControlRollback() is high (> 15) (gocyclo)
    • Line 1049: warning: cyclomatic complexity 29 of function TestStatefulSetControlRollingUpdateWithPartition() is high (> 15) (gocyclo)
    • Line 2090: warning: cyclomatic complexity 22 of function updateStatefulSetControl() is high (> 15) (gocyclo)
    • Line 610: warning: cyclomatic complexity 21 of function TestStatefulSetControlRollingUpdate() is high (> 15) (gocyclo)
    • Line 484: warning: cyclomatic complexity 21 of function TestStatefulSetControl_getSetRevisions() is high (> 15) (gocyclo)
    • Line 191: warning: cyclomatic complexity 18 of function ReplacesPods() is high (> 15) (gocyclo)
    • Line 1938: warning: cyclomatic complexity 17 of function scaleUpStatefulSetControl() is high (> 15) (gocyclo)
    • Line 1878: warning: cyclomatic complexity 16 of function assertUpdateInvariants() is high (> 15) (gocyclo)

ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


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!