[Phpmyadmin-devel] New PHPCS rule
Marc Delisle
marc at infomarc.info
Mon Dec 16 12:20:06 CET 2013
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?
--
Marc Delisle
http://infomarc.info | http://phpmyadmin.net
More information about the Developers
mailing list