aws-quickstart / connect-integration-smg-agenttrack
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
  • 20% duplication:
    • 486 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 100 duplicated lines
  • 6 duplicates
system20% (100 lines)
Duplication per Extension
yaml25% (88 lines)
js8% (12 lines)
Duplication per Component (primary)
templates25% (88 lines)
functions/source/SmgNextQuestionLambda9% (6 lines)
functions/source/SmgPushToSmgLambda8% (6 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
13 x 2 templates
templates
agenttrack.template.yaml
agenttrack.template.yaml
129:141 (3%)
149:161 (3%)
view
11 x 2 templates
templates
agenttrack.template.yaml
agenttrack.template.yaml
283:293 (3%)
323:333 (3%)
view
7 x 2 templates
templates
agenttrack.template.yaml
agenttrack.template.yaml
183:189 (2%)
197:203 (2%)
view
7 x 2 templates
templates
agenttrack.template.yaml
agenttrack.template.yaml
64:70 (2%)
255:261 (2%)
view
6 x 2 templates
templates
agenttrack.template.yaml
agenttrack.template.yaml
107:112 (1%)
114:119 (1%)
view
6 x 2 functions/source/SmgNextQuestionLambda
functions/source/SmgPushToSmgLambda
index.js
index.js
61:67 (9%)
53:59 (8%)
view