aws-samples / cloudfront-app-with-cognito-auth-at-edge
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
  • 16% duplication:
    • 792 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 134 duplicated lines
  • 1 duplicates
system16% (134 lines)
Duplication per Extension
js18% (134 lines)
Duplication per Component (primary)
lib26% (134 lines)
src0% (0 lines)
ROOT0% (0 lines)
example/src0% (0 lines)
example/public0% (0 lines)
Longest Duplicates
The list of 1 longest duplicates.
See data for all 1 duplicate
Size#FoldersFilesLinesCode
67 x 2 lib
lib
util.js
util.js
137:224 (29%)
229:316 (29%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
19 x 2 lib
lib
util.js
util.js
149:168 
241:260 
view
10 x 2 lib
lib
util.js
util.js
137:147 
229:239 
view