Skip to content

Don't change the indent for parentheses-enclosed expressions#1410

Merged
0x6675636b796f75676974687562 merged 5 commits intomasterfrom
bugfix/andrey.shcheglov/lpar-rpar-in-binary-expressions
Jun 29, 2022
Merged

Don't change the indent for parentheses-enclosed expressions#1410
0x6675636b796f75676974687562 merged 5 commits intomasterfrom
bugfix/andrey.shcheglov/lpar-rpar-in-binary-expressions

Conversation

@0x6675636b796f75676974687562
Copy link
Copy Markdown
Member

What's done:

Actions checklist

  • Added tests on checks
  • Added tests on fixers

### What's done:

 * From now on, parentheses (`LPAR`/`RPAR`) don't increment or decrement the
   indent unless they're a part of a function declaration or a function call.
 * Parentheses which just enclose an expression don't affect the indent at all.
 * This fixes #1409.
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 28, 2022

Codecov Report

Merging #1410 (ba086e8) into master (e9476dc) will decrease coverage by 0.00%.
The diff coverage is 78.78%.

@@             Coverage Diff              @@
##             master    #1410      +/-   ##
============================================
- Coverage     83.39%   83.39%   -0.01%     
  Complexity     2557     2557              
============================================
  Files           106      106              
  Lines          7575     7598      +23     
  Branches       2087     2095       +8     
============================================
+ Hits           6317     6336      +19     
- Misses          372      373       +1     
- Partials        886      889       +3     
Flag Coverage Δ
unittests 83.39% <78.78%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ruleset/rules/chapter3/StringTemplateFormatRule.kt 87.50% <33.33%> (+0.22%) ⬆️
...at/ruleset/rules/chapter3/files/IndentationRule.kt 79.01% <83.33%> (+0.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9476dc...ba086e8. Read the comment docs.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 28, 2022

JUnit Tests (macOS, EnricoMi/publish-unit-test-result-action@v1)

1 278 tests   1 263 ✔️  13m 58s ⏱️
   159 suites       15 💤
   159 files           0

Results for commit 6cf4d5a.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 28, 2022

JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v1)

1 278 tests   1 263 ✔️  9m 18s ⏱️
   159 suites       15 💤
   159 files           0

Results for commit 6cf4d5a.

♻️ This comment has been updated with latest results.

### What's done:

 * Unit tests added
### What's done:

 * Formatting corrected.
@0x6675636b796f75676974687562 0x6675636b796f75676974687562 deleted the bugfix/andrey.shcheglov/lpar-rpar-in-binary-expressions branch June 29, 2022 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WRONG_INDENTATION: false positives for parentheses-surrounded infix expressions

2 participants