--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: excessiveNesting.js --- # Input ```jsx function excessiveNesting() { function nested1() { function nested2() { function nested3() { function nested4() { function nested5() { function nested6() { function nested7() { function nested8() { function nested9() { function nested10() { function nested11() { function nested12() { console.log("I can see my house from here!"); } } } } } } } } } } } } } ``` # Diagnostics ``` excessiveNesting.js:10:46 lint/complexity/noExcessiveCognitiveComplexity ━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Excessive complexity detected. 8 │ function nested7() { 9 │ function nested8() { > 10 │ function nested9() { │ ^^^^^^^ 11 │ function nested10() { 12 │ function nested11() { i Please refactor this function to reduce its complexity. It's currently too complex or too deeply nested to calculate an accurate score. ```