aws-samples / aws-serverless-subscription-service-node
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
  • 41% duplication:
    • 940 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 386 duplicated lines
  • 18 duplicates
system41% (386 lines)
Duplication per Extension
js53% (346 lines)
html20% (40 lines)
Duplication per Component (primary)
ROOT35% (184 lines)
paywall_edge_function90% (162 lines)
view20% (40 lines)
public0% (0 lines)

Duplication Between Components (50+ lines)

G ROOT ROOT paywall_edge_function paywall_edge_function ROOT--paywall_edge_function 324

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 18 longest duplicates.
See data for all 18 duplicates...
Size#FoldersFilesLinesCode
103 x 2 ROOT
paywall_edge_function
paywall.js
paywall.js
75:187 (62%)
81:193 (59%)
view
28 x 2 ROOT
paywall_edge_function
paywall.js
paywall.js
189:223 (16%)
195:229 (16%)
view
18 x 2 ROOT
paywall_edge_function
paywall.js
paywall.js
33:57 (10%)
31:55 (10%)
view
11 x 2 ROOT
ROOT
entitlements.js
login.js
20:32 (7%)
20:32 (11%)
view
8 x 2 view
view
entitlements.html
entitlements.html
23:30 (10%)
34:41 (10%)
view
8 x 2 view
view
entitlements.html
login.html
2:9 (10%)
2:9 (15%)
view
8 x 2 view
view
index.html
login.html
2:9 (12%)
2:9 (15%)
view
8 x 2 view
view
entitlements.html
index.html
2:9 (10%)
2:9 (12%)
view
7 x 2 ROOT
paywall_edge_function
config.js
config.js
20:31 (100%)
21:32 (100%)
view
6 x 2 ROOT
ROOT
paywall.js
paywall.js
117:122 (3%)
146:151 (3%)
view
6 x 2 ROOT
ROOT
paywall.js
paywall.js
147:152 (3%)
179:185 (3%)
view
6 x 2 paywall_edge_function
paywall_edge_function
paywall.js
paywall.js
153:158 (3%)
185:191 (3%)
view
6 x 2 ROOT
paywall_edge_function
paywall.js
paywall.js
146:151 (3%)
123:128 (3%)
view
6 x 2 ROOT
paywall_edge_function
paywall.js
paywall.js
147:152 (3%)
185:191 (3%)
view
6 x 2 paywall_edge_function
paywall_edge_function
paywall.js
paywall.js
123:128 (3%)
152:157 (3%)
view
6 x 2 ROOT
paywall_edge_function
paywall.js
paywall.js
117:122 (3%)
152:157 (3%)
view
6 x 2 ROOT
paywall_edge_function
paywall.js
paywall.js
179:185 (3%)
153:158 (3%)
view
6 x 2 ROOT
paywall_edge_function
paywall.js
paywall.js
66:72 (3%)
72:78 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
13 x 2 paywall_edge_function
ROOT
paywall.js
paywall.js
34:47 
36:49 
view