-
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
Bugfixing of single binary expression wrapped in parentheses (long lines rule) #1416
Conversation
* Correct logic - if solo `binary expression` contained in `parentheses` * Added 1 fix test ## Issue (#1415)
Codecov Report
@@ Coverage Diff @@
## master #1416 +/- ##
============================================
- Coverage 83.39% 83.37% -0.02%
Complexity 2561 2561
============================================
Files 107 107
Lines 7601 7604 +3
Branches 2097 2100 +3
============================================
+ Hits 6339 6340 +1
Misses 374 374
- Partials 888 890 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
binary expression
contained in parentheses
binary exprssion
contained in parentheses
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/LineLength.kt
Show resolved
Hide resolved
binary exprssion
contained in parentheses
@@ -107,4 +107,9 @@ class LineLengthFixTest : FixTestBase("test/paragraph3/long_line", ::LineLength) | |||
fun `fix bin expression first symbol last word`() { | |||
fixAndCompare("LongBinaryExpressionLastWordExpected.kt", "LongBinaryExpressionLastWordTest.kt", rulesConfigListErrorLineLength1) | |||
} | |||
|
|||
@Test | |||
fun `fix bin 1expression first symbol last word`() { |
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.
typo in test name
Whats added:
Error in method fix in class Binary Expression - if
binary expression
contained inparentheses
find child with typeoperation references
is nullThis pull request closes #1415
Actions checklist
Any information: