-
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
[#1347] Indent only TEMPLATE_ENTRY
nodes immediately following a newline
#1387
[#1347] Indent only TEMPLATE_ENTRY
nodes immediately following a newline
#1387
Conversation
…wline ### What's done: * Now, only those `LITERAL_STRING_TEMPLATE_ENTRY` nodes which immediately follow a newline are indented. * Additionally, with this change, `trimIndent()` and `trimMargin(...)` calls are more reliably detected. * This fixes #1347.
Codecov Report
@@ Coverage Diff @@
## master #1387 +/- ##
============================================
- Coverage 83.43% 83.30% -0.13%
+ Complexity 2555 2554 -1
============================================
Files 107 107
Lines 7557 7565 +8
Branches 2087 2090 +3
============================================
- Hits 6305 6302 -3
- Misses 368 373 +5
- Partials 884 890 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
...at-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/spaces/IndentationRuleTestMixin.kt
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/files/IndentationRule.kt
Outdated
Show resolved
Hide resolved
lgtm |
…wline ### What's done: * Minor code clean-up.
What's done:
LITERAL_STRING_TEMPLATE_ENTRY
nodes which immediatelyfollow a newline are indented.
trimIndent()
andtrimMargin(...)
callsare more reliably detected.
WRONG_INDENTATION
: runningmvn diktat:fix
adds whitespace to string literals #1347.Actions checklist