awslabs / aws-jwt-verify
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
  • 11% duplication:
    • 1,562 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 180 duplicated lines
  • 17 duplicates
system11% (180 lines)
Duplication per Extension
ts11% (180 lines)
Duplication per Component (primary)
src11% (180 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 17 longest duplicates.
See data for all 17 duplicates...
Size#FoldersFilesLinesCode
13 x 2 src
src
cognito-verifier.ts
cognito-verifier.ts
321:335 (5%)
353:367 (5%)
view
12 x 2 src
src
jwt-rsa.ts
jwt-rsa.ts
289:301 (2%)
397:409 (2%)
view
11 x 2 src
src
assert.ts
assert.ts
57:68 (12%)
93:103 (12%)
view
9 x 2 src
src
jwt-rsa.ts
jwt-rsa.ts
229:237 (2%)
326:334 (2%)
view
9 x 2 src
src
assert.ts
assert.ts
26:35 (9%)
66:76 (9%)
view
9 x 2 src
src
jwt-rsa.ts
jwt-rsa.ts
330:338 (2%)
364:372 (2%)
view
9 x 2 src
src
jwt-rsa.ts
jwt-rsa.ts
266:274 (2%)
360:368 (2%)
view
9 x 2 src
src
jwt-rsa.ts
jwt-rsa.ts
45:77 (2%)
231:239 (2%)
view
8 x 2 src
src
jwt-rsa.ts
jwt-rsa.ts
233:240 (1%)
270:277 (1%)
view
8 x 2 src
src
cognito-verifier.ts
jwt-rsa.ts
51:77 (3%)
269:276 (1%)
view
7 x 2 src
src
jwt-rsa.ts
jwt-rsa.ts
56:77 (1%)
270:276 (1%)
view
7 x 2 src
src
cognito-verifier.ts
jwt-rsa.ts
56:77 (3%)
233:239 (1%)
view
7 x 2 src
src
jwt-rsa.ts
jwt-rsa.ts
45:69 (1%)
328:334 (1%)
view
7 x 2 src
src
cognito-verifier.ts
cognito-verifier.ts
100:106 (3%)
115:121 (3%)
view
7 x 2 src
src
cognito-verifier.ts
jwt-rsa.ts
56:77 (3%)
56:77 (1%)
view
6 x 2 src
src
cognito-verifier.ts
jwt-rsa.ts
51:69 (2%)
363:368 (1%)
view
6 x 2 src
src
cognito-verifier.ts
jwt-rsa.ts
222:227 (2%)
678:683 (1%)
view