Skip to content

Conversation

@timtebeek
Copy link
Member

What's changed?

No longer simplify boolean returns if there are comments on the return statements.

What's your motivation?

Comments might provide important context that can be lost when returns are simplified.

@timtebeek timtebeek requested a review from kunli2 September 22, 2023 17:29
@timtebeek timtebeek self-assigned this Sep 22, 2023
@timtebeek timtebeek added the enhancement New feature or request label Sep 22, 2023
@timtebeek timtebeek added this to the Good first experience with static code analysis recipes milestone Sep 22, 2023
@kunli2 kunli2 merged commit 25b6794 into main Sep 22, 2023
@kunli2 kunli2 deleted the do_not_simplify_boolean_return_with_comments branch September 22, 2023 20:33
@jbessels
Copy link
Contributor

Good solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants