saveourtool / diktat

Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs
https://diktat.saveourtool.com
MIT License
521 stars 39 forks source link

NO_BRACES_IN_CONDITIONALS_AND_LOOPS fail within variable initialization block #1739

Closed DrAlexD closed 11 months ago

DrAlexD commented 11 months ago

What's done:

Closes #1270

codecov[bot] commented 11 months ago

Codecov Report

Merging #1739 (d15ee36) into master (eb6ef05) will increase coverage by 0.07%. The diff coverage is 61.53%.

@@             Coverage Diff              @@
##             master    #1739      +/-   ##
============================================
+ Coverage     76.02%   76.10%   +0.07%     
- Complexity     2281     2283       +2     
============================================
  Files           126      126              
  Lines          8242     8243       +1     
  Branches       2069     2070       +1     
============================================
+ Hits           6266     6273       +7     
+ Misses         1060     1050      -10     
- Partials        916      920       +4     
Files Changed Coverage Δ
...rules/chapter3/BracesInConditionalsAndLoopsRule.kt 62.85% <61.53%> (+6.12%) :arrow_up: