Preparing report...

Report for github.com/upbound/provider-aws

(v0.21.0)

A+    Excellent!    Found 58 issues across 1407 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!


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.

    • apis/docdb/v1beta1/zz_generated.deepcopy.go
    • Line 421: warning: cyclomatic complexity 37 of function (*ClusterParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 104: warning: cyclomatic complexity 16 of function (*ClusterInstanceObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 194: warning: cyclomatic complexity 16 of function (*ClusterInstanceParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/cloudfront/v1beta1/zz_generated.deepcopy.go
    • Line 1289: warning: cyclomatic complexity 33 of function (*DistributionParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 3363: warning: cyclomatic complexity 32 of function (*OrderedCacheBehaviorParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1001: warning: cyclomatic complexity 31 of function (*DefaultCacheBehaviorParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1200: warning: cyclomatic complexity 17 of function (*DistributionObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/firehose/v1beta1/zz_generated.deepcopy.go
    • Line 260: warning: cyclomatic complexity 25 of function (*DeliveryStreamParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 667: warning: cyclomatic complexity 24 of function (*ExtendedS3ConfigurationParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 511: warning: cyclomatic complexity 19 of function (*ElasticsearchConfigurationParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1716: warning: cyclomatic complexity 17 of function (*RedshiftConfigurationParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 884: warning: cyclomatic complexity 17 of function (*HTTPEndpointConfigurationParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/elbv2/v1beta1/zz_generated.deepcopy.go
    • Line 839: warning: cyclomatic complexity 33 of function (*LBParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1295: warning: cyclomatic complexity 24 of function (*LBTargetGroupParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 259: warning: cyclomatic complexity 16 of function (*DefaultActionParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/ec2/v1beta1/zz_generated.deepcopy.go
    • Line 12555: warning: cyclomatic complexity 78 of function (*SpotInstanceRequestParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 6643: warning: cyclomatic complexity 68 of function (*LaunchTemplateParameters_2).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 5394: warning: cyclomatic complexity 67 of function (*InstanceParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 5709: warning: cyclomatic complexity 44 of function (*InstanceRequirementsParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 8985: warning: cyclomatic complexity 42 of function (*NetworkInterfaceParameters_2).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 9386: warning: cyclomatic complexity 37 of function (*NetworkInterfacesParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 10255: warning: cyclomatic complexity 35 of function (*RouteParameters_2).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 17423: warning: cyclomatic complexity 27 of function (*VPCEndpointObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 4659: warning: cyclomatic complexity 25 of function (*FlowLogParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 11418: warning: cyclomatic complexity 23 of function (*SecurityGroupRuleParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 13362: warning: cyclomatic complexity 22 of function (*SubnetParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 16582: warning: cyclomatic complexity 22 of function (*TransitGatewayVPCAttachmentParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 18005: warning: cyclomatic complexity 21 of function (*VPCEndpointServiceObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 12451: warning: cyclomatic complexity 20 of function (*SpotInstanceRequestObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 5294: warning: cyclomatic complexity 20 of function (*InstanceObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 11084: warning: cyclomatic complexity 18 of function (*SecurityGroupIngressObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 3089: warning: cyclomatic complexity 18 of function (*EBSSnapshotImportParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 18673: warning: cyclomatic complexity 18 of function (*VPCParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 10985: warning: cyclomatic complexity 18 of function (*SecurityGroupEgressObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2831: warning: cyclomatic complexity 17 of function (*EBSSnapshotCopyParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 10160: warning: cyclomatic complexity 17 of function (*RouteParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1466: warning: cyclomatic complexity 17 of function (*DefaultSubnetParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 3978: warning: cyclomatic complexity 17 of function (*EIPParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 3527: warning: cyclomatic complexity 17 of function (*EBSVolumeParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 562: warning: cyclomatic complexity 16 of function (*CapacityReservationParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 13840: warning: cyclomatic complexity 16 of function (*TrafficMirrorFilterRuleParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 15031: warning: cyclomatic complexity 16 of function (*TransitGatewayParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 17063: warning: cyclomatic complexity 16 of function (*VPCDHCPOptionsParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1858: warning: cyclomatic complexity 16 of function (*DefaultVPCObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/apigatewayv2/v1beta1/zz_generated.deepcopy.go
    • Line 1342: warning: cyclomatic complexity 34 of function (*IntegrationParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2166: warning: cyclomatic complexity 25 of function (*RouteParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2685: warning: cyclomatic complexity 23 of function (*StageParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 310: warning: cyclomatic complexity 19 of function (*APIParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 565: warning: cyclomatic complexity 19 of function (*AuthorizerParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2969: warning: cyclomatic complexity 18 of function (*VPCLinkParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/rds/v1beta1/zz_generated.deepcopy.go
    • Line 2306: warning: cyclomatic complexity 75 of function (*InstanceParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1184: warning: cyclomatic complexity 65 of function (*ClusterParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 637: warning: cyclomatic complexity 33 of function (*ClusterInstanceParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 3912: warning: cyclomatic complexity 23 of function (*ProxyParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 4704: warning: cyclomatic complexity 22 of function (*SnapshotObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 3712: warning: cyclomatic complexity 18 of function (*ProxyEndpointParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2220: warning: cyclomatic complexity 16 of function (*InstanceObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/cognitoidp/v1beta1/zz_generated.deepcopy.go
    • Line 2153: warning: cyclomatic complexity 44 of function (*UserPoolParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1647: warning: cyclomatic complexity 42 of function (*UserPoolClientParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1390: warning: cyclomatic complexity 22 of function (*UserParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 596: warning: cyclomatic complexity 16 of function (*LambdaConfigParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 416: warning: cyclomatic complexity 16 of function (*IdentityProviderParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/apigateway/v1beta1/zz_generated.deepcopy.go
    • Line 2234: warning: cyclomatic complexity 36 of function (*IntegrationParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 4610: warning: cyclomatic complexity 25 of function (*StageParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2818: warning: cyclomatic complexity 25 of function (*MethodParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1773: warning: cyclomatic complexity 23 of function (*DomainNameParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2496: warning: cyclomatic complexity 22 of function (*IntegrationResponseParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 562: warning: cyclomatic complexity 19 of function (*AuthorizerParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 4131: warning: cyclomatic complexity 19 of function (*RestAPIParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 3028: warning: cyclomatic complexity 18 of function (*MethodResponseParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/kafka/v1beta1/zz_generated.deepcopy.go
    • Line 422: warning: cyclomatic complexity 21 of function (*ClusterParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 84: warning: cyclomatic complexity 20 of function (*BrokerNodeGroupInfoParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 332: warning: cyclomatic complexity 16 of function (*ClusterObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/neptune/v1beta1/zz_generated.deepcopy.go
    • Line 846: warning: cyclomatic complexity 51 of function (*ClusterParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 389: warning: cyclomatic complexity 25 of function (*ClusterInstanceParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1148: warning: cyclomatic complexity 17 of function (*ClusterSnapshotObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1446: warning: cyclomatic complexity 16 of function (*EventSubscriptionParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/lambda/v1beta1/zz_generated.deepcopy.go
    • Line 1455: warning: cyclomatic complexity 47 of function (*FunctionParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 803: warning: cyclomatic complexity 33 of function (*EventSourceMappingParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2687: warning: cyclomatic complexity 17 of function (*PermissionParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2234: warning: cyclomatic complexity 17 of function (*LayerVersionParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/sns/v1beta1/zz_generated.deepcopy.go
    • Line 122: warning: cyclomatic complexity 46 of function (*TopicParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 495: warning: cyclomatic complexity 18 of function (*TopicSubscriptionParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/glue/v1beta1/zz_generated.deepcopy.go
    • Line 1367: warning: cyclomatic complexity 37 of function (*CrawlerParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2430: warning: cyclomatic complexity 31 of function (*JobParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 418: warning: cyclomatic complexity 23 of function (*CatalogTableParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 3941: warning: cyclomatic complexity 23 of function (*StorageDescriptorParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 4236: warning: cyclomatic complexity 17 of function (*TriggerParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/eks/v1beta1/zz_generated.deepcopy.go
    • Line 1499: warning: cyclomatic complexity 39 of function (*NodeGroupParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 867: warning: cyclomatic complexity 19 of function (*FargateProfileParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 594: warning: cyclomatic complexity 18 of function (*ClusterParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2087: warning: cyclomatic complexity 18 of function (*VPCConfigParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 513: warning: cyclomatic complexity 16 of function (*ClusterObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/appstream/v1beta1/zz_generated.deepcopy.go
    • Line 505: warning: cyclomatic complexity 26 of function (*FleetParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1326: warning: cyclomatic complexity 21 of function (*StackParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 987: warning: cyclomatic complexity 20 of function (*ImageBuilderParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/s3/v1beta1/zz_generated.deepcopy.go
    • Line 6231: warning: cyclomatic complexity 34 of function (*ObjectParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2751: warning: cyclomatic complexity 34 of function (*BucketObjectParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 2965: warning: cyclomatic complexity 32 of function (*BucketObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1479: warning: cyclomatic complexity 17 of function (*BucketInventoryParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1736: warning: cyclomatic complexity 16 of function (*BucketLifecycleConfigurationRuleParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 5842: warning: cyclomatic complexity 16 of function (*LifecycleRuleObservation).DeepCopyInto() is high (> 15) (gocyclo)
    • apis/cloudwatch/v1beta1/zz_generated.deepcopy.go
    • Line 570: warning: cyclomatic complexity 34 of function (*MetricAlarmParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 117: warning: cyclomatic complexity 23 of function (*CompositeAlarmParameters).DeepCopyInto() is high (> 15) (gocyclo)
    • Line 1015: warning: cyclomatic complexity 17 of function (*MetricStreamParameters).DeepCopyInto() is high (> 15) (gocyclo)

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!