-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set the default values of extendedIndentAfterOperators
and extendedIndentBeforeDot
to false
#1342
Set the default values of extendedIndentAfterOperators
and extendedIndentBeforeDot
to false
#1342
Conversation
diktat-analysis.yml
Outdated
@@ -226,7 +226,7 @@ | |||
- name: LONG_LINE | |||
enabled: true | |||
configuration: | |||
lineLength: '180' | |||
lineLength: '181' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we changed this number?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the increased indentation level (applied to our own codebase) results in longer lines, hence the need to increase the limit.
4aa8a86
to
319d8ab
Compare
extendedIndentOfParameters
back to true
extendedIndentAfterOperators
and extendedIndentBeforeDot
to false
Where are tests that you have promised? |
Yes, in this very PR. I'm working on those. |
…dIndentBeforeDot` to `false` ### What's done: * Since Kotlin style guide mentions no continuation indent, and IDEA defaults to no continuation indent as well, all `extendedIndent*` flags default to `false` from now on. * Closes: #1312
### What's done: * Reformatted the code so that it conforms to the new rules.
319d8ab
to
f0f6ef8
Compare
### What's done: * Unit tests adapted to the reformatted test resources. * Unit tests adapted to the new defaults.
Codecov Report
@@ Coverage Diff @@
## master #1342 +/- ##
============================================
+ Coverage 83.52% 83.56% +0.04%
- Complexity 2563 2564 +1
============================================
Files 106 106
Lines 7278 7278
Branches 2017 2017
============================================
+ Hits 6079 6082 +3
Misses 353 353
+ Partials 846 843 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
What's done:
and IDEA defaults to no continuation indent as well,
all
extendedIndent*
flags default tofalse
from now on.WRONG_INDENTATION
#1312Actions checklist