New Lint: Avoid too many static code paths #1681
Labels
A-lint
Area: New lints
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
L-correctness
Lint: Belongs in the correctness lint group
L-style
Lint: Belongs in the style lint group
T-middle
Type: Probably requires verifiying types
T-MIR
Type: This lint will require working with the MIR
Based on this HIC++ guideline, in addition to the existing cyclomatic complexity lint. It basically comes down to the possible number of branches in a function's code path, not counting loops. E.g. this is okay:
Wherease this is not so cool:
The text was updated successfully, but these errors were encountered: