-
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
Handling custom property accessors in formatting rules #337
Conversation
### What's done: * Updated IndentationRule * Updated ClassLikeStructuresOrderRule * Added tests
Codecov Report
@@ Coverage Diff @@
## master #337 +/- ##
=========================================
Coverage 81.76% 81.76%
- Complexity 1093 1102 +9
=========================================
Files 54 54
Lines 2786 2797 +11
Branches 884 890 +6
=========================================
+ Hits 2278 2287 +9
Misses 183 183
- Partials 325 327 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
LGTM
val numRequiredNewLines = 1 + (if (isBlankLineRequired) 1 else 0) | ||
val actualNewLines = whiteSpaceBefore.text.count { it == '\n' } | ||
// for some cases we do not check strict number of blank lines, but allow actual number to be less or equal | ||
val isLessLinesAllowed = hasCustomAccessors |
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.
I think you can inline this variable
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.
lgtm
What's done:
This pull request closes #320