Query module BlockWithTooManyStatements

name
Block with too many statements
description
Blocks with too many consecutive statements are candidates for refactoring. Only complex statements are counted here (eg. for, while, switch …). The top-level logic will be clearer if each complex statement is extracted to a function.
kind
problem
problem.severity
recommendation
precision
high
id
cpp/complex-block
tags
testability readability maintainability

Imports

cpp

Provides classes and predicates for working with C/C++/ObjC/ObjC++ code.

Classes