Closed stalker474 closed 4 months ago
The linked declaration style of a struct is using index-based argument initialization.
list.nodes[newNodeId] = Node(_deposit, NULL);
We advise the key-value declaration format to be utilized instead, greatly increasing the legibility of the codebase.
DLL-05C: Suboptimal Struct Declaration Style
Description:
The linked declaration style of a struct is using index-based argument initialization.
Example:
Recommendation:
We advise the key-value declaration format to be utilized instead, greatly increasing the legibility of the codebase.