microsoft / TypeScript-Node-Starter
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
  • 3% duplication:
    • 3,802 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 133 duplicated lines
  • 11 duplicates
system3% (133 lines)
Duplication per Extension
scss1% (57 lines)
pug11% (40 lines)
ts6% (36 lines)
Duplication per Component (primary)
src/public1% (57 lines)
src/controllers11% (36 lines)
views26% (20 lines)
views/account11% (20 lines)
ROOT0% (0 lines)
src0% (0 lines)
src/config0% (0 lines)
src/models0% (0 lines)
src/util0% (0 lines)
views/api0% (0 lines)
views/partials0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
11 x 2 src/public/css/themes/flatly
src/public/css/themes/flatly
_flatly.scss
_flatly.scss
158:168 (4%)
183:193 (4%)
view
11 x 2 src/public/css/themes/flatly
src/public/css/themes/flatly
_flatly.scss
_flatly.scss
133:143 (4%)
158:168 (4%)
view
11 x 2 src/public/css/themes/flatly
src/public/css/themes/flatly
_flatly.scss
_flatly.scss
133:143 (4%)
183:193 (4%)
view
10 x 2 views
views
pug
home.pug
home.pug
8:17 (38%)
18:27 (38%)
view
10 x 2 views/account
views/account
pug
login.pug
signup.pug
9:18 (34%)
8:17 (41%)
view
8 x 2 src/controllers
src/controllers
user.ts
user.ts
286:294 (3%)
360:368 (3%)
view
7 x 2 src/controllers
src/controllers
user.ts
user.ts
136:145 (2%)
173:182 (2%)
view
6 x 2 src/public/css/themes/gsdk/gsdk
src/public/css/themes/gsdk/gsdk
_tooltips.scss
_tooltips.scss
95:100 (5%)
102:107 (5%)
view
6 x 2 src/public/css/themes/gsdk/gsdk
src/public/css/themes/gsdk/gsdk
_responsive.scss
_responsive.scss
30:35 (2%)
40:45 (2%)
view
6 x 2 src/controllers
src/controllers
contact.ts
user.ts
5:11 (18%)
286:292 (2%)
view
6 x 2 src/controllers
src/controllers
contact.ts
user.ts
5:11 (18%)
360:366 (2%)
view