microsoft / tracelogging
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
  • 9% duplication:
    • 1,431 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 134 duplicated lines
  • 10 duplicates
system9% (134 lines)
Duplication per Extension
c13% (134 lines)
Duplication per Component (primary)
src13% (134 lines)
ROOT0% (0 lines)
cmake/modules0% (0 lines)
include/lttngh0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
9 x 2 src
src
LttngHelpers.c
LttngHelpers.c
633:645 (1%)
676:688 (1%)
view
8 x 2 src
src
LttngHelpers.c
LttngHelpers.c
726:737 (<1%)
769:780 (<1%)
view
7 x 2 src
src
LttngHelpers.c
LttngHelpers.c
143:156 (<1%)
193:206 (<1%)
view
7 x 2 src
src
LttngHelpers.c
LttngHelpers.c
255:268 (<1%)
312:325 (<1%)
view
6 x 2 src
src
LttngHelpers.c
LttngHelpers.c
1051:1061 (<1%)
1113:1123 (<1%)
view
6 x 2 src
src
LttngHelpers.c
LttngHelpers.c
1317:1326 (<1%)
1406:1415 (<1%)
view
6 x 2 src
src
LttngHelpers.c
LttngHelpers.c
756:763 (<1%)
804:811 (<1%)
view
6 x 2 src
src
LttngHelpers.c
LttngHelpers.c
663:670 (<1%)
715:722 (<1%)
view
6 x 2 src
src
LttngHelpers.c
LttngHelpers.c
647:654 (<1%)
693:700 (<1%)
view
6 x 2 src
src
LttngHelpers.c
LttngHelpers.c
832:840 (<1%)
878:886 (<1%)
view