aws-quickstart / connect-integration-perficient-msdynamics
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:
    • 1,117 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 526 duplicated lines
  • 29 duplicates
system47% (526 lines)
Duplication per Extension
js59% (424 lines)
yaml26% (102 lines)
Duplication per Component (primary)
functions/source/addDynamicsAccountNote-test100% (132 lines)
functions/source/lookupDynamicsAccount-test100% (132 lines)
templates26% (102 lines)
functions/source/getDynamicsToken-test62% (80 lines)
functions/source/getDynamicsToken33% (34 lines)
functions/source/lookupDynamicsAccount24% (28 lines)
functions/source/addDynamicsAccountNote16% (18 lines)
ci0% (0 lines)

Duplication Between Components (50+ lines)

G functions/source/addDynamicsAccountNote-test functions/source/addDynamicsAccountNote-test functions/source/lookupDynamicsAccount-test functions/source/lookupDynamicsAccount-test functions/source/addDynamicsAccountNote-test--functions/source/lookupDynamicsAccount-test 264 functions/source/getDynamicsToken-test functions/source/getDynamicsToken-test functions/source/addDynamicsAccountNote-test--functions/source/getDynamicsToken-test 112 functions/source/getDynamicsToken-test--functions/source/lookupDynamicsAccount-test 112

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 29 duplicates...
Size#FoldersFilesLinesCode
82 x 2 functions/source/addDynamicsAccountNote-test
functions/source/lookupDynamicsAccount-test
addDynamicsAccountNote-test.js
lookupDynamicsAccount-test.js
1:94 (100%)
1:94 (100%)
view
50 x 2 functions/source/addDynamicsAccountNote-test
functions/source/getDynamicsToken-test
cfn-response.js
cfn-response.js
8:65 (100%)
8:65 (100%)
view
50 x 2 functions/source/getDynamicsToken-test
functions/source/lookupDynamicsAccount-test
cfn-response.js
cfn-response.js
8:65 (100%)
8:65 (100%)
view
50 x 2 functions/source/addDynamicsAccountNote-test
functions/source/lookupDynamicsAccount-test
cfn-response.js
cfn-response.js
8:65 (100%)
8:65 (100%)
view
24 x 2 functions/source/getDynamicsToken-test
functions/source/getDynamicsToken
getDynamicsToken-test.js
getDynamicsToken.js
35:63 (30%)
22:50 (23%)
view
14 x 2 templates
templates
perficient-msdynamics.template.yaml
perficient-msdynamics.template.yaml
181:194 (3%)
259:272 (3%)
view
11 x 2 templates
templates
perficient-msdynamics.template.yaml
perficient-msdynamics.template.yaml
132:142 (2%)
181:191 (2%)
view
11 x 2 templates
templates
perficient-msdynamics.template.yaml
perficient-msdynamics.template.yaml
132:142 (2%)
259:269 (2%)
view
10 x 2 functions/source/getDynamicsToken
functions/source/lookupDynamicsAccount
getDynamicsToken.js
lookupDynamicsAccount.js
71:81 (9%)
115:125 (8%)
view
9 x 2 functions/source/addDynamicsAccountNote
functions/source/lookupDynamicsAccount
addDynamicsAccountNote.js
lookupDynamicsAccount.js
24:33 (8%)
32:41 (7%)
view
9 x 2 templates
templates
perficient-msdynamics.template.yaml
perficient-msdynamics.template.yaml
236:244 (2%)
321:329 (2%)
view
9 x 2 templates
templates
perficient-msdynamics.template.yaml
perficient-msdynamics.template.yaml
152:160 (2%)
321:329 (2%)
view
9 x 2 functions/source/addDynamicsAccountNote
functions/source/lookupDynamicsAccount
addDynamicsAccountNote.js
lookupDynamicsAccount.js
1:10 (8%)
1:10 (7%)
view
9 x 2 templates
templates
perficient-msdynamics.template.yaml
perficient-msdynamics.template.yaml
152:160 (2%)
236:244 (2%)
view
9 x 2 templates
templates
perficient-msdynamics.template.yaml
perficient-msdynamics.template.yaml
290:298 (2%)
348:356 (2%)
view
6 x 2 functions/source/addDynamicsAccountNote-test
functions/source/getDynamicsToken-test
addDynamicsAccountNote-test.js
getDynamicsToken-test.js
89:94 (7%)
82:87 (7%)
view
6 x 2 templates
templates
perficient-msdynamics.template.yaml
perficient-msdynamics.template.yaml
216:221 (1%)
324:329 (1%)
view
6 x 2 templates
templates
perficient-msdynamics.template.yaml
perficient-msdynamics.template.yaml
300:305 (1%)
358:363 (1%)
view
6 x 2 templates
templates
perficient-msdynamics.template.yaml
perficient-msdynamics.template.yaml
239:244 (1%)
293:298 (1%)
view
6 x 2 templates
templates
perficient-msdynamics.template.yaml
perficient-msdynamics.template.yaml
293:298 (1%)
324:329 (1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
73 x 2 functions/source/addDynamicsAccountNote-test
functions/source/lookupDynamicsAccount-test
addDynamicsAccountNote-test.js
lookupDynamicsAccount-test.js
15:95 
15:95 
view
48 x 3 functions/source/addDynamicsAccountNote-test
functions/source/getDynamicsToken-test
functions/source/lookupDynamicsAccount-test
cfn-response.js
cfn-response.js
cfn-response.js
11:65 
11:65 
11:65 
view