aws-quickstart / quickstart-ct-newrelic-one
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
  • 67% duplication:
    • 2,185 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,468 duplicated lines
  • 47 duplicates
system67% (1,468 lines)
Duplication per Extension
yml74% (584 lines)
yaml76% (524 lines)
py50% (360 lines)
Duplication per Component (primary)
templates77% (1,108 lines)
functions/source/register72% (166 lines)
functions/source/cfct_register79% (163 lines)
functions/source/stackset16% (25 lines)
functions/source/onboarding4% (6 lines)
CfCT0% (0 lines)

Duplication Between Components (50+ lines)

G functions/source/cfct_register functions/source/cfct_register functions/source/register functions/source/register functions/source/cfct_register--functions/source/register 314

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 47 duplicates...
Size#FoldersFilesLinesCode
286 x 2 templates
templates
newrelic-stack-set-cfct.yaml
newrelic-stack-set.yml
43:331 (83%)
28:316 (91%)
view
146 x 2 functions/source/cfct_register
functions/source/register
cfct_register.py
register.py
68:224 (71%)
95:250 (64%)
view
87 x 2 templates
templates
control-tower-customization.template.yml
newrelic-hub-cfct.yaml
99:188 (18%)
89:178 (29%)
view
20 x 2 templates
templates
newrelic-stack-set-cfct.yaml
newrelic-stack-set.yml
3:22 (5%)
3:22 (6%)
view
18 x 2 templates
templates
control-tower-customization.template.yml
control-tower-customization.template.yml
331:348 (3%)
394:411 (3%)
view
16 x 2 templates
templates
control-tower-customization.template.yml
newrelic-hub-cfct.yaml
393:408 (3%)
252:267 (5%)
view
15 x 2 templates
templates
control-tower-customization.template.yml
newrelic-hub-cfct.yaml
307:323 (3%)
192:208 (5%)
view
15 x 2 templates
templates
control-tower-customization.template.yml
newrelic-hub-cfct.yaml
331:345 (3%)
253:267 (5%)
view
13 x 2 templates
templates
control-tower-customization.template.yml
newrelic-hub-cfct.yaml
54:66 (2%)
41:53 (4%)
view
12 x 2 templates
templates
control-tower-customization.template.yml
newrelic-hub-cfct.yaml
20:31 (2%)
15:26 (4%)
view
11 x 2 templates
templates
control-tower-customization.template.yml
control-tower-customization.template.yml
211:221 (2%)
394:404 (2%)
view
11 x 2 templates
templates
newrelic-stack-set.yml
newrelic-stack-set.yml
40:50 (3%)
61:71 (3%)
view
11 x 2 templates
templates
control-tower-customization.template.yml
newrelic-hub-cfct.yaml
211:221 (2%)
253:263 (3%)
view
11 x 2 functions/source/cfct_register
functions/source/register
cfct_register.py
register.py
54:65 (5%)
82:93 (4%)
view
11 x 2 templates
templates
control-tower-customization.template.yml
newrelic-hub-cfct.yaml
83:94 (2%)
75:86 (3%)
view
11 x 2 templates
templates
newrelic-stack-set-cfct.yaml
newrelic-stack-set-cfct.yaml
55:65 (3%)
76:86 (3%)
view
11 x 2 templates
templates
control-tower-customization.template.yml
newrelic-hub-cfct.yaml
3:13 (2%)
3:13 (3%)
view
11 x 2 templates
templates
control-tower-customization.template.yml
control-tower-customization.template.yml
211:221 (2%)
331:341 (2%)
view
11 x 2 templates
templates
control-tower-customization.template.yml
newrelic-hub-cfct.yaml
38:48 (2%)
29:40 (3%)
view
11 x 2 templates
templates
newrelic-stack-set-cfct.yaml
newrelic-stack-set.yml
76:86 (3%)
40:50 (3%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
82 x 2 functions/source/cfct_register
functions/source/register
cfct_register.py
register.py
0:0 
0:0 
view
31 x 2 functions/source/cfct_register
functions/source/register
cfct_register.py
register.py
0:0 
0:0 
view
26 x 2 functions/source/cfct_register
functions/source/register
cfct_register.py
register.py
0:0 
0:0 
view