aws-samples / aws-lambda-fanout
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
  • 19% duplication:
    • 1,241 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 240 duplicated lines
  • 99 duplicates
system19% (240 lines)
Duplication per Extension
js19% (240 lines)
Duplication per Component (primary)
lib22% (240 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 99 duplicates...
Size#FoldersFilesLinesCode
14 x 2 lib
lib
post-es.js
post-iot.js
24:45 (20%)
24:45 (26%)
view
14 x 2 lib
lib
post-es.js
post-sqs.js
24:45 (20%)
24:45 (31%)
view
14 x 2 lib
lib
post-firehose.js
post-kinesis.js
24:45 (32%)
24:45 (43%)
view
14 x 2 lib
lib
post-iot.js
post-sqs.js
24:45 (26%)
24:45 (31%)
view
13 x 2 lib
lib
post-firehose.js
post-sqs.js
24:44 (30%)
24:44 (28%)
view
13 x 2 lib
lib
post-es.js
post-kinesis.js
24:44 (18%)
24:44 (40%)
view
13 x 2 lib
lib
post-firehose.js
post-iot.js
24:44 (30%)
24:44 (25%)
view
13 x 2 lib
lib
post-es.js
post-firehose.js
24:44 (18%)
24:44 (30%)
view
13 x 2 lib
lib
post-kinesis.js
post-sqs.js
24:44 (40%)
24:44 (28%)
view
13 x 2 lib
lib
post-iot.js
post-kinesis.js
24:44 (25%)
24:44 (40%)
view
12 x 2 lib
lib
post-kinesis.js
post-lambda.js
24:41 (37%)
24:41 (54%)
view
12 x 2 lib
lib
post-es.js
post-lambda.js
24:41 (17%)
24:41 (54%)
view
12 x 2 lib
lib
post-lambda.js
post-sns.js
24:41 (54%)
24:41 (26%)
view
12 x 2 lib
lib
post-lambda.js
post-sqs.js
24:41 (54%)
24:41 (26%)
view
12 x 2 lib
lib
post-kinesis.js
post-sns.js
24:41 (37%)
24:41 (26%)
view
12 x 2 lib
lib
post-sns.js
post-sqs.js
24:41 (26%)
24:41 (26%)
view
12 x 2 lib
lib
post-firehose.js
post-lambda.js
24:41 (27%)
24:41 (54%)
view
12 x 2 lib
lib
post-iot.js
post-lambda.js
24:41 (23%)
24:41 (54%)
view
12 x 2 lib
lib
post-iot.js
post-sns.js
24:41 (23%)
24:41 (26%)
view
12 x 2 lib
lib
post-es.js
post-sns.js
24:41 (17%)
24:41 (26%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 11 lib
lib
lib
lib
lib
lib
lib
lib
lib
lib
...
post-firehose.js
redis.js
post-lambda.js
configuration.js
statistics.js
post-sns.js
post-iot.js
memcached.js
post-es.js
post-sqs.js
...
33:39 
34:40 
33:39 
50:56 
33:39 
33:39 
33:39 
36:42 
33:39 
33:39 
...
view