aws-quickstart / quickstart-jfrog-artifactory
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
  • 46% duplication:
    • 7,813 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,655 duplicated lines
  • 239 duplicates
system46% (3,655 lines)
Duplication per Extension
yaml71% (3,178 lines)
yml48% (465 lines)
py<1% (12 lines)
Duplication per Component (primary)
templates71% (3,178 lines)
cloudInstallerScripts/roles/artifactory42% (101 lines)
cloudInstallerScripts/roles/artifactory-ami60% (93 lines)
cloudInstallerScripts/roles/xray-ami65% (81 lines)
cloudInstallerScripts/roles/xray45% (81 lines)
cloudInstallerScripts/roles/artifactory-nginx90% (38 lines)
ROOT26% (26 lines)
cloudInstallerScripts/roles/artifactory-nginx-ssl40% (23 lines)
cloudInstallerScripts/roles/artifactory-nginx-ami48% (22 lines)
xray-setup/psycopg2<1% (12 lines)
xray-setup/crhelper0% (0 lines)
xray-setup0% (0 lines)
cloudInstallerScripts0% (0 lines)

Duplication Between Components (50+ lines)

G cloudInstallerScripts/roles/artifactory-ami cloudInstallerScripts/roles/artifactory-ami cloudInstallerScripts/roles/artifactory cloudInstallerScripts/roles/artifactory cloudInstallerScripts/roles/artifactory-ami--cloudInstallerScripts/roles/artifactory 192 cloudInstallerScripts/roles/xray-ami cloudInstallerScripts/roles/xray-ami cloudInstallerScripts/roles/xray cloudInstallerScripts/roles/xray cloudInstallerScripts/roles/xray-ami--cloudInstallerScripts/roles/xray 162 cloudInstallerScripts/roles/artifactory-nginx-ami cloudInstallerScripts/roles/artifactory-nginx-ami cloudInstallerScripts/roles/artifactory-nginx cloudInstallerScripts/roles/artifactory-nginx cloudInstallerScripts/roles/artifactory-nginx-ami--cloudInstallerScripts/roles/artifactory-nginx 56

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 239 duplicates...
Size#FoldersFilesLinesCode
122 x 2 templates
templates
ami-rt-xray-vpc.template.yaml
jfrog-ami-vpc.template.yaml
1:122 (61%)
1:122 (61%)
view
95 x 2 templates
templates
jfrog-artifactory-pro-ec2-existing-vp...
jfrog-artifactory-pro-ec2-new-vpc-mai...
177:271 (35%)
129:223 (42%)
view
75 x 2 templates
templates
ami-rt-xray-vpc.template.yaml
jfrog-ami-vpc.template.yaml
123:198 (38%)
125:200 (37%)
view
65 x 2 templates
templates
jfrog-artifactory-ec2-existing-vpc.te...
jfrog-artifactory-ec2-main.template.yaml
111:175 (5%)
99:163 (12%)
view
64 x 2 templates
templates
jfrog-artifactory-pro-ec2-existing-vp...
jfrog-artifactory-pro-ec2-new-vpc-mai...
86:149 (23%)
65:128 (28%)
view
59 x 2 templates
templates
ami-rt-xray-creation.template.yaml
jfrog-ami-creation.template.yaml
70:128 (24%)
70:128 (23%)
view
58 x 2 templates
templates
jfrog-artifactory-ec2-existing-vpc.te...
jfrog-artifactory-ec2-existing-vpc.te...
911:970 (4%)
997:1056 (4%)
view
51 x 2 templates
templates
jfrog-artifactory-ec2-existing-vpc.te...
jfrog-artifactory-ec2-main.template.yaml
34:84 (3%)
30:80 (10%)
view
50 x 2 templates
templates
jfrog-artifactory-ec2-instance.templa...
jfrog-xray-ec2-instance.template.yaml
87:143 (14%)
69:125 (15%)
view
48 x 2 templates
templates
jfrog-artifactory-ec2-existing-vpc.te...
jfrog-artifactory-ec2-main.template.yaml
450:497 (3%)
428:475 (9%)
view
44 x 2 templates
templates
jfrog-artifactory-pro-ec2-existing-vp...
jfrog-artifactory-pro-ec2-new-vpc-mai...
28:71 (16%)
21:64 (19%)
view
34 x 2 templates
templates
jfrog-ami-vpc.template.yaml
jfrog-artifactory-core-infrastructure...
131:164 (17%)
270:303 (9%)
view
34 x 2 templates
templates
ami-rt-xray-vpc.template.yaml
jfrog-artifactory-core-infrastructure...
129:162 (17%)
270:303 (9%)
view
33 x 2 templates
templates
jfrog-artifactory-ec2-existing-vpc.te...
jfrog-artifactory-ec2-existing-vpc.te...
825:857 (2%)
1068:1100 (2%)
view
32 x 2 cloudInstallerScripts/roles/artifactory-ami/meta
cloudInstallerScripts/roles/artifactory/meta
main.yml
main.yml
1:35 (100%)
1:35 (100%)
view
31 x 2 cloudInstallerScripts/roles/xray-ami/tasks
cloudInstallerScripts/roles/xray/tasks
Debian.yml
Debian.yml
1:36 (100%)
1:36 (100%)
view
30 x 2 templates
templates
jfrog-artifactory-ec2-existing-vpc.te...
jfrog-artifactory-pro-ec2-existing-vp...
310:339 (2%)
201:230 (11%)
view
30 x 2 templates
templates
jfrog-artifactory-ec2-main.template.yaml
jfrog-artifactory-pro-ec2-new-vpc-mai...
294:323 (5%)
156:185 (13%)
view
30 x 2 templates
templates
jfrog-artifactory-ec2-main.template.yaml
jfrog-artifactory-pro-ec2-existing-vp...
294:323 (5%)
204:233 (11%)
view
30 x 2 templates
templates
jfrog-artifactory-ec2-existing-vpc.te...
jfrog-artifactory-pro-ec2-new-vpc-mai...
310:339 (2%)
153:182 (13%)
view