What it flags
Four nested control structures. JS/TS reports the deepest site in each function. The other parsers report threshold crossings in supported conditional and loop bodies. Independent function scopes start fresh.Inline fix
Lifts the deepest branch one level with a guard clause, a merged nestedif, or by dropping an else after a branch that exits.
Configuration
Set the rule to"off" in loadwise.config.json to drop its findings:
level and options sets the rule’s threshold. It takes a maxDepth option, a positive integer. The rule then reports control flow nested more than maxDepth levels deep. Without the option, it reports from four nested levels, the same as maxDepth: 3. Other languages keep the built-in threshold.
level is required: "warn" reports findings without changing the exit code. An overrides entry can set different options for the files it matches, and its options win over the top-level ones.