-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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 * fix code with diktat:fix@diktat * added comments to classes and functions * correct code with running detect ### Issue (#1243)
- Loading branch information
Arrgentum
committed
May 25, 2022
1 parent
ebf05b1
commit 998ee8b
Showing
3 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 16 additions & 1 deletion
17
...-rules/src/test/resources/test/paragraph3/long_line/LongDotQualifiedExpressionExpected.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
package test.paragraph3.long_line | ||
|
||
val A = This.Is.Veeeeryyyyyyy.Loooooong.Dot | ||
.Qualified.Expression | ||
.Qualified.Expression | ||
|
||
val B = This?.Is?.Veeeeryyyyyyy?.Loooooong?.Dot | ||
?.Qualified?.Expression | ||
|
||
val C = This!!.Is!!.Veeeeryyyyyyy!!.Loooooong!! | ||
.Dot!!.Qualified!!.Expression | ||
|
||
val D = This.Is.Veeeeryyyyyyy.Loooooong.Dot | ||
.Qualified.Expression | ||
|
||
val E = This?.Is?.Veeeeryyyyyyy?.Loooooong?.Dot | ||
?.Qualified?.Expression | ||
|
||
val F = This!!.Is!!.Veeeeryyyyyyy!!.Loooooong!! | ||
.Dot!!.Qualified!!.Expression |
13 changes: 13 additions & 0 deletions
13
diktat-rules/src/test/resources/test/paragraph3/long_line/LongDotQualifiedExpressionTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
package test.paragraph3.long_line | ||
|
||
val A = This.Is.Veeeeryyyyyyy.Loooooong.Dot.Qualified.Expression | ||
|
||
val B = This?.Is?.Veeeeryyyyyyy?.Loooooong?.Dot?.Qualified?.Expression | ||
|
||
val C = This!!.Is!!.Veeeeryyyyyyy!!.Loooooong!!.Dot!!.Qualified!!.Expression | ||
|
||
val D = This.Is.Veeeeryyyyyyy.Loooooong.Dot | ||
.Qualified.Expression | ||
|
||
val E = This?.Is?.Veeeeryyyyyyy?.Loooooong?.Dot | ||
?.Qualified?.Expression | ||
|
||
val F = This!!.Is!!.Veeeeryyyyyyy!!.Loooooong!! | ||
.Dot!!.Qualified!!.Expression |