Klocwork Documentation | 2025.4
PY3.R1702
Function or a method has too many nested blocks
Used when a function or a method has too many nested blocks. This makes the code less understandable and maintainable.
Noncompliant Code:
Compliant Code:
Additional details
See arg-max-nested-blocks parameter.