You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #726, I wonder if the Generic.Metrics.NestingLevel should skip nested structures. Currently, it counts the nesting level of inner functions to the "outer" function.
Describe the bug
Similar to #726, I wonder if the
Generic.Metrics.NestingLevel
should skip nested structures. Currently, it counts the nesting level of inner functions to the "outer" function.Code sample
To reproduce
Steps to reproduce the behavior:
test.php
with the code sample above.phpcs --standard=Generic --sniffs=Generic.Metrics.NestingLevel test.php
Expected behavior
Potentially the sniff should not display an error on line 3.
Versions (please complete the following information)
Please confirm
master
branch of PHP_CodeSniffer.The text was updated successfully, but these errors were encountered: