-
Notifications
You must be signed in to change notification settings - Fork 39
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
KDOC_WITHOUT_THROWS_TAG
add @throws
annotation when throw inside try catch
#1718
Labels
Comments
Hey! thank you for this report! Sounds reasonable, looks like we implemented it in a very-very simple way. |
0x6675636b796f75676974687562
changed the title
KDOC_WITHOUT_THROWS_TAG add @throws annotation when throw inside try catch
Sep 6, 2023
KDOC_WITHOUT_THROWS_TAG
add @throws
annotation when throw inside try catch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I sometime use
throw
inside atry catch
when I feel like it makes sense, for example to do extra verifications on user input (see example below).Expected behavior
Do nothing
Observed behavior
KDOC_WITHOUT_THROWS_TAG
rule add a@throws
annotation to the function, but it's wrong, this function does not throw anything as it is already caught by the surrounding try catchSteps to Reproduce
Environment information
The text was updated successfully, but these errors were encountered: