-
Notifications
You must be signed in to change notification settings - Fork 8
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
ignore try-catch block as indentation #45
Comments
Thanks @winkbrace. I can take a look at solving this unless you were interested in submitting a pull request? |
Okay, good point. I'll give it a try this weekend. |
Hey @winkbrace I created a couple of tests for the indentation level sniff using your code snippets above and no errors or warnings were produced. So I was unable to duplicate the issue you are having. I just committed these tests to the master branch. I'm going to close this for now but if you're still having the same issue can you please let me know? Maybe I'm missing a step in my attempt to duplicate. |
Currently any loop or conditional in a try-catch block is reported. The only workaround is to put it in a function, but that doesn't always make sense. It's basically doubling the amount of functions if you need a try-catch block.
also in the catch part:
The text was updated successfully, but these errors were encountered: