Preparing report...

Report for github.com/upbound/provider-azure

(v0.16.0)

A+    Excellent!    Found 25 issues across 775 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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo96%

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.

    • apis/cosmosdb/v1beta1/zz_generated.deepcopy.go
    • Line 138: warning: cyclomatic complexity 47 of function (*AccountParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 3392: warning: cyclomatic complexity 23 of function (*SQLContainerParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2095: warning: cyclomatic complexity 22 of function (*GremlinGraphParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2760: warning: cyclomatic complexity 18 of function (*MongoCollectionParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/storage/v1beta1/zz_generated.deepcopy.go
    • Line 594: warning: cyclomatic complexity 44 of function (*AccountParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 437: warning: cyclomatic complexity 30 of function (*AccountObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1325: warning: cyclomatic complexity 20 of function (*BlobParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 288: warning: cyclomatic complexity 16 of function (*AccountNetworkRulesParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/compute/v1beta1/zz_generated.deepcopy.go
    • Line 7761: warning: cyclomatic complexity 73 of function (*WindowsVirtualMachineScaleSetParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2997: warning: cyclomatic complexity 70 of function (*LinuxVirtualMachineScaleSetParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2322: warning: cyclomatic complexity 59 of function (*LinuxVirtualMachineParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 6659: warning: cyclomatic complexity 59 of function (*WindowsVirtualMachineParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 4626: warning: cyclomatic complexity 45 of function (*OrchestratedVirtualMachineScaleSetParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 3629: warning: cyclomatic complexity 39 of function (*ManagedDiskParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 7453: warning: cyclomatic complexity 21 of function (*WindowsVirtualMachineScaleSetNetworkInterfaceIPConfigurationParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1365: warning: cyclomatic complexity 21 of function (*IPConfigurationParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 3880: warning: cyclomatic complexity 18 of function (*NetworkInterfaceIPConfigurationParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 5875: warning: cyclomatic complexity 17 of function (*SnapshotParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/network/v1beta1/zz_generated.deepcopy.go
    • Line 274: warning: cyclomatic complexity 61 of function (*ApplicationGatewayParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 24248: warning: cyclomatic complexity 41 of function (*VirtualNetworkGatewayConnectionParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 121: warning: cyclomatic complexity 40 of function (*ApplicationGatewayObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 21076: warning: cyclomatic complexity 34 of function (*SecurityRuleParameters_2).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 8272: warning: cyclomatic complexity 31 of function (*FrontDoorObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 20945: warning: cyclomatic complexity 29 of function (*SecurityRuleParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 7500: warning: cyclomatic complexity 27 of function (*FirewallParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 617: warning: cyclomatic complexity 27 of function (*ApplicationRuleCollectionRuleParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 7782: warning: cyclomatic complexity 26 of function (*FirewallPolicyParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 24609: warning: cyclomatic complexity 25 of function (*VirtualNetworkGatewayParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 23602: warning: cyclomatic complexity 24 of function (*VPNServerConfigurationParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 7323: warning: cyclomatic complexity 24 of function (*FirewallNetworkRuleCollectionRuleParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 25569: warning: cyclomatic complexity 23 of function (*WatcherFlowLogParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 14497: warning: cyclomatic complexity 23 of function (*NetworkRuleCollectionRuleParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 18561: warning: cyclomatic complexity 23 of function (*PublicIPParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 8419: warning: cyclomatic complexity 21 of function (*FrontDoorParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 17867: warning: cyclomatic complexity 20 of function (*PrivateLinkServiceParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 7043: warning: cyclomatic complexity 20 of function (*FirewallNATRuleCollectionRuleParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 22018: warning: cyclomatic complexity 20 of function (*SubnetParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 15237: warning: cyclomatic complexity 20 of function (*PointToSiteVPNGatewayParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 22893: warning: cyclomatic complexity 19 of function (*TrafficBypassParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 23366: warning: cyclomatic complexity 19 of function (*VPNClientConfigurationParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 24830: warning: cyclomatic complexity 19 of function (*VirtualNetworkParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1874: warning: cyclomatic complexity 18 of function (*ConnectionMonitorParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1199: warning: cyclomatic complexity 18 of function (*BackendHTTPSettingsParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 13381: warning: cyclomatic complexity 18 of function (*NATRuleCollectionRuleParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 6421: warning: cyclomatic complexity 17 of function (*ExpressRoutePortParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 20348: warning: cyclomatic complexity 17 of function (*RuleParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 14150: warning: cyclomatic complexity 17 of function (*NetworkInterfaceParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 11975: warning: cyclomatic complexity 17 of function (*LoadBalancerRuleParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 5707: warning: cyclomatic complexity 17 of function (*ExpressRouteCircuitPeeringParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2704: warning: cyclomatic complexity 17 of function (*DNSAAAARecordParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2913: warning: cyclomatic complexity 17 of function (*DNSARecordParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 8797: warning: cyclomatic complexity 16 of function (*FrontdoorFirewallPolicyParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 5021: warning: cyclomatic complexity 16 of function (*ExplicitResourceOrderObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 20084: warning: cyclomatic complexity 16 of function (*RoutingRuleParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 5526: warning: cyclomatic complexity 16 of function (*ExpressRouteCircuitParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 10841: warning: cyclomatic complexity 16 of function (*LoadBalancerFrontendIPConfigurationParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/apimanagement/v1beta1/zz_generated.deepcopy.go
    • Line 581: warning: cyclomatic complexity 41 of function (*ManagementParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 474: warning: cyclomatic complexity 24 of function (*ManagementObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1131: warning: cyclomatic complexity 17 of function (*SecurityParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/keyvault/v1beta1/zz_generated.deepcopy.go
    • Line 2392: warning: cyclomatic complexity 20 of function (*VaultParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 186: warning: cyclomatic complexity 19 of function (*AccessPolicyParameters_2).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 77: warning: cyclomatic complexity 16 of function (*AccessPolicyObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/sql/v1beta1/zz_generated.deepcopy.go
    • Line 242: warning: cyclomatic complexity 33 of function (*MSSQLDatabaseParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1273: warning: cyclomatic complexity 28 of function (*MSSQLManagedInstanceParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2069: warning: cyclomatic complexity 20 of function (*MSSQLServerParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 528: warning: cyclomatic complexity 18 of function (*MSSQLFailoverGroupParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/containerservice/v1beta1/zz_generated.deepcopy.go
    • Line 1693: warning: cyclomatic complexity 62 of function (*KubernetesClusterParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1291: warning: cyclomatic complexity 52 of function (*KubernetesClusterNodePoolParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 310: warning: cyclomatic complexity 45 of function (*DefaultNodePoolParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2844: warning: cyclomatic complexity 30 of function (*SysctlConfigParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2062: warning: cyclomatic complexity 30 of function (*LinuxOsConfigSysctlConfigParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 124: warning: cyclomatic complexity 18 of function (*AutoScalerProfileParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2501: warning: cyclomatic complexity 17 of function (*NetworkProfileParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1613: warning: cyclomatic complexity 17 of function (*KubernetesClusterObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/cache/v1beta1/zz_generated.deepcopy.go
    • Line 209: warning: cyclomatic complexity 32 of function (*RedisCacheParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 778: warning: cyclomatic complexity 17 of function (*RedisEnterpriseDatabaseParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/insights/v1beta1/zz_generated.deepcopy.go
    • Line 1136: warning: cyclomatic complexity 31 of function (*MonitorActionGroupParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1381: warning: cyclomatic complexity 29 of function (*MonitorMetricAlertParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 207: warning: cyclomatic complexity 21 of function (*ApplicationInsightsParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/containerregistry/v1beta1/zz_generated.deepcopy.go
    • Line 828: warning: cyclomatic complexity 29 of function (*RegistryParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1555: warning: cyclomatic complexity 20 of function (*WebhookParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 300: warning: cyclomatic complexity 19 of function (*ContainerConnectedRegistryParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 97: warning: cyclomatic complexity 16 of function (*AgentPoolParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/media/v1beta1/zz_generated.deepcopy.go
    • Line 1463: warning: cyclomatic complexity 26 of function (*LiveEventParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2253: warning: cyclomatic complexity 25 of function (*StreamingEndpointParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2491: warning: cyclomatic complexity 18 of function (*StreamingLocatorParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/devices/v1beta1/zz_generated.deepcopy.go
    • Line 2432: warning: cyclomatic complexity 22 of function (*IOTHubParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2335: warning: cyclomatic complexity 21 of function (*IOTHubObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1794: warning: cyclomatic complexity 18 of function (*IOTHubEndpointStorageContainerParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2186: warning: cyclomatic complexity 16 of function (*IOTHubFallbackRouteParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 828: warning: cyclomatic complexity 16 of function (*IOTHubDPSParameters).DeepCopyInto() is high (> 15) (gocyclo)

license0%

Checks whether your project has a LICENSE file.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!