aws-samples / amazon-api-gateway-url-shortener
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
  • 20% duplication:
    • 1,225 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 248 duplicated lines
  • 18 duplicates
system20% (248 lines)
Duplication per Extension
yaml29% (232 lines)
vue4% (16 lines)
Duplication per Component (primary)
ROOT29% (232 lines)
client/src9% (16 lines)
client0% (0 lines)
client/src/views0% (0 lines)
client/src/store0% (0 lines)
client/src/router0% (0 lines)
client/src/assets0% (0 lines)
client/public0% (0 lines)
Longest Duplicates
The list of 18 longest duplicates.
See data for all 18 duplicates...
Size#FoldersFilesLinesCode
17 x 2 ROOT
ROOT
api.yaml
api.yaml
187:205 (4%)
318:334 (4%)
view
16 x 2 ROOT
ROOT
api.yaml
api.yaml
165:180 (4%)
301:316 (4%)
view
15 x 2 ROOT
ROOT
api.yaml
api.yaml
142:158 (4%)
278:294 (4%)
view
12 x 2 ROOT
ROOT
template.yaml
template.yaml
234:245 (2%)
263:274 (2%)
view
11 x 2 ROOT
ROOT
template.yaml
template.yaml
341:351 (2%)
359:369 (2%)
view
8 x 2 client/src
client/src
App.vue
App.vue
136:143 (5%)
165:172 (5%)
view
8 x 2 ROOT
ROOT
api.yaml
api.yaml
139:146 (2%)
227:234 (2%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
345:351 (1%)
399:405 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
288:294 (1%)
315:321 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
395:401 (1%)
413:419 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
363:369 (1%)
399:405 (1%)
view
6 x 2 ROOT
ROOT
api.yaml
api.yaml
165:170 (1%)
248:253 (1%)
view
6 x 2 ROOT
ROOT
api.yaml
api.yaml
350:355 (1%)
361:366 (1%)
view
6 x 2 ROOT
ROOT
api.yaml
api.yaml
85:90 (1%)
139:144 (1%)
view
6 x 2 ROOT
ROOT
api.yaml
api.yaml
51:58 (1%)
90:98 (1%)
view
6 x 2 ROOT
ROOT
api.yaml
api.yaml
85:90 (1%)
227:232 (1%)
view
6 x 2 ROOT
ROOT
api.yaml
api.yaml
132:137 (1%)
265:270 (1%)
view
6 x 2 ROOT
ROOT
api.yaml
api.yaml
248:253 (1%)
301:306 (1%)
view