microsoft / checkedc-parson
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
  • 8% duplication:
    • 2,166 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 186 duplicated lines
  • 25 duplicates
system8% (186 lines)
Duplication per Extension
c9% (186 lines)
Duplication per Component (primary)
ROOT8% (186 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 25 duplicates...
Size#FoldersFilesLinesCode
12 x 2 ROOT
ROOT
parson.c
parson.c
1673:1688 (<1%)
1735:1750 (<1%)
view
12 x 2 ROOT
ROOT
parson.c
parson.c
998:1014 (<1%)
1046:1062 (<1%)
view
9 x 2 ROOT
ROOT
parson.c
tests.c
322:332 (<1%)
645:655 (1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
1870:1877 (<1%)
1882:1889 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
1882:1889 (<1%)
1906:1913 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
2007:2014 (<1%)
2031:2038 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
1894:1901 (<1%)
1906:1913 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
2019:2026 (<1%)
2031:2038 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
2031:2038 (<1%)
2043:2050 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
1694:1700 (<1%)
1756:1762 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
1803:1810 (<1%)
1827:1834 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
1815:1822 (<1%)
1827:1834 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
1072:1079 (<1%)
1095:1102 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
1882:1889 (<1%)
1894:1901 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
tests.c
335:341 (<1%)
657:663 (1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
2007:2014 (<1%)
2043:2050 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
1870:1877 (<1%)
1894:1901 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
2019:2026 (<1%)
2043:2050 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
1803:1810 (<1%)
1815:1822 (<1%)
view
6 x 2 ROOT
ROOT
parson.c
parson.c
1803:1810 (<1%)
1839:1846 (<1%)
view