aws-quickstart / quickstart-ibm-icp-for-data
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
  • 42% duplication:
    • 6,739 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,897 duplicated lines
  • 1,586 duplicates
system42% (2,897 lines)
Duplication per Extension
yaml55% (2,843 lines)
py3% (54 lines)
Duplication per Component (primary)
templates54% (2,343 lines)
scripts/templates/ocs77% (271 lines)
scripts/templates/cpd65% (146 lines)
scripts/installDir58% (83 lines)
scripts/yapl7% (47 lines)
scripts<1% (7 lines)
scripts/templates/efs0% (0 lines)
scripts/templates/px0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 1,586 duplicates...
Size#FoldersFilesLinesCode
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
101 x 2 templates
templates
ibm-cloudpak-data.template.yaml
ibm-cloudpak-root.template.yaml
137:239 (12%)
128:230 (17%)
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-data.template.yaml
ibm-cloudpak-root.template.yaml
29:86 (6%)
21:79 (10%)
view
52 x 2 templates
templates
ibm-cloudpak-data.template.yaml
ibm-cloudpak-root.template.yaml
314:365 (6%)
336:387 (9%)
view
42 x 2 templates
templates
ibm-cloudpak-data.template.yaml
ibm-cloudpak-root.template.yaml
261:302 (5%)
285:326 (7%)
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
26 x 2 scripts/templates/ocs
scripts/templates/ocs
workerocs.yaml
workerocs1AZ.yaml
95:120 (12%)
25:50 (36%)
view
23 x 2 scripts/installDir
scripts/installDir
install-config-1AZ.yaml
install-config-3AZ.yaml
23:45 (46%)
27:49 (39%)
view