aws-quickstart / quickstart-ibm-websphere-liberty
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
  • 32% duplication:
    • 1,386 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 450 duplicated lines
  • 31 duplicates
system32% (450 lines)
Duplication per Extension
yaml32% (432 lines)
yml50% (18 lines)
Duplication per Component (primary)
templates32% (432 lines)
ci50% (18 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 31 duplicates...
Size#FoldersFilesLinesCode
39 x 2 templates
templates
liberty-master.template.yaml
liberty.template.yaml
169:207 (10%)
133:171 (5%)
view
28 x 2 templates
templates
liberty-master.template.yaml
liberty.template.yaml
139:166 (7%)
103:130 (3%)
view
26 x 2 templates
templates
liberty-master.template.yaml
liberty.template.yaml
27:52 (7%)
23:48 (3%)
view
23 x 2 templates
templates
liberty-master.template.yaml
liberty.template.yaml
254:276 (6%)
208:230 (3%)
view
19 x 2 templates
templates
liberty-master.template.yaml
liberty.template.yaml
209:227 (5%)
173:191 (2%)
view
10 x 2 templates
templates
liberty-master.template.yaml
liberty.template.yaml
59:68 (2%)
51:60 (1%)
view
9 x 2 ci
ci
taskcat.yml
taskcat.yml
5:13 (25%)
26:34 (25%)
view
8 x 2 templates
templates
cloudfront.template.yaml
liberty-master.template.yaml
36:43 (5%)
136:143 (2%)
view
8 x 2 templates
templates
liberty.template.yaml
liberty.template.yaml
522:529 (1%)
537:544 (1%)
view
8 x 2 templates
templates
cloudfront.template.yaml
route53.template.yaml
84:91 (5%)
75:82 (8%)
view
8 x 2 templates
templates
liberty-master.template.yaml
liberty.template.yaml
74:81 (2%)
66:73 (1%)
view
7 x 2 templates
templates
liberty.template.yaml
liberty.template.yaml
522:528 (<1%)
572:578 (<1%)
view
7 x 2 templates
templates
liberty.template.yaml
liberty.template.yaml
507:513 (<1%)
572:578 (<1%)
view
7 x 2 templates
templates
liberty.template.yaml
liberty.template.yaml
522:528 (<1%)
557:563 (<1%)
view
7 x 2 templates
templates
liberty.template.yaml
liberty.template.yaml
557:563 (<1%)
572:578 (<1%)
view
7 x 2 templates
templates
liberty.template.yaml
liberty.template.yaml
507:513 (<1%)
522:528 (<1%)
view
7 x 2 templates
templates
cloudfront.template.yaml
route53.template.yaml
47:53 (4%)
41:47 (7%)
view
7 x 2 templates
templates
liberty.template.yaml
liberty.template.yaml
507:513 (<1%)
537:543 (<1%)
view
7 x 2 templates
templates
liberty.template.yaml
liberty.template.yaml
537:543 (<1%)
557:563 (<1%)
view
7 x 2 templates
templates
liberty.template.yaml
liberty.template.yaml
507:513 (<1%)
557:563 (<1%)
view