Skip to content

Report if/else as issue location instead of block#5407

Merged
BraisGabin merged 1 commit into
detekt:mainfrom
dizney:report-location-mandatory-braces-if
Oct 13, 2022
Merged

Report if/else as issue location instead of block#5407
BraisGabin merged 1 commit into
detekt:mainfrom
dizney:report-location-mandatory-braces-if

Conversation

@dizney

@dizney dizney commented Oct 12, 2022

Copy link
Copy Markdown
Contributor

Report mandatory braces issues on the actual if and/or else keywords instead of the then or else code blocks to prevent hiding potential other issues in those code blocks.

Closes #5317

Report mandatory braces issues on the actual if and/or else keywords
instead of the then or else code blocks to prevent hiding potential
other issues in those code blocks.

Closes detekt#5317

@BraisGabin BraisGabin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

@BraisGabin BraisGabin merged commit 48f5615 into detekt:main Oct 13, 2022
@dizney dizney deleted the report-location-mandatory-braces-if branch October 13, 2022 21:46
@BraisGabin BraisGabin added this to the 1.22.0 milestone Oct 14, 2022
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.

MandatoryBracesIfStatement to highlight only if/else keywords

2 participants