New Rule: BracesOnWhenStatements with configurable parameters#5838
Conversation
BracesOnWhenStatements with configurable parameters
Codecov Report
@@ Coverage Diff @@
## main #5838 +/- ##
============================================
+ Coverage 84.59% 84.68% +0.09%
- Complexity 3776 3859 +83
============================================
Files 546 550 +4
Lines 12916 13109 +193
Branches 2268 2313 +45
============================================
+ Hits 10926 11102 +176
- Misses 861 868 +7
- Partials 1129 1139 +10
... and 59 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
TWiStErRob
left a comment
There was a problem hiding this comment.
Nice one, a few changes are needed to make sense of consistent/multi-statement. But the majority is good! Thank you!
…/rules/style/BracesOnWhenStatements.kt Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
…/rules/style/BracesOnWhenStatements.kt Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
…/rules/style/BracesOnWhenStatements.kt Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
…/rules/style/BracesOnWhenStatements.kt Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
2e41d56 to
5872284
Compare
5872284 to
3497d3d
Compare
3497d3d to
99ade13
Compare
|
Also, I can't engage this rule in |
I don't understand the your statment. Can you elavorate? |
I mean if I turn on this rule, detekt task fails. No matter what parameters I use in the rule: consistent, necessary, etc. We have to fix codebase a bit |
|
Oh, sure. No problem about that. We can enable it later in other pr with the proper fixes. |
There was a problem hiding this comment.
Sorry for the delay, move was longer than expected. This looks good now, just some final touches / simplifications. Happy to help finishing up, find me on Slack. Please look through all the unresolved conversations on the PR, there might be some hiding behind expanders.
bbc41bf to
457c337
Compare
…/rules/style/BracesOnWhenStatements.kt Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
For #5133
Similar to #5700