aws-samples / amazon-apigateway-ingress-controller-blog
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 19% duplication:
    • 586 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 117 duplicated lines
  • 17 duplicates
system19% (117 lines)
Duplication per Extension
yaml27% (59 lines)
yml28% (58 lines)
Duplication per Component (primary)
apigw-ingress-controller-blog/AmazonAPIGWHelmChart/amazon-apigateway-ingress-controller/templates25% (59 lines)
apigw-ingress-controller-blog28% (58 lines)
api/author0% (0 lines)
api/book0% (0 lines)
apigw-ingress-controller-blog/AmazonAPIGWHelmChart/amazon-apigateway-ingress-controller0% (0 lines)
Longest Duplicates
The list of 17 longest duplicates.
See data for all 17 duplicates...
Size#FoldersFilesLinesCode
21 x 2 apigw-ingress-controller-blog
apigw-ingress-controller-blog
author-deployment.yml
book-deployment.yml
14:35 (42%)
14:35 (61%)
view
11 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
35:45 (10%)
90:100 (10%)
view
11 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
35:45 (10%)
78:88 (10%)
view
11 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
78:88 (10%)
90:100 (10%)
view
9 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
13:21 (8%)
78:86 (8%)
view
9 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
57:65 (8%)
78:86 (8%)
view
9 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
13:21 (8%)
57:65 (8%)
view
9 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
13:21 (8%)
90:98 (8%)
view
9 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
35:43 (8%)
57:65 (8%)
view
9 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
13:21 (8%)
35:43 (8%)
view
9 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
57:65 (8%)
90:98 (8%)
view
8 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
90:97 (7%)
102:109 (7%)
view
8 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
13:20 (7%)
102:109 (7%)
view
8 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
35:42 (7%)
102:109 (7%)
view
8 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
78:85 (7%)
102:109 (7%)
view
8 x 2 apigw-ingress-controller-blog
apigw-ingress-controller-blog
author-deployment.yml
author-service.yml
46:53 (16%)
5:12 (66%)
view
8 x 2 apigw-ingress-controller...ss-controller/templates
apigw-ingress-controller...ss-controller/templates
clusterrole.yaml
clusterrole.yaml
57:64 (7%)
102:109 (7%)
view