From a5e91dc998dd0ccca76b531f92ef379428745e53 Mon Sep 17 00:00:00 2001 From: Arrgentum Date: Tue, 31 May 2022 14:24:13 +0300 Subject: [PATCH] ### Whats added: * corrected logic fix and warn String Template in LineLength rule * added logic fix and warn long Dot Qualified Expression and Safe Access Expression in LineLength rule * added logic fix and warn Value Arguments List in LineLength rule * added and corrected fix and warn tests in LineLength rule * corrected code and KDoc in method appendNewlineMergingWhiteSpace in AstNodeUtils.kt * fix code with diktat:fix@diktat * added comments to classes and functions * correct code with running detect ### Issue (#1243) --- .../long_line/LongDotQualifiedExpressionExpected.kt | 5 ++++- .../paragraph3/long_line/LongDotQualifiedExpressionTest.kt | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/diktat-rules/src/test/resources/test/paragraph3/long_line/LongDotQualifiedExpressionExpected.kt b/diktat-rules/src/test/resources/test/paragraph3/long_line/LongDotQualifiedExpressionExpected.kt index f11b671c12..3bd4b53efd 100644 --- a/diktat-rules/src/test/resources/test/paragraph3/long_line/LongDotQualifiedExpressionExpected.kt +++ b/diktat-rules/src/test/resources/test/paragraph3/long_line/LongDotQualifiedExpressionExpected.kt @@ -16,4 +16,7 @@ val E = This?.Is?.Veeeeryyyyyyy?.Loooooong?.Dot ?.Qualified?.Expression val F = This!!.Is!!.Veeeeryyyyyyy!!.Loooooong!! - .Dot!!.Qualified!!.Expression \ No newline at end of file + .Dot!!.Qualified!!.Expression + +val G = +ThisIsVeryLonDotQualifiedExpressioWithoutDot.lalalala.lalalal \ No newline at end of file diff --git a/diktat-rules/src/test/resources/test/paragraph3/long_line/LongDotQualifiedExpressionTest.kt b/diktat-rules/src/test/resources/test/paragraph3/long_line/LongDotQualifiedExpressionTest.kt index b841210240..f8d5a8718e 100644 --- a/diktat-rules/src/test/resources/test/paragraph3/long_line/LongDotQualifiedExpressionTest.kt +++ b/diktat-rules/src/test/resources/test/paragraph3/long_line/LongDotQualifiedExpressionTest.kt @@ -13,4 +13,6 @@ val E = This?.Is?.Veeeeryyyyyyy?.Loooooong?.Dot ?.Qualified?.Expression val F = This!!.Is!!.Veeeeryyyyyyy!!.Loooooong!! - .Dot!!.Qualified!!.Expression \ No newline at end of file + .Dot!!.Qualified!!.Expression + +val G = ThisIsVeryLonDotQualifiedExpressioWithoutDot.lalalala.lalalal \ No newline at end of file