-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do we want to restrict code block nesting? #134
Comments
I prefer to leave the liberty to developers because sometimes it might be inconvenient to limit the nesting depth. |
I feel there is no single absolute hard value for maximum nesting depth - "too much" can depend on context. We might play around with this feature, see what the actual maximum in the code base is - and then decide if/where to fix this lint? |
Nice find @sophokles73. Perhaps we could take @AnotherDaniel's idea and then see how it goes for a few weeks or so and revisit? For me, I find that lint rules can help prevent lots of little nits like I left on Kai's PR, since they will just not exist. |
I guess in such a case you could still add an |
Clippy supports enforcing a maximum nesting depth for code blocks.
By default, this lint is not active. Based on a recent code review, I wonder if we want to set an upper limit for the nesting depth?
@PLeVasseur @AnotherDaniel @evshary Any thoughts?
The text was updated successfully, but these errors were encountered: