aws-samples / amazon-kinesis-data-streams-for-dynamodb
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
  • 7% duplication:
    • 1,003 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 80 duplicated lines
  • 30 duplicates
system7% (80 lines)
Duplication per Extension
js25% (55 lines)
yml4% (25 lines)
Duplication per Component (primary)
src/graphql57% (55 lines)
ROOT7% (18 lines)
amplify/backend/auth/amazonkinesisdatastr1a5aa90c2% (7 lines)
src0% (0 lines)
public0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 30 duplicates...
Size#FoldersFilesLinesCode
7 x 2 src/graphql
src/graphql
subscriptions.js
subscriptions.js
19:27 (23%)
31:39 (23%)
view
7 x 2 src/graphql
src/graphql
mutations.js
mutations.js
10:18 (17%)
40:48 (17%)
view
7 x 2 src/graphql
src/graphql
mutations.js
queries.js
40:48 (17%)
7:15 (26%)
view
7 x 2 src/graphql
src/graphql
mutations.js
queries.js
10:18 (17%)
7:15 (26%)
view
7 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
40:48 (17%)
19:27 (23%)
view
7 x 2 src/graphql
src/graphql
queries.js
subscriptions.js
7:15 (26%)
7:15 (23%)
view
7 x 2 src/graphql
src/graphql
queries.js
subscriptions.js
7:15 (26%)
31:39 (23%)
view
7 x 2 src/graphql
src/graphql
subscriptions.js
subscriptions.js
7:15 (23%)
19:27 (23%)
view
7 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
40:48 (17%)
31:39 (23%)
view
7 x 2 src/graphql
src/graphql
mutations.js
queries.js
25:33 (17%)
7:15 (26%)
view
7 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
25:33 (17%)
19:27 (23%)
view
7 x 2 src/graphql
src/graphql
mutations.js
mutations.js
25:33 (17%)
40:48 (17%)
view
7 x 2 amplify/backend/auth/amazonkinesisdatastr1a5aa90c
ROOT
amazonkinesisdatastr1a5aa90c-cloudfor...
template.yml
245:251 (2%)
28:34 (2%)
view
7 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
10:18 (17%)
7:15 (23%)
view
7 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
25:33 (17%)
7:15 (23%)
view
7 x 2 src/graphql
src/graphql
queries.js
subscriptions.js
7:15 (26%)
19:27 (23%)
view
7 x 2 src/graphql
src/graphql
subscriptions.js
subscriptions.js
7:15 (23%)
31:39 (23%)
view
7 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
10:18 (17%)
19:27 (23%)
view
7 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
25:33 (17%)
31:39 (23%)
view
7 x 2 src/graphql
src/graphql
mutations.js
mutations.js
10:18 (17%)
25:33 (17%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 3 src/graphql
src/graphql
src/graphql
mutations.js
mutations.js
queries.js
9:16 
24:31 
6:13 
view