microsoft / paris
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:
    • 1,680 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 58 duplicated lines
  • 4 duplicates
system3% (58 lines)
Duplication per Extension
ts3% (58 lines)
Duplication per Component (primary)
lib/api/repository6% (28 lines)
lib5% (18 lines)
lib/modeling4% (12 lines)
ROOT0% (0 lines)
lib/api/api-calls0% (0 lines)
lib/api/entity0% (0 lines)
lib/api0% (0 lines)
lib/api/events0% (0 lines)
lib/config0% (0 lines)
lib/config/decorators0% (0 lines)
lib/config/services0% (0 lines)
lib/data_access0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
9 x 2 lib
lib
paris.ts
paris.ts
226:235 (3%)
244:253 (3%)
view
8 x 2 lib/api/repository
lib/api/repository
repository.ts
repository.ts
188:195 (4%)
246:253 (4%)
view
6 x 2 lib/api/repository
lib/api/repository
repository.ts
repository.ts
174:180 (3%)
229:235 (3%)
view
6 x 2 lib/modeling
lib/modeling
modeler.ts
modeler.ts
114:120 (2%)
130:136 (2%)
view