<div dir="ltr">Hi,<div><br></div><div>What would you think about using the "nesting level" sniff please?</div><div>This sniff permits to detect when there are too much nested levels like:</div><div>if (...) {</div>
<div> if (...) {</div><div> if (...) {</div><div> if (...) {</div><div> if (...) {</div><div> ....<br></div><div> }<br></div><div> }<br></div>
<div> }<br></div><div> }<br></div><div>}</div><div><br></div><div>This kind of syntax often means that a refactoring is needed or a rewrite.</div><div><br></div><div>I can add it myself if you agree.</div><div>
<br>
</div><div>Thanks,</div><div>Hugues.</div></div>