aws-samples / aws-cdk-spa-bg-deployment
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:
    • 400 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 64 duplicated lines
  • 3 duplicates
system16% (64 lines)
Duplication per Extension
vue45% (64 lines)
Duplication per Component (primary)
vue-web-component-app/src58% (64 lines)
vue-web-component-app0% (0 lines)
vue-web-component-app/src/store0% (0 lines)
vue-web-component-app/src/components0% (0 lines)
vue-web-component-app/public0% (0 lines)
cdk/lib0% (0 lines)
cdk/lib/lambda0% (0 lines)
cdk0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
18 x 2 vue-web-component-app/src
vue-web-component-app/src
AdditionApp.vue
CounterApp.vue
61:81 (34%)
61:81 (34%)
view
8 x 2 vue-web-component-app/src
vue-web-component-app/src
AdditionApp.vue
CounterApp.vue
45:54 (15%)
45:54 (15%)
view
6 x 2 vue-web-component-app/src
vue-web-component-app/src
AdditionApp.vue
CounterApp.vue
20:29 (11%)
20:29 (11%)
view