freertos / FreeRTOS-Kernel-Partner-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
  • 98% duplication:
    • 547 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 541 duplicated lines
  • 4 duplicates
system98% (541 lines)
Duplication per Extension
h98% (321 lines)
c100% (220 lines)
Duplication per Component (primary)
AVR_AVRDx97% (271 lines)
AVR_Mega0100% (270 lines)

Duplication Between Components (50+ lines)

G AVR_AVRDx AVR_AVRDx AVR_Mega0 AVR_Mega0 AVR_AVRDx--AVR_Mega0 541

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
111 x 2 GCC/AVR_AVRDx
GCC/AVR_Mega0
portmacro.h
portmacro.h
34:258 (100%)
34:258 (100%)
view
110 x 2 GCC/AVR_AVRDx
GCC/AVR_Mega0
port.c
port.c
47:389 (100%)
47:389 (100%)
view
37 x 2 GCC/AVR_AVRDx
GCC/AVR_Mega0
porthardware.h
porthardware.h
37:141 (66%)
37:143 (75%)
view
13 x 2 GCC/AVR_AVRDx
GCC/AVR_Mega0
porthardware.h
porthardware.h
171:215 (23%)
143:176 (26%)
view
Duplicated Units
The list of top 6 duplicated units.
See data for all 6 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 GCC/AVR_Mega0
GCC/AVR_AVRDx
port.c
port.c
275:291 
275:291 
view
10 x 2 GCC/AVR_Mega0
GCC/AVR_AVRDx
port.c
port.c
262:273 
262:273 
view
9 x 2 GCC/AVR_Mega0
GCC/AVR_AVRDx
port.c
port.c
182:194 
182:194 
view
6 x 2 GCC/AVR_Mega0
GCC/AVR_AVRDx
port.c
port.c
124:138 
124:138 
view
6 x 3 GCC/AVR_Mega0
GCC/AVR_Mega0
GCC/AVR_AVRDx
port.c
port.c
port.c
152:158 
166:172 
152:158 
view
6 x 2 GCC/AVR_Mega0
GCC/AVR_AVRDx
port.c
port.c
200:207 
200:207 
view