microsoft / gather
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
  • 2% duplication:
    • 2,616 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 60 duplicated lines
  • 6 duplicates
system2% (60 lines)
Duplication per Extension
ts2% (60 lines)
Duplication per Component (primary)
src/main10% (32 lines)
src/overlay3% (28 lines)
ROOT0% (0 lines)
src/model0% (0 lines)
src/persistence0% (0 lines)
src/util0% (0 lines)
src/widgets/codeversion0% (0 lines)
src/widgets/history0% (0 lines)
src/widgets/notification0% (0 lines)
src/widgets/revision0% (0 lines)
src/widgets/slicedcell0% (0 lines)
style0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
7 x 2 src/overlay
src/overlay
toolbar.ts
toolbar.ts
158:166 (3%)
190:198 (3%)
view
7 x 2 src/main
src/main
main.ts
main.ts
138:144 (3%)
155:161 (3%)
view
7 x 2 src/overlay
src/overlay
toolbar.ts
toolbar.ts
168:177 (3%)
200:209 (3%)
view
6 x 2 src/main
src/main
main.ts
main.ts
156:161 (2%)
174:179 (2%)
view
6 x 2 src/main
src/main
main.ts
main.ts
149:154 (2%)
167:172 (2%)
view
6 x 2 src/main
src/main
main.ts
main.ts
139:144 (2%)
174:179 (2%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 src/overlay
src/overlay
toolbar.ts
toolbar.ts
152:163 
184:195 
view
10 x 2 src/overlay
src/overlay
toolbar.ts
toolbar.ts
165:175 
197:207 
view