Skip to content
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

Add no-else-raise check #92

Merged
merged 2 commits into from
Apr 11, 2023
Merged

Add no-else-raise check #92

merged 2 commits into from
Apr 11, 2023

Conversation

Ruchip16
Copy link
Member

@Ruchip16 Ruchip16 commented Apr 11, 2023

The no-else-raise check ensures that there is no unnecessary else statement in the code block following a raise statement. As the raise statement causes an exception to be thrown, any code following the raise statement will not be executed, which makes the else block redundant and hence this check ensures that there is no else block after a raise statement. It helps to make our code readable amd modular.

Related to #85

@Ruchip16 Ruchip16 added the bug label Apr 11, 2023
@Ruchip16 Ruchip16 requested a review from a team as a code owner April 11, 2023 08:25
@Ruchip16 Ruchip16 self-assigned this Apr 11, 2023
@Ruchip16 Ruchip16 requested review from ganeshrn, trishnaguha, cidrblock, priyamsahoo and ssbarnea and removed request for a team April 11, 2023 08:25
@Ruchip16 Ruchip16 merged commit 21010f8 into ansible:main Apr 11, 2023
@Ruchip16 Ruchip16 deleted the else-fix branch April 11, 2023 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants