Le 2013-12-15 14:36, Hugues Peccatte a écrit :
Hi,
What would you think about using the "nesting level" sniff please? This sniff permits to detect when there are too much nested levels like: if (...) { if (...) { if (...) { if (...) { if (...) { .... } } } } }
This kind of syntax often means that a refactoring is needed or a rewrite.
I can add it myself if you agree.
Good idea but how many levels is considered "too many"? Can you give an example of nesting levels you found?