VHDL227: Processes should not have too many lines of code
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| - | - | MEDIUM | Intentionality | Clear | 30min | synthesis, complexity, vscode, linter, simulation |
Description
A process that grows too much tends to aggregate too many responsibilities and inevitably becomes harder to understand and therefore to maintain. Above a specific threshold, it is strongly advised to refactor it into smaller processes which focus on well defined tasks. Those smaller processes will not only be easier to understand but also probably easier to test.
Parameters
| Parameter | Value | Description |
|---|---|---|
| max | 100 | Maximum number of lines of code in a process. |