microsoft / lagscope
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
  • 5% duplication:
    • 1,158 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 60 duplicated lines
  • 7 duplicates
system5% (60 lines)
Duplication per Extension
c5% (60 lines)
Duplication per Component (primary)
src5% (60 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
6 x 2 src
src
main.c
main.c
369:374 (1%)
390:395 (1%)
view
6 x 2 src
src
main.c
main.c
94:100 (1%)
358:363 (1%)
view
6 x 2 src
src
main.c
main.c
369:374 (1%)
380:385 (1%)
view
6 x 2 src
src
main.c
main.c
103:108 (1%)
377:382 (1%)
view
6 x 2 src
src
main.c
main.c
81:86 (1%)
338:343 (1%)
view
6 x 2 src
src
main.c
main.c
380:385 (1%)
390:395 (1%)
view
6 x 2 src
src
main.c
main.c
112:117 (1%)
387:392 (1%)
view