aws-quickstart / connect-integration-aspect-wfm
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
  • 58% duplication:
    • 2,684 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,559 duplicated lines
  • 180 duplicates
system58% (1,559 lines)
Duplication per Extension
yaml63% (1,407 lines)
cs33% (152 lines)
Duplication per Component (primary)
templates64% (1,407 lines)
functions/source/real-time-adherence/AspectKinesisLamda19% (71 lines)
functions/source/real-time-adherence/AspectAwsLambdaLogger83% (41 lines)
functions/source/real-time-adherence/AspectAwsNLogger88% (40 lines)
functions/source/agent-productivity0% (0 lines)
functions/source/real-time-adherence0% (0 lines)

Duplication Between Components (50+ lines)

G functions/source/real-time-adherence/AspectAwsLambdaLogger functions/source/real-time-adherence/AspectAwsLambdaLogger functions/source/real-time-adherence/AspectKinesisLamda functions/source/real-time-adherence/AspectKinesisLamda functions/source/real-time-adherence/AspectAwsLambdaLogger--functions/source/real-time-adherence/AspectKinesisLamda 78 functions/source/real-time-adherence/AspectAwsNLogger functions/source/real-time-adherence/AspectAwsNLogger functions/source/real-time-adherence/AspectAwsNLogger--functions/source/real-time-adherence/AspectKinesisLamda 76

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 180 duplicates...
Size#FoldersFilesLinesCode
86 x 2 templates
templates
aspect-wfm-ap-and-rta-create-stream.t...
aspect-wfm-ap-and-rta.template.yaml
230:315 (27%)
227:312 (27%)
view
71 x 2 templates
templates
aspect-wfm-ap-and-rta-create-stream.t...
aspect-wfm-ap-and-rta.template.yaml
44:114 (22%)
50:120 (22%)
view
57 x 2 templates
templates
aspect-wfm-ap-and-rta-create-stream.t...
aspect-wfm-ap-and-rta.template.yaml
115:171 (18%)
131:187 (18%)
view
43 x 2 templates
templates
aspect-wfm-ap-and-rta-create-stream.t...
aspect-wfm-ap-kda-create-stream.templ...
137:179 (13%)
80:122 (25%)
view
38 x 2 templates
templates
aspect-wfm-ap-and-rta.template.yaml
aspect-wfm-rta.template.yaml
125:162 (12%)
75:112 (6%)
view
35 x 2 templates
templates
aspect-wfm-ap-and-rta.template.yaml
aspect-wfm-ap-kda-create-stream.templ...
153:187 (11%)
80:114 (20%)
view
32 x 2 templates
templates
aspect-wfm-ap-kda-create-stream.templ...
aspect-wfm-ap-kda.template.yaml
35:66 (19%)
42:73 (5%)
view
32 x 2 templates
templates
aspect-wfm-ap-and-rta-create-stream.t...
aspect-wfm-rta.template.yaml
115:146 (10%)
81:112 (5%)
view
32 x 2 functions/source/real-ti...erence/AspectAwsNLogger
functions/source/real-ti...ence/AspectKinesisLamda
AspectAwsNLogger.cs
NLoggerFacade.cs
15:73 (86%)
15:73 (86%)
view
31 x 2 templates
templates
aspect-wfm-ap-kda-create-stream.templ...
aspect-wfm-ap-kda.template.yaml
80:110 (18%)
98:128 (5%)
view
31 x 2 templates
templates
aspect-wfm-ap-and-rta.template.yaml
aspect-wfm-ap-kda.template.yaml
153:183 (9%)
98:128 (5%)
view
31 x 2 templates
templates
aspect-wfm-ap-and-rta-create-stream.t...
aspect-wfm-ap-kda.template.yaml
137:167 (9%)
98:128 (5%)
view
30 x 2 templates
templates
aspect-wfm-ap-and-rta-create-stream.t...
aspect-wfm-ap-kda.template.yaml
50:79 (9%)
42:71 (5%)
view
30 x 2 templates
templates
aspect-wfm-ap-and-rta.template.yaml
aspect-wfm-ap-kda.template.yaml
56:85 (9%)
42:71 (5%)
view
30 x 2 templates
templates
aspect-wfm-ap-and-rta.template.yaml
aspect-wfm-ap-kda-create-stream.templ...
56:85 (9%)
35:64 (17%)
view
30 x 2 templates
templates
aspect-wfm-ap-and-rta-create-stream.t...
aspect-wfm-ap-kda-create-stream.templ...
50:79 (9%)
35:64 (17%)
view
25 x 2 functions/source/real-ti...e/AspectAwsLambdaLogger
functions/source/real-ti...ence/AspectKinesisLamda
AspectAwsLambdaLogger.cs
AwsLoggerFacade.cs
25:77 (60%)
25:77 (60%)
view
24 x 2 templates
templates
aspect-wfm-rta-create-stream.template...
aspect-wfm-rta.template.yaml
62:85 (10%)
81:104 (4%)
view
24 x 2 templates
templates
aspect-wfm-ap-and-rta-create-stream.t...
aspect-wfm-ap-and-rta.template.yaml
20:43 (7%)
22:45 (7%)
view
24 x 2 templates
templates
aspect-wfm-ap-and-rta.template.yaml
aspect-wfm-rta-create-stream.template...
131:154 (7%)
62:85 (10%)
view
Duplicated Units
The list of top 8 duplicated units.
See data for all 8 unit duplicates...
Size#FoldersFilesLinesCode
15 x 2 functions/source/real-ti...ence/AspectKinesisLamda
functions/source/real-ti...erence/AspectAwsNLogger
NLoggerFacade.cs
AspectAwsNLogger.cs
58:74 
58:74 
view
12 x 2 functions/source/real-ti...ence/AspectKinesisLamda
functions/source/real-ti...erence/AspectAwsNLogger
NLoggerFacade.cs
AspectAwsNLogger.cs
44:57 
44:57 
view
7 x 2 functions/source/real-ti...ence/AspectKinesisLamda
functions/source/real-ti...e/AspectAwsLambdaLogger
AwsLoggerFacade.cs
AspectAwsLambdaLogger.cs
29:36 
29:36 
view
6 x 2 functions/source/real-ti...ence/AspectKinesisLamda
functions/source/real-ti...e/AspectAwsLambdaLogger
AwsLoggerFacade.cs
AspectAwsLambdaLogger.cs
37:43 
37:43 
view
6 x 2 functions/source/real-ti...ence/AspectKinesisLamda
functions/source/real-ti...e/AspectAwsLambdaLogger
AwsLoggerFacade.cs
AspectAwsLambdaLogger.cs
44:50 
44:50 
view
6 x 2 functions/source/real-ti...ence/AspectKinesisLamda
functions/source/real-ti...e/AspectAwsLambdaLogger
AwsLoggerFacade.cs
AspectAwsLambdaLogger.cs
51:57 
51:57 
view
6 x 2 functions/source/real-ti...ence/AspectKinesisLamda
functions/source/real-ti...e/AspectAwsLambdaLogger
AwsLoggerFacade.cs
AspectAwsLambdaLogger.cs
58:64 
58:64 
view
6 x 2 functions/source/real-ti...ence/AspectKinesisLamda
functions/source/real-ti...e/AspectAwsLambdaLogger
AwsLoggerFacade.cs
AspectAwsLambdaLogger.cs
65:71 
65:71 
view