aws-quickstart / quickstart-ibm-integration
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
  • 47% duplication:
    • 7,140 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,359 duplicated lines
  • 1,620 duplicates
system47% (3,359 lines)
Duplication per Extension
yaml58% (3,119 lines)
cfg27% (186 lines)
py4% (54 lines)
Duplication per Component (primary)
templates57% (2,389 lines)
scripts/templates/ocs78% (271 lines)
scripts/cp4i-deployment/capabilities-runtimes-scripts/example-demos85% (232 lines)
scripts/cp4i-deployment/capabilities-runtimes-scripts/datapower27% (186 lines)
scripts/templates/cp4i65% (146 lines)
scripts/installDir79% (81 lines)
scripts/yapl7% (47 lines)
scripts1% (7 lines)
scripts/cp4i-deployment/capabilities-runtimes-scripts/ace0% (0 lines)
scripts/cp4i-deployment/capabilities-runtimes-scripts/apic0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 1,620 duplicates...
Size#FoldersFilesLinesCode
219 x 2 templates
templates
ibm-cloudpak-integration.template.yaml
ibm-cloudpak-root.template.yaml
210:428 (27%)
217:435 (40%)
view
113 x 2 templates
templates
aws-vpc.template.yaml
aws-vpc.template.yaml
1395:1507 (4%)
1530:1642 (4%)
view
113 x 2 templates
templates
aws-vpc.template.yaml
aws-vpc.template.yaml
1395:1507 (4%)
1665:1777 (4%)
view
113 x 2 templates
templates
aws-vpc.template.yaml
aws-vpc.template.yaml
1530:1642 (4%)
1665:1777 (4%)
view
112 x 2 templates
templates
aws-vpc.template.yaml
aws-vpc.template.yaml
994:1105 (3%)
1262:1373 (3%)
view
112 x 2 templates
templates
aws-vpc.template.yaml
aws-vpc.template.yaml
860:971 (3%)
1128:1239 (3%)
view
112 x 2 templates
templates
aws-vpc.template.yaml
aws-vpc.template.yaml
592:703 (3%)
860:971 (3%)
view
112 x 2 templates
templates
aws-vpc.template.yaml
aws-vpc.template.yaml
592:703 (3%)
1128:1239 (3%)
view
112 x 2 templates
templates
aws-vpc.template.yaml
aws-vpc.template.yaml
726:837 (3%)
1262:1373 (3%)
view
112 x 2 templates
templates
aws-vpc.template.yaml
aws-vpc.template.yaml
726:837 (3%)
994:1105 (3%)
view
64 x 2 templates
templates
ibm-cloudpak-integration.template.yaml
ibm-cloudpak-root.template.yaml
103:168 (8%)
94:159 (11%)
view
59 x 2 scripts/templates/ocs
scripts/templates/ocs
workerocs.yaml
workerocs1AZ.yaml
13:71 (27%)
13:71 (83%)
view
57 x 2 templates
templates
ibm-cloudpak-integration.template.yaml
ibm-cloudpak-root.template.yaml
29:86 (7%)
21:79 (10%)
view
37 x 2 scripts/cp4i-deployment/...s-scripts/example-demos
scripts/cp4i-deployment/...s-scripts/example-demos
full.yaml
status.yaml
81:117 (34%)
32:68 (54%)
view
33 x 2 scripts/cp4i-deployment/...times-scripts/datapower
scripts/cp4i-deployment/...times-scripts/datapower
cfg
testconfig.cfg
testconfig.cfg
531:563 (4%)
575:607 (4%)
view
30 x 2 scripts/cp4i-deployment/...s-scripts/example-demos
scripts/cp4i-deployment/...s-scripts/example-demos
full.yaml
status.yaml
50:79 (28%)
1:30 (44%)
view
26 x 2 scripts/templates/ocs
scripts/templates/ocs
workerocs.yaml
workerocs1AZ.yaml
165:190 (12%)
25:50 (36%)
view
26 x 2 scripts/templates/ocs
scripts/templates/ocs
workerocs.yaml
workerocs.yaml
95:120 (12%)
165:190 (12%)
view
26 x 2 scripts/templates/ocs
scripts/templates/ocs
workerocs.yaml
workerocs.yaml
25:50 (12%)
165:190 (12%)
view
26 x 2 scripts/templates/ocs
scripts/templates/ocs
workerocs.yaml
workerocs.yaml
25:50 (12%)
95:120 (12%)
view