-
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
WRONG_INDENTATION
: add more tests for extendedIndentAfterOperators
#1401
WRONG_INDENTATION
: add more tests for extendedIndentAfterOperators
#1401
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1401 +/- ##
============================================
+ Coverage 83.39% 83.40% +0.01%
Complexity 2538 2538
============================================
Files 106 106
Lines 7623 7623
Branches 2089 2089
============================================
+ Hits 6357 6358 +1
Misses 375 375
+ Partials 891 890 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/spaces/IndentationRuleFixTest.kt
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/spaces/IndentationRuleFixTest.kt
Outdated
Show resolved
Hide resolved
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, but please remove at least some complexity with annotations
### What's done: * Tests for expressions wrapped on an operator have been added. * Both cases (when `extendedIndentAfterOperators` is `true` and `false`) are tested. * Both binary operators and functions are tested. * Related: #1340
### What's done: * Test resources extracted into a separate class so that DeteKT remains quiet. * Reformatted test code so that DiKTat remains quiet.
### What's done: * Code cleaned up.
9e8527f
to
8276dcf
Compare
What's done:
extendedIndentAfterOperators
istrue
andfalse
) are tested.WRONG_INDENTATION
:extendedIndentAfterOperators
ignored if lines are wrapped before a binary operator or an infix function #1340.Actions checklist