The current implementation counts the number of statements and complains if that number is larger than x.
The implementation could be made smarter by checking which statements throw which exception. Then one could better evaluate if the block could be smaller.
Summary
The current implementation counts the number of statements and complains if that number is larger than x.
The implementation could be made smarter by checking which statements throw which exception. Then one could better evaluate if the block could be smaller.
Lint Name
No response
Reproducer