-
-
Notifications
You must be signed in to change notification settings - Fork 822
Use experimental indentation rule set instead of the unused from the standard rule set #2709
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
Conversation
| val runLastOnRoot = mutableListOf<FormattingRule>() | ||
| val runLast = mutableListOf<FormattingRule>() | ||
| for (rule in activeRules.filterIsInstance<FormattingRule>()) { | ||
| when (rule.wrapping) { |
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.
⚠️ Type checking is a sign of violating the Open-Closed Principle. Consider introducing an abstraction (interface) forRestrictToRootLast,RestrictToRoot,Last, with new implementations of the interface for every class.
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.
Difficult as it is not our code.
Generated by 🚫 Danger Kotlin against aba2e3c |
Codecov Report
@@ Coverage Diff @@
## master #2709 +/- ##
============================================
+ Coverage 80.45% 80.50% +0.04%
- Complexity 2309 2310 +1
============================================
Files 377 377
Lines 6888 6899 +11
Branches 1245 1245
============================================
+ Hits 5542 5554 +12
+ Misses 727 724 -3
- Partials 619 621 +2
Continue to review full report at Codecov.
|
|
D'ouch! Didn't saw this PR. I reviewed it in #2710. |
|
Well, I'm not sure anymore if we should change the default Indentation rule ... They haven't promoted any experimental rules yet and the last release is from 12.2019. |
No description provided.