Preparing report...

Report for github.com/kubernetes-sigs/cluster-api-provider-vsphere

A+    Excellent!    Found 106 issues across 279 files

Tweet

gofmt97%

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!


golint74%

Golint is a linter for Go source code.

    • cluster-api-provider-vsphere/packaging/flavorgen/flavors/util/helpers.go
    • Line 31: warning: exported type Replacement should have comment or be unexported (golint)
    • Line 122: warning: exported function GenerateObjectYAML should have comment or be unexported (golint)
    • Line 167: warning: exported function GenerateManifestYaml should have comment or be unexported (golint)
    • Line 178: warning: exported function PrintObjects should have comment or be unexported (golint)
    • Line 185: warning: exported function TypeToKind should have comment or be unexported (golint)
    • cluster-api-provider-vsphere/api/v1alpha3/vspherefailuredomain_types.go
    • Line 23: warning: exported type FailureDomainType should have comment or be unexported (golint)
    • Line 26: warning: exported const HostGroupFailureDomain should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type FailureDomain should have comment or be unexported (golint)
    • Line 59: warning: exported type Topology should have comment or be unexported (golint)
    • Line 82: warning: exported type FailureDomainHosts should have comment or be unexported (golint)
    • cluster-api-provider-vsphere/api/v1alpha3/vspheremachinetemplate_conversion.go
    • Line 28: warning: comment on exported method VSphereMachineTemplate.ConvertTo should be of the form "ConvertTo ..." (golint)
    • Line 45: warning: exported method VSphereMachineTemplate.ConvertFrom should have comment or be unexported (golint)
    • Line 45: warning: receiver name dst should be consistent with previous receiver name src for VSphereMachineTemplate (golint)
    • Line 59: warning: exported method VSphereMachineTemplateList.ConvertTo should have comment or be unexported (golint)
    • Line 64: warning: exported method VSphereMachineTemplateList.ConvertFrom should have comment or be unexported (golint)
    • Line 64: warning: receiver name dst should be consistent with previous receiver name src for VSphereMachineTemplateList (golint)
    • Line 69: warning: comment on exported function Convert_v1alpha3_ObjectMeta_To_v1beta1_ObjectMeta should be of the form "Convert_v1alpha3_ObjectMeta_To_v1beta1_ObjectMeta ..." (golint)
    • Line 70: warning: don't use underscores in Go names; func Convert_v1alpha3_ObjectMeta_To_v1beta1_ObjectMeta should be ConvertV1alpha3ObjectMetaToV1beta1ObjectMeta (golint)
    • Line 76: warning: comment on exported function Convert_v1beta1_ObjectMeta_To_v1alpha3_ObjectMeta should be of the form "Convert_v1beta1_ObjectMeta_To_v1alpha3_ObjectMeta ..." (golint)
    • Line 77: warning: don't use underscores in Go names; func Convert_v1beta1_ObjectMeta_To_v1alpha3_ObjectMeta should be ConvertV1beta1ObjectMetaToV1alpha3ObjectMeta (golint)
    • cluster-api-provider-vsphere/api/v1alpha4/vspherefailuredomain_types.go
    • Line 23: warning: exported type FailureDomainType should have comment or be unexported (golint)
    • Line 26: warning: exported const HostGroupFailureDomain should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type FailureDomain should have comment or be unexported (golint)
    • Line 59: warning: exported type Topology should have comment or be unexported (golint)
    • Line 83: warning: exported type FailureDomainHosts should have comment or be unexported (golint)
    • cluster-api-provider-vsphere/test/e2e/log_collector.go
    • Line 39: warning: exported const DefaultUserName should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported type LogCollector should have comment or be unexported (golint)
    • Line 45: warning: exported method LogCollector.CollectMachinePoolLog should have comment or be unexported (golint)
    • Line 49: warning: exported method LogCollector.CollectMachineLog should have comment or be unexported (golint)
    • cluster-api-provider-vsphere/api/v1beta1/vspherefailuredomain_types.go
    • Line 23: warning: exported type FailureDomainType should have comment or be unexported (golint)
    • Line 26: warning: exported const HostGroupFailureDomain should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type FailureDomain should have comment or be unexported (golint)
    • Line 59: warning: exported type Topology should have comment or be unexported (golint)
    • Line 83: warning: exported type FailureDomainHosts should have comment or be unexported (golint)
    • cluster-api-provider-vsphere/api/v1alpha4/vsphereclusteridentity_types.go
    • Line 25: warning: exported const SecretIdentitySetFinalizer should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type VSphereClusterIdentitySpec should have comment or be unexported (golint)
    • Line 40: warning: exported type VSphereClusterIdentityStatus should have comment or be unexported (golint)
    • Line 49: warning: exported type AllowedNamespaces should have comment or be unexported (golint)
    • Line 55: warning: exported type VSphereIdentityKind should have comment or be unexported (golint)
    • Line 58: warning: exported var VSphereClusterIdentityKind should have comment or be unexported (golint)
    • Line 62: warning: exported type VSphereIdentityReference should have comment or be unexported (golint)
    • Line 72: warning: exported method VSphereClusterIdentity.GetConditions should have comment or be unexported (golint)
    • Line 76: warning: exported method VSphereClusterIdentity.SetConditions should have comment or be unexported (golint)
    • Line 93: warning: comment on exported type VSphereClusterIdentityList should be of the form "VSphereClusterIdentityList ..." (with optional leading article) (golint)
    • cluster-api-provider-vsphere/api/v1beta1/vsphereclusteridentity_types.go
    • Line 25: warning: exported const SecretIdentitySetFinalizer should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type VSphereClusterIdentitySpec should have comment or be unexported (golint)
    • Line 40: warning: exported type VSphereClusterIdentityStatus should have comment or be unexported (golint)
    • Line 49: warning: exported type AllowedNamespaces should have comment or be unexported (golint)
    • Line 55: warning: exported type VSphereIdentityKind should have comment or be unexported (golint)
    • Line 58: warning: exported var VSphereClusterIdentityKind should have comment or be unexported (golint)
    • Line 62: warning: exported type VSphereIdentityReference should have comment or be unexported (golint)
    • Line 72: warning: exported method VSphereClusterIdentity.GetConditions should have comment or be unexported (golint)
    • Line 76: warning: exported method VSphereClusterIdentity.SetConditions should have comment or be unexported (golint)
    • Line 94: warning: comment on exported type VSphereClusterIdentityList should be of the form "VSphereClusterIdentityList ..." (with optional leading article) (golint)
    • cluster-api-provider-vsphere/test/helpers/simulator.go
    • Line 34: warning: exported type Simulator should have comment or be unexported (golint)
    • Line 39: warning: exported method Simulator.Destroy should have comment or be unexported (golint)
    • Line 44: warning: exported method Simulator.ServerURL should have comment or be unexported (golint)
    • Line 48: warning: exported type Builder should have comment or be unexported (golint)
    • Line 53: warning: exported function VCSimBuilder should have comment or be unexported (golint)
    • Line 57: warning: exported method Builder.WithModel should have comment or be unexported (golint)
    • Line 62: warning: exported method Builder.WithOperations should have comment or be unexported (golint)
    • Line 67: warning: exported method Builder.Build should have comment or be unexported (golint)
    • Line 113: warning: exported method Simulator.Run should have comment or be unexported (golint)
    • Line 121: warning: exported method Simulator.Username should have comment or be unexported (golint)
    • Line 125: warning: exported method Simulator.Password should have comment or be unexported (golint)
    • cluster-api-provider-vsphere/api/v1alpha3/vspherecluster_conversion.go
    • Line 45: warning: receiver name dst should be consistent with previous receiver name src for VSphereCluster (golint)
    • Line 65: warning: receiver name dst should be consistent with previous receiver name src for VSphereClusterList (golint)
    • Line 70: warning: exported function Convert_v1alpha3_VSphereClusterSpec_To_v1beta1_VSphereClusterSpec should have comment or be unexported (golint)
    • Line 70: warning: don't use underscores in Go names; func Convert_v1alpha3_VSphereClusterSpec_To_v1beta1_VSphereClusterSpec should be ConvertV1alpha3VSphereClusterSpecToV1beta1VSphereClusterSpec (golint)
    • cluster-api-provider-vsphere/pkg/identity/identity.go
    • Line 33: warning: exported const UsernameKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type Credentials should have comment or be unexported (golint)
    • Line 42: warning: exported function GetCredentials should have comment or be unexported (golint)
    • Line 114: warning: exported function IsSecretIdentity should have comment or be unexported (golint)
    • cluster-api-provider-vsphere/pkg/services/cloudprovider/csi.go
    • Line 32: warning: exported const DefaultCSIControllerImage should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported function CSIControllerServiceAccount should have comment or be unexported (golint)
    • Line 53: warning: exported function CSIControllerClusterRole should have comment or be unexported (golint)
    • Line 118: warning: exported function CSIControllerClusterRoleBinding should have comment or be unexported (golint)
    • Line 138: warning: exported function CSIDriver should have comment or be unexported (golint)
    • Line 150: warning: exported function VSphereCSINodeDaemonSet should have comment or be unexported (golint)
    • Line 240: warning: exported function NodeDriverRegistrarContainer should have comment or be unexported (golint)
    • Line 286: warning: exported function VSphereCSINodeContainer should have comment or be unexported (golint)
    • Line 372: warning: exported function LivenessProbeForNodeContainer should have comment or be unexported (golint)
    • Line 386: warning: exported function CSIControllerDeployment should have comment or be unexported (golint)
    • Line 449: warning: exported function CSIAttacherContainer should have comment or be unexported (golint)
    • Line 469: warning: exported function VSphereCSIControllerContainer should have comment or be unexported (golint)
    • Line 528: warning: exported function LivenessProbeForCSIControllerContainer should have comment or be unexported (golint)
    • Line 548: warning: exported function VSphereSyncerContainer should have comment or be unexported (golint)
    • Line 577: warning: exported function CSIProvisionerContainer should have comment or be unexported (golint)
    • Line 603: warning: exported function CSICloudConfigSecret should have comment or be unexported (golint)
    • Line 616: warning: exported function CSIComponentConfigSecret should have comment or be unexported (golint)
    • Line 629: warning: exported function CSIFeatureStatesConfigMap should have comment or be unexported (golint)
    • cluster-api-provider-vsphere/api/v1alpha4/vspheremachinetemplate_conversion.go
    • Line 28: warning: comment on exported method VSphereMachineTemplate.ConvertTo should be of the form "ConvertTo ..." (golint)
    • Line 45: warning: exported method VSphereMachineTemplate.ConvertFrom should have comment or be unexported (golint)
    • Line 45: warning: receiver name dst should be consistent with previous receiver name src for VSphereMachineTemplate (golint)
    • Line 59: warning: exported method VSphereMachineTemplateList.ConvertTo should have comment or be unexported (golint)
    • Line 64: warning: exported method VSphereMachineTemplateList.ConvertFrom should have comment or be unexported (golint)
    • Line 64: warning: receiver name dst should be consistent with previous receiver name src for VSphereMachineTemplateList (golint)
    • Line 69: warning: comment on exported function Convert_v1alpha4_ObjectMeta_To_v1beta1_ObjectMeta should be of the form "Convert_v1alpha4_ObjectMeta_To_v1beta1_ObjectMeta ..." (golint)
    • Line 70: warning: don't use underscores in Go names; func Convert_v1alpha4_ObjectMeta_To_v1beta1_ObjectMeta should be ConvertV1alpha4ObjectMetaToV1beta1ObjectMeta (golint)
    • Line 76: warning: comment on exported function Convert_v1beta1_ObjectMeta_To_v1alpha4_ObjectMeta should be of the form "Convert_v1beta1_ObjectMeta_To_v1alpha4_ObjectMeta ..." (golint)
    • Line 77: warning: don't use underscores in Go names; func Convert_v1beta1_ObjectMeta_To_v1alpha4_ObjectMeta should be ConvertV1beta1ObjectMetaToV1alpha4ObjectMeta (golint)
    • cluster-api-provider-vsphere/pkg/context/vspheredeploymentzone_context.go
    • Line 30: warning: exported type VSphereDeploymentZoneContext should have comment or be unexported (golint)
    • Line 39: warning: exported method VSphereDeploymentZoneContext.Patch should have comment or be unexported (golint)
    • Line 54: warning: exported method VSphereDeploymentZoneContext.GetSession should have comment or be unexported (golint)
    • Line 58: warning: exported method VSphereDeploymentZoneContext.GetVsphereFailureDomain should have comment or be unexported (golint)
    • cluster-api-provider-vsphere/api/v1alpha3/vsphereclusteridentity_types.go
    • Line 25: warning: exported const SecretIdentitySetFinalizer should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type VSphereClusterIdentitySpec should have comment or be unexported (golint)
    • Line 40: warning: exported type VSphereClusterIdentityStatus should have comment or be unexported (golint)
    • Line 49: warning: exported type AllowedNamespaces should have comment or be unexported (golint)
    • Line 55: warning: exported type VSphereIdentityKind should have comment or be unexported (golint)
    • Line 58: warning: exported var VSphereClusterIdentityKind should have comment or be unexported (golint)
    • Line 62: warning: exported type VSphereIdentityReference should have comment or be unexported (golint)
    • Line 72: warning: exported method VSphereClusterIdentity.GetConditions should have comment or be unexported (golint)
    • Line 76: warning: exported method VSphereClusterIdentity.SetConditions should have comment or be unexported (golint)
    • Line 93: warning: comment on exported type VSphereClusterIdentityList should be of the form "VSphereClusterIdentityList ..." (with optional leading article) (golint)
    • cluster-api-provider-vsphere/test/helpers/envtest.go
    • Line 195: warning: exported method TestEnvironment.StartManager should have comment or be unexported (golint)
    • Line 201: warning: exported method TestEnvironment.Stop should have comment or be unexported (golint)
    • Line 207: warning: exported method TestEnvironment.Cleanup should have comment or be unexported (golint)
    • Line 222: warning: exported method TestEnvironment.CreateNamespace should have comment or be unexported (golint)
    • Line 238: warning: exported method TestEnvironment.CreateKubeconfigSecret should have comment or be unexported (golint)
    • cluster-api-provider-vsphere/pkg/session/session.go
    • Line 53: warning: exported type Feature should have comment or be unexported (golint)
    • Line 58: warning: exported function DefaultFeature should have comment or be unexported (golint)
    • Line 64: warning: exported type Params should have comment or be unexported (golint)
    • Line 72: warning: exported function NewParams should have comment or be unexported (golint)
    • Line 78: warning: exported method Params.WithServer should have comment or be unexported (golint)
    • Line 83: warning: exported method Params.WithDatacenter should have comment or be unexported (golint)
    • Line 88: warning: exported method Params.WithUserInfo should have comment or be unexported (golint)
    • Line 93: warning: exported method Params.WithThumbprint should have comment or be unexported (golint)
    • Line 98: warning: exported method Params.WithFeatures should have comment or be unexported (golint)
    • cluster-api-provider-vsphere/api/v1beta1/vspheredeploymentzone_types.go
    • Line 55: warning: exported type Network should have comment or be unexported (golint)
    • Line 68: warning: exported type VSphereDeploymentZoneStatus should have comment or be unexported (golint)
    • Line 93: warning: exported method VSphereDeploymentZone.GetConditions should have comment or be unexported (golint)
    • Line 97: warning: exported method VSphereDeploymentZone.SetConditions should have comment or be unexported (golint)

gocyclo88%

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.

    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_sites.go
    • Line 535: warning: cyclomatic complexity 24 of function (*SitesApiService).ReplaceSite() is high (> 15) (gocyclo)
    • Line 66: warning: cyclomatic complexity 24 of function (*SitesApiService).CreateSite() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 17 of function (*SitesApiService).DeleteSite() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 16 of function (*SitesApiService).GetSite() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_server_switching_rule.go
    • Line 58: warning: cyclomatic complexity 24 of function (*ServerSwitchingRuleApiService).CreateServerSwitchingRule() is high (> 15) (gocyclo)
    • Line 511: warning: cyclomatic complexity 24 of function (*ServerSwitchingRuleApiService).ReplaceServerSwitchingRule() is high (> 15) (gocyclo)
    • Line 198: warning: cyclomatic complexity 17 of function (*ServerSwitchingRuleApiService).DeleteServerSwitchingRule() is high (> 15) (gocyclo)
    • Line 296: warning: cyclomatic complexity 16 of function (*ServerSwitchingRuleApiService).GetServerSwitchingRule() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_http_request_rule.go
    • Line 520: warning: cyclomatic complexity 24 of function (*HTTPRequestRuleApiService).ReplaceHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 59: warning: cyclomatic complexity 24 of function (*HTTPRequestRuleApiService).CreateHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 201: warning: cyclomatic complexity 17 of function (*HTTPRequestRuleApiService).DeleteHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 301: warning: cyclomatic complexity 16 of function (*HTTPRequestRuleApiService).GetHTTPRequestRule() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_ha_proxy_configuration_management.go
    • Line 8679: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceStickRule() is high (> 15) (gocyclo)
    • Line 7959: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 7687: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceFrontend() is high (> 15) (gocyclo)
    • Line 8104: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 7544: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceFilter() is high (> 15) (gocyclo)
    • Line 905: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 6986: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceBackend() is high (> 15) (gocyclo)
    • Line 1333: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateServer() is high (> 15) (gocyclo)
    • Line 1474: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateServerSwitchingRule() is high (> 15) (gocyclo)
    • Line 481: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateBind() is high (> 15) (gocyclo)
    • Line 764: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateFrontend() is high (> 15) (gocyclo)
    • Line 1899: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateTCPResponseRule() is high (> 15) (gocyclo)
    • Line 1191: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateLogTarget() is high (> 15) (gocyclo)
    • Line 6843: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceAcl() is high (> 15) (gocyclo)
    • Line 1615: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateStickRule() is high (> 15) (gocyclo)
    • Line 8967: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceTCPResponseRule() is high (> 15) (gocyclo)
    • Line 623: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateFilter() is high (> 15) (gocyclo)
    • Line 8249: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceLogTarget() is high (> 15) (gocyclo)
    • Line 7128: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceBackendSwitchingRule() is high (> 15) (gocyclo)
    • Line 1048: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 7271: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceBind() is high (> 15) (gocyclo)
    • Line 1757: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateTCPRequestRule() is high (> 15) (gocyclo)
    • Line 8393: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceServer() is high (> 15) (gocyclo)
    • Line 59: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateAcl() is high (> 15) (gocyclo)
    • Line 8823: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceTCPRequestRule() is high (> 15) (gocyclo)
    • Line 8536: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).ReplaceServerSwitchingRule() is high (> 15) (gocyclo)
    • Line 200: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateBackend() is high (> 15) (gocyclo)
    • Line 340: warning: cyclomatic complexity 24 of function (*HAProxyConfigurationManagementApiService).CreateBackendSwitchingRule() is high (> 15) (gocyclo)
    • Line 7827: warning: cyclomatic complexity 22 of function (*HAProxyConfigurationManagementApiService).ReplaceGlobal() is high (> 15) (gocyclo)
    • Line 7412: warning: cyclomatic complexity 22 of function (*HAProxyConfigurationManagementApiService).ReplaceDefaults() is high (> 15) (gocyclo)
    • Line 6714: warning: cyclomatic complexity 20 of function (*HAProxyConfigurationManagementApiService).PostHAProxyConfiguration() is high (> 15) (gocyclo)
    • Line 2436: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteFilter() is high (> 15) (gocyclo)
    • Line 2535: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteFrontend() is high (> 15) (gocyclo)
    • Line 3035: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteServerSwitchingRule() is high (> 15) (gocyclo)
    • Line 2634: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 2735: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 2836: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteLogTarget() is high (> 15) (gocyclo)
    • Line 3134: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteStickRule() is high (> 15) (gocyclo)
    • Line 3234: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteTCPRequestRule() is high (> 15) (gocyclo)
    • Line 3334: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteTCPResponseRule() is high (> 15) (gocyclo)
    • Line 2336: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteBind() is high (> 15) (gocyclo)
    • Line 2936: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteServer() is high (> 15) (gocyclo)
    • Line 2237: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteBackendSwitchingRule() is high (> 15) (gocyclo)
    • Line 2139: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteBackend() is high (> 15) (gocyclo)
    • Line 2040: warning: cyclomatic complexity 17 of function (*HAProxyConfigurationManagementApiService).DeleteAcl() is high (> 15) (gocyclo)
    • Line 5650: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetServer() is high (> 15) (gocyclo)
    • Line 5435: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetLogTarget() is high (> 15) (gocyclo)
    • Line 3758: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetBackendSwitchingRule() is high (> 15) (gocyclo)
    • Line 3647: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetBackend() is high (> 15) (gocyclo)
    • Line 4379: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetFilter() is high (> 15) (gocyclo)
    • Line 4068: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetBind() is high (> 15) (gocyclo)
    • Line 4899: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetHAProxyConfiguration() is high (> 15) (gocyclo)
    • Line 6074: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetStickRule() is high (> 15) (gocyclo)
    • Line 3433: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetAcl() is high (> 15) (gocyclo)
    • Line 5219: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 5762: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetServerSwitchingRule() is high (> 15) (gocyclo)
    • Line 6502: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetTCPResponseRule() is high (> 15) (gocyclo)
    • Line 4593: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetFrontend() is high (> 15) (gocyclo)
    • Line 6287: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetTCPRequestRule() is high (> 15) (gocyclo)
    • Line 5003: warning: cyclomatic complexity 16 of function (*HAProxyConfigurationManagementApiService).GetHTTPRequestRule() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_frontend_options.go
    • Line 4176: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).ReplaceAcl() is high (> 15) (gocyclo)
    • Line 1198: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).CreateTCPResponseRule() is high (> 15) (gocyclo)
    • Line 342: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).CreateBind() is high (> 15) (gocyclo)
    • Line 770: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).CreateHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 201: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).CreateBackendSwitchingRule() is high (> 15) (gocyclo)
    • Line 5042: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).ReplaceLogTarget() is high (> 15) (gocyclo)
    • Line 5331: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).ReplaceTCPResponseRule() is high (> 15) (gocyclo)
    • Line 913: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).CreateLogTarget() is high (> 15) (gocyclo)
    • Line 4897: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).ReplaceHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 484: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).CreateFilter() is high (> 15) (gocyclo)
    • Line 5187: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).ReplaceTCPRequestRule() is high (> 15) (gocyclo)
    • Line 4752: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).ReplaceHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 4463: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).ReplaceBind() is high (> 15) (gocyclo)
    • Line 4607: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).ReplaceFilter() is high (> 15) (gocyclo)
    • Line 59: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).CreateAcl() is high (> 15) (gocyclo)
    • Line 627: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).CreateHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 1056: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).CreateTCPRequestRule() is high (> 15) (gocyclo)
    • Line 4320: warning: cyclomatic complexity 24 of function (*FrontendOptionsApiService).ReplaceBackendSwitchingRule() is high (> 15) (gocyclo)
    • Line 1638: warning: cyclomatic complexity 17 of function (*FrontendOptionsApiService).DeleteFilter() is high (> 15) (gocyclo)
    • Line 1538: warning: cyclomatic complexity 17 of function (*FrontendOptionsApiService).DeleteBind() is high (> 15) (gocyclo)
    • Line 1339: warning: cyclomatic complexity 17 of function (*FrontendOptionsApiService).DeleteAcl() is high (> 15) (gocyclo)
    • Line 2142: warning: cyclomatic complexity 17 of function (*FrontendOptionsApiService).DeleteTCPResponseRule() is high (> 15) (gocyclo)
    • Line 2042: warning: cyclomatic complexity 17 of function (*FrontendOptionsApiService).DeleteTCPRequestRule() is high (> 15) (gocyclo)
    • Line 1941: warning: cyclomatic complexity 17 of function (*FrontendOptionsApiService).DeleteLogTarget() is high (> 15) (gocyclo)
    • Line 1840: warning: cyclomatic complexity 17 of function (*FrontendOptionsApiService).DeleteHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 1739: warning: cyclomatic complexity 17 of function (*FrontendOptionsApiService).DeleteHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 1439: warning: cyclomatic complexity 17 of function (*FrontendOptionsApiService).DeleteBackendSwitchingRule() is high (> 15) (gocyclo)
    • Line 3960: warning: cyclomatic complexity 16 of function (*FrontendOptionsApiService).GetTCPResponseRule() is high (> 15) (gocyclo)
    • Line 2456: warning: cyclomatic complexity 16 of function (*FrontendOptionsApiService).GetBackendSwitchingRule() is high (> 15) (gocyclo)
    • Line 3745: warning: cyclomatic complexity 16 of function (*FrontendOptionsApiService).GetTCPRequestRule() is high (> 15) (gocyclo)
    • Line 2668: warning: cyclomatic complexity 16 of function (*FrontendOptionsApiService).GetBind() is high (> 15) (gocyclo)
    • Line 3529: warning: cyclomatic complexity 16 of function (*FrontendOptionsApiService).GetLogTarget() is high (> 15) (gocyclo)
    • Line 3313: warning: cyclomatic complexity 16 of function (*FrontendOptionsApiService).GetHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 3097: warning: cyclomatic complexity 16 of function (*FrontendOptionsApiService).GetHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 2241: warning: cyclomatic complexity 16 of function (*FrontendOptionsApiService).GetAcl() is high (> 15) (gocyclo)
    • Line 2881: warning: cyclomatic complexity 16 of function (*FrontendOptionsApiService).GetFilter() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_frontend.go
    • Line 535: warning: cyclomatic complexity 24 of function (*FrontendApiService).ReplaceFrontend() is high (> 15) (gocyclo)
    • Line 66: warning: cyclomatic complexity 24 of function (*FrontendApiService).CreateFrontend() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 17 of function (*FrontendApiService).DeleteFrontend() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 16 of function (*FrontendApiService).GetFrontend() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_server.go
    • Line 58: warning: cyclomatic complexity 24 of function (*ServerApiService).CreateServer() is high (> 15) (gocyclo)
    • Line 511: warning: cyclomatic complexity 24 of function (*ServerApiService).ReplaceServer() is high (> 15) (gocyclo)
    • Line 198: warning: cyclomatic complexity 17 of function (*ServerApiService).DeleteServer() is high (> 15) (gocyclo)
    • Line 296: warning: cyclomatic complexity 16 of function (*ServerApiService).GetServer() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_backend.go
    • Line 66: warning: cyclomatic complexity 24 of function (*BackendApiService).CreateBackend() is high (> 15) (gocyclo)
    • Line 535: warning: cyclomatic complexity 24 of function (*BackendApiService).ReplaceBackend() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 17 of function (*BackendApiService).DeleteBackend() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 16 of function (*BackendApiService).GetBackend() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_stick_rule.go
    • Line 58: warning: cyclomatic complexity 24 of function (*StickRuleApiService).CreateStickRule() is high (> 15) (gocyclo)
    • Line 511: warning: cyclomatic complexity 24 of function (*StickRuleApiService).ReplaceStickRule() is high (> 15) (gocyclo)
    • Line 198: warning: cyclomatic complexity 17 of function (*StickRuleApiService).DeleteStickRule() is high (> 15) (gocyclo)
    • Line 296: warning: cyclomatic complexity 16 of function (*StickRuleApiService).GetStickRule() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_backend_options.go
    • Line 958: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).CreateServerSwitchingRule() is high (> 15) (gocyclo)
    • Line 1106: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).CreateStickRule() is high (> 15) (gocyclo)
    • Line 361: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).CreateHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).CreateFilter() is high (> 15) (gocyclo)
    • Line 61: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).CreateAcl() is high (> 15) (gocyclo)
    • Line 1255: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).CreateTCPRequestRule() is high (> 15) (gocyclo)
    • Line 810: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).CreateServer() is high (> 15) (gocyclo)
    • Line 511: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).CreateHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 661: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).CreateLogTarget() is high (> 15) (gocyclo)
    • Line 4998: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).ReplaceFilter() is high (> 15) (gocyclo)
    • Line 4846: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).ReplaceAcl() is high (> 15) (gocyclo)
    • Line 1404: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).CreateTCPResponseRule() is high (> 15) (gocyclo)
    • Line 6056: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).ReplaceTCPRequestRule() is high (> 15) (gocyclo)
    • Line 5150: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).ReplaceHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 5302: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).ReplaceHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 5454: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).ReplaceLogTarget() is high (> 15) (gocyclo)
    • Line 5605: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).ReplaceServer() is high (> 15) (gocyclo)
    • Line 5755: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).ReplaceServerSwitchingRule() is high (> 15) (gocyclo)
    • Line 5905: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).ReplaceStickRule() is high (> 15) (gocyclo)
    • Line 6207: warning: cyclomatic complexity 24 of function (*BackendOptionsApiService).ReplaceTCPResponseRule() is high (> 15) (gocyclo)
    • Line 1869: warning: cyclomatic complexity 17 of function (*BackendOptionsApiService).DeleteHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 2084: warning: cyclomatic complexity 17 of function (*BackendOptionsApiService).DeleteServer() is high (> 15) (gocyclo)
    • Line 2403: warning: cyclomatic complexity 17 of function (*BackendOptionsApiService).DeleteTCPRequestRule() is high (> 15) (gocyclo)
    • Line 1545: warning: cyclomatic complexity 17 of function (*BackendOptionsApiService).DeleteAcl() is high (> 15) (gocyclo)
    • Line 2510: warning: cyclomatic complexity 17 of function (*BackendOptionsApiService).DeleteTCPResponseRule() is high (> 15) (gocyclo)
    • Line 2296: warning: cyclomatic complexity 17 of function (*BackendOptionsApiService).DeleteStickRule() is high (> 15) (gocyclo)
    • Line 2190: warning: cyclomatic complexity 17 of function (*BackendOptionsApiService).DeleteServerSwitchingRule() is high (> 15) (gocyclo)
    • Line 1977: warning: cyclomatic complexity 17 of function (*BackendOptionsApiService).DeleteLogTarget() is high (> 15) (gocyclo)
    • Line 1761: warning: cyclomatic complexity 17 of function (*BackendOptionsApiService).DeleteHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 1653: warning: cyclomatic complexity 17 of function (*BackendOptionsApiService).DeleteFilter() is high (> 15) (gocyclo)
    • Line 4625: warning: cyclomatic complexity 16 of function (*BackendOptionsApiService).GetTCPResponseRule() is high (> 15) (gocyclo)
    • Line 4400: warning: cyclomatic complexity 16 of function (*BackendOptionsApiService).GetTCPRequestRule() is high (> 15) (gocyclo)
    • Line 3733: warning: cyclomatic complexity 16 of function (*BackendOptionsApiService).GetServer() is high (> 15) (gocyclo)
    • Line 3282: warning: cyclomatic complexity 16 of function (*BackendOptionsApiService).GetHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 4177: warning: cyclomatic complexity 16 of function (*BackendOptionsApiService).GetStickRule() is high (> 15) (gocyclo)
    • Line 3508: warning: cyclomatic complexity 16 of function (*BackendOptionsApiService).GetLogTarget() is high (> 15) (gocyclo)
    • Line 3850: warning: cyclomatic complexity 16 of function (*BackendOptionsApiService).GetServerSwitchingRule() is high (> 15) (gocyclo)
    • Line 2609: warning: cyclomatic complexity 16 of function (*BackendOptionsApiService).GetAcl() is high (> 15) (gocyclo)
    • Line 3056: warning: cyclomatic complexity 16 of function (*BackendOptionsApiService).GetHTTPRequestRule() is high (> 15) (gocyclo)
    • Line 2830: warning: cyclomatic complexity 16 of function (*BackendOptionsApiService).GetFilter() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_http_response_rule.go
    • Line 520: warning: cyclomatic complexity 24 of function (*HTTPResponseRuleApiService).ReplaceHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 59: warning: cyclomatic complexity 24 of function (*HTTPResponseRuleApiService).CreateHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 201: warning: cyclomatic complexity 17 of function (*HTTPResponseRuleApiService).DeleteHTTPResponseRule() is high (> 15) (gocyclo)
    • Line 301: warning: cyclomatic complexity 16 of function (*HTTPResponseRuleApiService).GetHTTPResponseRule() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_acl.go
    • Line 553: warning: cyclomatic complexity 24 of function (*ACLApiService).ReplaceAcl() is high (> 15) (gocyclo)
    • Line 68: warning: cyclomatic complexity 24 of function (*ACLApiService).CreateAcl() is high (> 15) (gocyclo)
    • Line 217: warning: cyclomatic complexity 17 of function (*ACLApiService).DeleteAcl() is high (> 15) (gocyclo)
    • Line 322: warning: cyclomatic complexity 16 of function (*ACLApiService).GetAcl() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_log_target.go
    • Line 59: warning: cyclomatic complexity 24 of function (*LogTargetApiService).CreateLogTarget() is high (> 15) (gocyclo)
    • Line 520: warning: cyclomatic complexity 24 of function (*LogTargetApiService).ReplaceLogTarget() is high (> 15) (gocyclo)
    • Line 201: warning: cyclomatic complexity 17 of function (*LogTargetApiService).DeleteLogTarget() is high (> 15) (gocyclo)
    • Line 301: warning: cyclomatic complexity 16 of function (*LogTargetApiService).GetLogTarget() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_tcp_response_rule.go
    • Line 511: warning: cyclomatic complexity 24 of function (*TCPResponseRuleApiService).ReplaceTCPResponseRule() is high (> 15) (gocyclo)
    • Line 58: warning: cyclomatic complexity 24 of function (*TCPResponseRuleApiService).CreateTCPResponseRule() is high (> 15) (gocyclo)
    • Line 198: warning: cyclomatic complexity 17 of function (*TCPResponseRuleApiService).DeleteTCPResponseRule() is high (> 15) (gocyclo)
    • Line 296: warning: cyclomatic complexity 16 of function (*TCPResponseRuleApiService).GetTCPResponseRule() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_tcp_request_rule.go
    • Line 59: warning: cyclomatic complexity 24 of function (*TCPRequestRuleApiService).CreateTCPRequestRule() is high (> 15) (gocyclo)
    • Line 520: warning: cyclomatic complexity 24 of function (*TCPRequestRuleApiService).ReplaceTCPRequestRule() is high (> 15) (gocyclo)
    • Line 201: warning: cyclomatic complexity 17 of function (*TCPRequestRuleApiService).DeleteTCPRequestRule() is high (> 15) (gocyclo)
    • Line 301: warning: cyclomatic complexity 16 of function (*TCPRequestRuleApiService).GetTCPRequestRule() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_bind.go
    • Line 67: warning: cyclomatic complexity 24 of function (*BindApiService).CreateBind() is high (> 15) (gocyclo)
    • Line 544: warning: cyclomatic complexity 24 of function (*BindApiService).ReplaceBind() is high (> 15) (gocyclo)
    • Line 214: warning: cyclomatic complexity 17 of function (*BindApiService).DeleteBind() is high (> 15) (gocyclo)
    • Line 317: warning: cyclomatic complexity 16 of function (*BindApiService).GetBind() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_filter.go
    • Line 520: warning: cyclomatic complexity 24 of function (*FilterApiService).ReplaceFilter() is high (> 15) (gocyclo)
    • Line 59: warning: cyclomatic complexity 24 of function (*FilterApiService).CreateFilter() is high (> 15) (gocyclo)
    • Line 201: warning: cyclomatic complexity 17 of function (*FilterApiService).DeleteFilter() is high (> 15) (gocyclo)
    • Line 301: warning: cyclomatic complexity 16 of function (*FilterApiService).GetFilter() is high (> 15) (gocyclo)
    • cluster-api-provider-vsphere/contrib/haproxy/openapi/api_backend_switching_rule.go
    • Line 544: warning: cyclomatic complexity 24 of function (*BackendSwitchingRuleApiService).ReplaceBackendSwitchingRule() is high (> 15) (gocyclo)
    • Line 67: warning: cyclomatic complexity 24 of function (*BackendSwitchingRuleApiService).CreateBackendSwitchingRule() is high (> 15) (gocyclo)
    • Line 214: warning: cyclomatic complexity 17 of function (*BackendSwitchingRuleApiService).DeleteBackendSwitchingRule() is high (> 15) (gocyclo)
    • Line 317: warning: cyclomatic complexity 16 of function (*BackendSwitchingRuleApiService).GetBackendSwitchingRule() is high (> 15) (gocyclo)

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!