---
title: "analyse/control-flow"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

if, switch, match, loops, return and the other control structures. Also in [format](/docs/rules/format/control-flow) (13) and [lint](/docs/rules/lint/control-flow) (16).

**[break-outside-loop](/docs/rules/analyse/control-flow/break-outside-loop)**

In the `analyse-basic` preset and every stricter one. Report only.

**[non-boolean-condition](/docs/rules/analyse/control-flow/non-boolean-condition)**

In the `analyse-strict` preset and every stricter one. Report only. Upstream gates: `strictRules.booleansInConditions`.

**[non-boolean-do-while](/docs/rules/analyse/control-flow/non-boolean-do-while)**

In the `analyse-strict` preset and every stricter one. Report only. Upstream gates: `strictRules.booleansInLoopConditions + bleedingEdge`.

**[non-boolean-elseif](/docs/rules/analyse/control-flow/non-boolean-elseif)**

In the `analyse-strict` preset and every stricter one. Report only. Upstream gates: `strictRules.booleansInConditions`.

**[non-boolean-ternary](/docs/rules/analyse/control-flow/non-boolean-ternary)**

In the `analyse-strict` preset and every stricter one. Report only. Upstream gates: `strictRules.booleansInConditions`.

**[non-boolean-while](/docs/rules/analyse/control-flow/non-boolean-while)**

In the `analyse-strict` preset and every stricter one. Report only. Upstream gates: `strictRules.booleansInLoopConditions + bleedingEdge`.

**[switch-type-mismatch](/docs/rules/analyse/control-flow/switch-type-mismatch)**

In the `analyse-strict` preset and every stricter one. Report only. Upstream gates: `strictRules.switchConditionsMatchingType`.

**[unhandled-match](/docs/rules/analyse/control-flow/unhandled-match)**

In the `analyse-recommended` preset and every stricter one. Report only.
