aws-samples / aws-panorama-shelf-monitoring
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
  • 10% duplication:
    • 659 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 71 duplicated lines
  • 29 duplicates
system10% (71 lines)
Duplication per Extension
js30% (55 lines)
py10% (16 lines)
Duplication per Component (primary)
src/graphql50% (55 lines)
cloudformation/custom_resources/githubhelper30% (8 lines)
cloudformation/custom_resources/getAppSyncEndpoint13% (8 lines)
amplify/backend/api0% (0 lines)
amplify/backend/function0% (0 lines)
src0% (0 lines)
src/Functions0% (0 lines)
public0% (0 lines)
cloudformation/custom_resources/sqsInvokedFunction0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 29 duplicates...
Size#FoldersFilesLinesCode
8 x 2 cloudformation/custom_resources/getAppSyncEndpoint
cloudformation/custom_resources/githubhelper
custom_resource.py
custom_resource.py
5:12 (13%)
7:14 (30%)
view
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 (20%)
view
7 x 2 src/graphql
src/graphql
mutations.js
queries.js
10:18 (17%)
7:15 (20%)
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 (20%)
7:15 (23%)
view
7 x 2 src/graphql
src/graphql
queries.js
subscriptions.js
7:15 (20%)
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 (20%)
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 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 (20%)
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