freertos / FreeRTOS-Kernel-Community-Supported-Ports
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
  • 22% duplication:
    • 982 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 217 duplicated lines
  • 7 duplicates
system22% (217 lines)
Duplication per Extension
h39% (192 lines)
c5% (25 lines)
Duplication per Component (primary)
Z88DK/Z18043% (178 lines)
GCC/TriCore_38xa13% (39 lines)
GCC/MSP430FR59690% (0 lines)
GCC/RISC-V/chip_specific_extensions/THEAD_RV320% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
45 x 2 Z88DK/Z180
Z88DK/Z180
portmacro.h
portmacro.h
293:339 (15%)
352:398 (15%)
view
30 x 2 Z88DK/Z180
Z88DK/Z180
portmacro.h
portmacro.h
139:170 (10%)
198:229 (10%)
view
14 x 2 Z88DK/Z180
Z88DK/Z180
portmacro.h
portmacro.h
124:137 (4%)
183:196 (4%)
view
9 x 2 GCC/TriCore_38xa
GCC/TriCore_38xa
port.c
port.c
497:506 (5%)
545:554 (5%)
view
7 x 2 GCC/TriCore_38xa
GCC/TriCore_38xa
port.c
port.c
363:369 (4%)
545:551 (4%)
view
7 x 2 GCC/TriCore_38xa
GCC/TriCore_38xa
port.c
port.c
363:369 (4%)
497:503 (4%)
view
7 x 2 GCC/TriCore_38xa
GCC/TriCore_38xa
portmacro.h
portmacro.h
121:131 (20%)
132:142 (20%)
view